Java crash in libglib-2.0 after upgrade from 13.04 to 13.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eclipse |
Fix Released
|
Critical
|
|||
gtk+2.0 (Suse) |
New
|
Undecided
|
Unassigned | ||
gtk+2.0 (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
unity (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
Running smartgit 4.6.4 on 13.10 64 bits. After registering the product, smartgit crash when trying to open a new repository. Java error log :
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fa590
#
# JRE version: 7.0_25-b30
# Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libglib-
I tried different version of Java (Oracle v7 and v6 jre) with same result. Also, Eclipse display blank menus so there's a general java problem with displays.
Claude Durocher (claude-d) wrote : | #1 |
I found a workaround : if I start smartgit like this, it won't crash :
UBUNTU_MENUPROXY= ./smartgit.sh
So the issue seem related to appmenu.
Quinn Balazs (qbalazs) wrote : | #2 |
There should be a file containing the full context of the OpenJDK issue. All you added here is what the problematic frame, which is helpful in context, but not particularly on its own. See if you can't upload the error log, and once you have, set this back to new and someone will take a look.
Quinn Balazs
Changed in java-common (Ubuntu): | |
status: | New → Incomplete |
Claude Durocher (claude-d) wrote : | #3 |
Here's the full log:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ff34d
#
# JRE version: 7.0_25-b30
# Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libglib-
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# https:/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00007ff35800
siginfo:
Registers:
RAX=0x00007ff35
RSP=0x00007ff36
R8 =0x00007ff3590c
R12=0x00007ff35
RIP=0x00007ff34
TRAPNO=
Top of Stack: (sp=0x00007ff36
0x00007ff3603344a8: 00007ff34dd74b30 0000000000000000
0x00007ff3603344b8: 0000000000000000 00007ff358a9d230
0x00007ff3603344c8: 0000000058fc9890 0000000000000000
0x00007ff3603344d8: 00007ff358a9d230 00007ff358a6ff70
0x00007ff3603344e8: 00007ff358ad72a0 00007ff358ad72a0
0x00007ff3603344f8: 0000000000000000 0000000000000000
0x00007ff360334508: 00007ff3173bac62 00007ff358ef5870
0x00007ff360334518: 0000000000000012 00007ff358b31d10
0x00007ff360334528: 00007ff34dd9e8aa 00007ff3173b4c70
0x00007ff360334538: 00007ff35881c4c0 00007ff358a9d230
0x00007ff360334548: 00007ff358ef5870 0000000000000012
0x00007ff360334558: 00007ff358b31d10 00007ff358b100f0
0x00007ff360334568: 00007ff3173b53a2 0000000000000002
0x00007ff360334578: 0000000000000012 00007ff360334790
0x00007ff360334588: 00007ff34dd9ebb3 00007ff358a9d230
0x00007ff360334598: 00007ff34c8e8b00 00007ff358a9d230
0x00007ff3603345a8: 00007ff35881c4c0 0000000000000002
0x00007ff3603345b8: 00007ff3603347f0 00007ff360334790
0x00007ff3603345c8: 00007ff3173b6e46 00007ff358a9d230
0x00007ff3603345d8: 00007ff3173b8921 00007ff358a61a90
0x00007ff3603345e8: 00007ff358a61a90 00007ff3603347f0
0x00007ff3603345f8: 00007ff358570ac0 00007ff3603347f0
0x00007ff360334608: 00007ff359113b90 00007ff358a9d230
0x00007ff360334618: 00007ff3585a0890 00007ff3590f1d70
0x00007ff360334628: 00007ff34e050d50 0000000000000000
0x00007ff360334638: 00007ff359113b90 0000000000000002
0x00007ff360334648: 00007ff3603347f0 00007ff360334790
0x00007ff360334658: 00007ff34e04e188 0000000000000000
0x00007ff360334...
Changed in java-common (Ubuntu): | |
status: | Incomplete → New |
Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in java-common (Ubuntu): | |
status: | New → Confirmed |
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #9 |
The version.txt file inside the swt.jar shows "version 4.331".
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #10 |
Ubuntu 13.10
In Eclipse bugs #419729, Akurtakov (akurtakov) wrote : | #11 |
Is there any chance that you can give a snippet to reproduce the problem?
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #12 |
Created attachment 236645
crash log
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #13 |
Created attachment 236646
crash log
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #14 |
Created attachment 236647
crash log
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #15 |
The crashes happen after completely different steps, the last crash occurred directly after starting while the splash screen was showing. Following errors are locked multiple times to the console:
(SmartGit/
In Eclipse bugs #419729, Akurtakov (akurtakov) wrote : | #16 |
Thomas, I'm asking for some small pure Swt code snippet runnable separately (aka class with main method) that shows the problem. The crash and the invalidate notifier are not related (me is 99% sure) and it's discussed in bug 407077.
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #17 |
Please try following code:
final Display display = new Display();
final Shell shell = new Shell(display);
shell.
final Menu menuBar = new Menu(shell, SWT.BAR);
final MenuItem fileMenuBarItem = createMenuItem(
final Menu fileMenu = new Menu(shell, SWT.DROP_DOWN);
fileMenuBarIt
shell.
shell.
@Override
public void handleEvent(Event event) {
System.
final MenuItem[] items = fileMenu.
for (MenuItem item : items) {
item.
}
createMenuI
createMenuI
createMenuI
}
});
final Menu menu = new Menu(shell, SWT.POP_UP);
createMenuIte
createMenuIte
createMenuIte
final Button button = new Button(shell, SWT.PUSH);
button.
button.
@Override
public void handleEvent(Event event) {
final Point location = display.
final Point size = button.getSize();
menu.
menu.
}
});
shell.
shell.open();
while (!shell.
if (!display.
display.
}
}
menu.dispose();
display.
And open some other windows, especially dialogs, click the button.
In Eclipse bugs #419729, Akurtakov (akurtakov) wrote : | #18 |
Missed the createMenuItem method?
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #19 |
Sorry:
private static MenuItem createMenuItem(int style, String text, Menu menu) {
final MenuItem item = new MenuItem(menu, style);
item.
return item;
}
In Eclipse bugs #419729, Akurtakov (akurtakov) wrote : | #20 |
I played with it a lot but wasn't able to reproduce on fedora 19 system (gtk 2.24.22). Does it crash for your everytime you do certain action? Can you simulate the crash in the snippet?
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #21 |
I only can reproduce the problem on Ubuntu 13.10, not on Ubuntu 12.04. It only has us been reported against Ubuntu 13.10, not against previous versions, though the code has not changed there for a long time. I guess, there is something specific in Ubuntu 13.10 which may not be reproducible on other systems.
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #22 |
According to https:/
In Eclipse bugs #419729, Akurtakov (akurtakov) wrote : | #23 |
Further investigations would need to be done by someone having the time to install and test the Ubuntu version in question. I don't have such time but I would be happy to review a patch if provided.
Dac Chartrand (conner-bw) wrote : | #5 |
I have the same bug using SmartSVN (same vendor, historically at least), and their support narrowed it down to a problem with "Native crash in org.eclipse.
https:/
Dear: Java devs, please read thread above, Comment #15 in particular.
Cheers.
In Eclipse bugs #419729, Quinn Balazs (qbalazs) wrote : | #24 |
This bug has been filed in Launchpad (Ubuntu Bug Tracker) as lp#1241101, filed against the java-common package in Ubuntu.
User using Ubuntu 13.10 has reported crashes using SmartGit v4.6.4
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fa590
#
# JRE version: 7.0_25-b30
# Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libglib-
The other issue addressed in the LP bug is the SmartSVN issue discussed here.
This issue in LP can be found here https:/
Quinn Balazs (qbalazs) wrote : | #6 |
Tracking this issue in eclipse-bugs.
Quinn Balazs
In Eclipse bugs #419729, Quinn Balazs (qbalazs) wrote : | #25 |
In the previous comment I attached a different portion of the log file than I had intended to. Here is the relevant portion.
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
Dac Chartrand (conner-bw) wrote : | #7 |
Also see bug #1208019
Not a crash per say, but some coordinated effort to fix global menus that were working fine in 13.04. but must now be worked around setting UBUNTU_MENUPROXY would be prudent.
Best regards,
Changed in java-common (Ubuntu): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
Changed in java-common: | |
importance: | Unknown → Critical |
status: | Unknown → Confirmed |
Quinn Balazs (qbalazs) wrote : | #26 |
Posted here on behalf of Julien Aubin.
Quinn Balazs (qbalazs) wrote : | #27 |
Cristiano Cavallari (cristiano-cavallari) wrote : | #28 |
I have the same problem with Smartsvn.
Quinn Balazs (qbalazs) wrote : | #29 |
Strangely, something that has worked for people in a few other situations has been to change GTK2 appearance to anything other than oxygen-gtk. If someone wouldn't mind checking that out, I'd be interested to see if that workaround works here, or if there are multiple issues at hand here.
Quinn Balazs (qbalazs) wrote : | #30 |
I've taken a look at this, and seemingly randomly*, java frames flipflop between what we've seen here, and the
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
that we've seen in bug #1205452. Changing GTK2 appearance will on occasion clear up the issue, but works nowhere near 100% of the time. Once I've done a bit more digging and am sure that these issues are at their roots the same, bug #1205452 can be marked as a duplicate of this issue, and maybe a bug pattern can be written for this issue (23 affected in #1205452, 16 affected here, and most people using Eclipse or a derived product will run into this issue)
*Nothing is random, I'm working on associating these differences to user actions.
Netziro (netziro) wrote : | #31 |
Quinn, i've got the same scenario and changing GTK2 appearance did solve the issue. I had 2 machines affected and both solved changing the GTK2 opt
Cristiano Cavallari (cristiano-cavallari) wrote : | #32 |
I change GTK apperance using gtk-theme-switch2 command, I can see the change on the othere applications (es. firefox) but smart svn crash with the same error.
Stack: [0x00007f275beb
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libglib-
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
Netziro (netziro) wrote : | #33 |
in my case that's the stack
Stack: [0x00007fa5c172
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libgobject-
[error occurred during error reporting (printing native stack), id 0xb]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J org.eclipse.
J org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
J org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
spectator (lists-a) wrote : | #34 |
FWIW, eclipse started crashing after upgrade to 13.10, always # Problematic frame: # C [libgobject-
Upon reading #29 I changed GTK2 appearance a couple of times from oxygen-gtk to ambiance etc. For me this seems to touch the problem. Oxygen crashes, others do not. Reproducible.
sormariano (sormariano) wrote : | #35 |
In Eclipse bugs #419729, Scot Bernard (pablo-bueti) wrote : | #36 |
True, as the twitter says changing the .desktop file exec line to:
Exec=env UBUNTU_MENUPROXY=0 "[yoursmartgitb
Works, and runs with menues not integrated into unity panel.
Cristiano Cavallari (cristiano-cavallari) wrote : | #37 |
Removing the two environment variables Smart Svn don't crash anymore.
GTK_IM_
GTK_MODULES=
For me that solved the problem.
Cristiano Cavallari (cristiano-cavallari) wrote : | #38 |
It's sufficient remove only the variable
GTK_MODULES=
Changed in gtk+2.0 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
In Eclipse bugs #419729, aanno (thomas-pasch) wrote : | #39 |
*** Bug 420499 has been marked as a duplicate of this bug. ***
aanno (thomas-pasch) wrote : | #40 |
As I already mentioned on #1245468 I could not verify that changing GTK_MODULES, UBUNTU_MENUPROXY, or GTK_IM_MODULE helps in any way.
However, I could verify that the problem GOES AWAYS IN KUBUNTU/KDE when doing:
System Settings -> Application Themes -> GTK -> Choose GTK2 Theme
Choose 'Radiance' instead of 'oxygen-gtk'
José Carlos Valero (sirjoseca) wrote : | #41 |
When changing UBUNTU_MENUPROXY this bug disappear to me. At least in SmartSVN.
aanno (thomas-pasch) wrote : | #42 |
Dear sirjoseca,
well I guess it is solved for SmartSVN. But I want to use eclipse...
José Carlos Valero (sirjoseca) wrote : | #43 |
Well, indeed i have to use UBUNTU_MENUPROXY= XXX in both, eclipse and SmartSVN to get them working properly (SmartSVN closes unexpectedly, and eclipse doesn't show menus any other way), and I have checked that in both cases disabling ubuntu global menu solve this issue, at least in my computer.
Maybe my comment is pointless, just to try.
Thanks for your reply aano.
aanno (thomas-pasch) wrote : | #44 |
Dear sirjoseca,
I rechecked this carefully. For me (as a Kubuntu/KDE user) using
export UBUNTU_MENUPROXY=''
and afterwards starting eclipse makes things A LOT better but the problem does NOT go away. I've still got spurious Java VM crashes, most commonly with SWT 'cancel' buttons. But I have to admit that this is relatively rare.
However, with
System Settings -> Application Themes -> GTK -> Choose GTK2 Theme
and choosing 'Radiance' instead of 'oxygen-gtk' the problem is gone COMPLETELY.
Quinn Balazs (qbalazs) wrote : | #45 |
Can you confirm/nonconfirm that this issue is resolved if a desktop environment other than Unity is used?
aanno (thomas-pasch) wrote : | #46 |
At present, I could only speak for kubuntu/kde. The problem is gone when using 'Radiance' as 'GTK2 Theme'. However, if I understand the KDE guys right, this simply means that libglib is NOT used. Per consequence the error cannot occur...
Quinn Balazs (qbalazs) wrote : | #47 |
I believe that to be correct. If I get a bit of spare time today, i'll mess around with different desktop environments.
In Eclipse bugs #419729, Mrbublor (mrbublor) wrote : | #48 |
I am using Open Suse 13.1 and I can reproduce this every time. I did not see this until I installed 13.1 from a fresh install, then install the ADT bundle from Android developer site.
Per instructions found on the Ubuntu site, I can change the GTK2 theme from oxygen to Raleigh and the crash goes away.
In Eclipse bugs #419729, Sebastien Senechal (altagir) wrote : | #49 |
you can setup that directly for adt/eclipse, without changing the style globally on KDE:
launch :
$ GTK2_RC_
gerard ziemski (gerard-ziemski) wrote : | #50 |
https:/
Volkan Gezer (volkangezer) wrote : | #51 |
For KDE users:
Follow this: System Settings -> Application View -> GTK -> GTK 2 Theme Raleigh instead of oxygen.
Christophe Chisogne (cchisogne) wrote : | #52 |
On Kubuntu 13.10 (64bit), the problem is easy to reproduce when using Eclipse from the latest Android bundle and a JDK 1.7 (tested with jdk1.7.0_25-x64).
Switching GTK2 theme from oxygen-gtk to Raleigh is working in my configuration (glogal change or GTK2_RC_FILES variable).
On my box, the crash is very often in the same frame (libgobject2 g_object_
# SIGSEGV (0xb) at pc=0x00007f6056
#
# JRE version: 7.0_25-b15
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgobject-
affects: | gtk+2.0 (Ubuntu) → ubuntu |
Quinn Balazs (qbalazs) wrote : | #53 |
Gtk+ 2.0 is definitely a component of this issue.
affects: | ubuntu → gtk+2.0 (Ubuntu) |
In Eclipse bugs #419729, Akurtakov (akurtakov) wrote : | #54 |
(In reply to Joe Bublor from comment #19)
> I am using Open Suse 13.1 and I can reproduce this every time. I did not
> see this until I installed 13.1 from a fresh install, then install the ADT
> bundle from Android developer site.
>
> Per instructions found on the Ubuntu site, I can change the GTK2 theme from
> oxygen to Raleigh and the crash goes away.
Joe, I would dare to say it's a bug in oxygen theme. We had few such on Fedora too especially with oxygeng-gtk2 theme.
Peter Kelder (peter-kelder-quicknet) wrote : | #55 |
Can reproduce it when using the Archi application. The Archi application is an Enterprise Architecture modeling tool according the Archimate language.
Choosing the oxygen-gtk2 theme it crashes as soon as you do anything in the UI, like:
- closing a tab
- dragging a object on the convas
- ...
Hendy Irawan (ceefour) wrote : | #56 |
Bug report in KDE: https:/
Tom B (0-tom-4) wrote : | #57 |
That's a different bug. I can confirm that does fix several issues with oxygen-gtk but not the g_object_get_qdata crash.
See https:/
Tom B (0-tom-4) wrote : | #58 |
Has anyone managed to track the package which is the source of this bug?
Here's my understanding so far:
It's not an Eclipse bug as the same version of Eclipse running on Ubuntu 13.04 does not suffer the problem
It doesn't appear to stem directly from oxygen-gtk as the QtCurve theme suffers from the same problem which hints that it's something in a library that QtCurve and oxygen-gtk both rely on that other themes do not.
It's unlikely to be a Java bug as it affects both OpenJDK and Oracle's JDK.
A similar problem from 2010 is mentioned here: https:/
It's very similar, but this was certainly fixed somehow since then because 13.04 was unaffected.
Quinn Balazs (qbalazs) wrote : | #59 |
We've been concentrating on gtk, which is a component. I'd like to suggest taking a fresh look at Unity's global menu component. There we're changes made to the global menu in 13.10, which may account for this not showing up in 13.04. I'm going to mess around with that side of things and see if I can get anything worthwhile from it.
Quinn Balazs (qbalazs) wrote : | #60 |
Rolling back to the version of Unity from Raring updates (7.0.0daily13.
I do agree with Tom that Java-Common be removed as a potential culprit, as it seems to span several Java versions and affects both OpenJDK and Oracle's JDK, but for the same reasons, I'd rather hang on there for a bit. Gtk seems to be part of the issue, but may (if Unity doesn't end as a dead end) tie into Unity at some point. Regarding shared libs between QtCurve and gtk2-engines-
For the moment if you plan to test Unity 7.0.0 use the .deb file for your architecture.
Claude Durocher (claude-d) wrote : | #61 |
When I opened the ticket, I also mentioned a workaround (set env. var. UBUNTU_MENUPROXY to blank) before starting a java application. This solves the problem for me for smartgit and eclipse.
This is clearly an indication of a problem with Unity menus.
affects: | java-common → eclipse |
affects: | java-common (Ubuntu) → unity (Ubuntu) |
Andreas Ntaflos (daff) wrote : | #62 |
Just so that this doesn't get overlooked: I have this problem with Apache Directory Studio (an Eclipse RCP application) running on Kubuntu 13.10 using KDE 4.12 and the oxygen-gtk engine. It is definitely not related to Unity directly, though I don't know how many libraries or how much code oxygen-gtk and Unity share.
In any case, the workaround of running (in my case) GTK2_RC_
Netziro (netziro) wrote : Re: [Bug 1241101] Re: Java crash in libglib-2.0 after upgrade from 13.04 to 13.10 | #63 |
Totally agree with Andreas.
I've got the same persistent issue using KDE and oxygen theme.
Gotta be some shared library
Alessio Nobile
mail sent from Android
On 28 Jan 2014 16:31, "Andreas Ntaflos" <email address hidden> wrote:
> Just so that this doesn't get overlooked: I have this problem with
> Apache Directory Studio (an Eclipse RCP application) running on Kubuntu
> 13.10 using KDE 4.12 and the oxygen-gtk engine. It is definitely not
> related to Unity directly, though I don't know how many libraries or how
> much code oxygen-gtk and Unity share.
>
> In any case, the workaround of running (in my case)
> GTK2_RC_
> ApacheDirectory
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Java crash in libglib-2.0 after upgrade from 13.04 to 13.10
>
> To manage notifications about this bug go to:
> https:/
>
auspex (auspex) wrote : | #64 |
The GTK2_RC_FILES theme workaround doesn't help me, nor does UBUNTU_MENUPROXY.
Tom B (0-tom-4) wrote : | #65 |
I'm not sure this is helpful or not but:
I don't have Unity installed. I'm running Linux Mint which is built from Ubuntu and I'm running KDE. Whether that rules out a unity bug or not I don't know.
Setting UBUNTU_MENUPROXY has no effect at all.
Using GTK2_RC_
Andreas Ntaflos (daff) wrote : | #66 |
@auspex: the GTK2_RC_FILES workaround should work for this bug, how are you calling it? Should look like this:
$ GTK2_RC_
Alternatively you can set the GTK2 theme to Raleigh globally and try starting your crashing application then.
If neither of these helps then you are probably experiencing a different bug, or at least a very different manifestation that apparently hasn't been encountered yet, going by the information in this thread.
Cristian Adam (cristianadam) wrote : | #67 |
Using GTK2_RC_
It's an annoying bug because evertying seems to work and at certain operations the application (based on Eclipse) crashes.
MiXiM (mixim) wrote : | #68 |
As Mr. Adam says above, i use the same environment, and the same error occurs at certain operations when i use the oxygen-gtk theme.
The workaround with the GTK2_RC_
Claude Durocher (claude-d) wrote : | #69 |
Just a quick note : I ran a test on Trusty (30-jan build) and the bug is still present.
David V (charon00) wrote : | #70 |
Just wanted to comment that this bug is also present in the KDE environment, but not Gnome, on a 64-bit Fedora 20 system. I encountered it when using an SDK leveraged from Eclipse. The SDK crashes frequently when I click the "OK" button on a window. The problematic frame is:
C [libgobject-
Changing the GTK+ Appearance from Oxygen to Raleigh as others have mentioned is working for me (so far).
auspex (auspex) wrote : | #71 |
@daff Why would you assume a different bug? I have tried it with both forms
UBUNTU_
and setting the theme in System Settings, and I _can_ use Eclipse for a while, but sooner or later I'm going to crash in exactly the same location `# C [libgobject-
In Eclipse bugs #419729, dapaldo (dpalomar) wrote : | #72 |
Same issue in Ubuntu 14.04 (Unity).
Tested with eclipse 3.8.2 and 4.3.1 with oracle-java7 and openjdk-7.
After install and first time start, eclipse freeze and crash, second start works fine, but when download a project from git, or download a maven project or starting tomcat, eclipse crash.
Antonio Ferraro (anfe67) wrote : | #73 |
I have my own RCP application, built with Eclipse Helios, for multiple platforms. The problem happens for me when I test the application build for Linux x86-gtk. Platform: Kubuntu 13.10 (virtualbox machine), JRE: 1.6u45. I get the crash while I use the preference pages and hit the OK button. No .log is found in workspace/
The Solaris sparc/intel and win32/64 builds of the app work fine in Solaris, and so does the linuxx86_64 when tested on CentOS 6.3.
The GTK workaround (System Settings/
However, and this is my contribution to this discussion, when I run the application from the command line as root, with sudo <myapp>, the problem disappears (has anybody tried?). I then thought that it may have been caused by some missing file access permissions and temporarily gave full access to the whole workspace directory but the problem reappeared, so it is not connected to permissions on the workspace. Also for me the hs_errxxx.pid point to libgobject-
Tom B (0-tom-4) wrote : | #74 |
Unfortunately running Eclipse via sudo does not fix the issue for me and I get the exact same crash:
Stack: [0x00007f252c76
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libgobject-
Tom B (0-tom-4) wrote : | #75 |
This may also be relevant: It doesn't seem to be an Ubuntu/Debian based distro specific bug. I also have an Arch Linux installation and it happens on that as well.
Changed in unity (Ubuntu): | |
status: | Triaged → Invalid |
no longer affects: | unity |
In Eclipse bugs #419729, David Matějček (dmatej) wrote : | #78 |
Reproduced also with the JDK6, OpenJDK7, and finally JDK8:
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Problematic frames occurs in two variants:
1) # C [libgobject-
2) # C [libgtk-
The Eclipse crashes sometimes after 5 minutes after start, sometimes after 6 hours, sometimes hangs and crashes after few seconds or even ten minutes. Always with one of these variants.
David Matějček (dmatej) wrote : | #76 |
Reproduced also with the JDK6, OpenJDK7, and finally JDK8:
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Problematic frames occurs in two variants:
1) # C [libgobject-
2) # C [libgtk-
The Eclipse crashes sometimes after 5 minutes after start, sometimes after 6 hours, sometimes hangs and crashes after few seconds or even ten minutes. Always with one of these variants.
David Matějček (dmatej) wrote : | #77 |
I have an idea, theoretical scenario: isn't it somehow similar problem as with the volatile and synchronization in Java?
GTK makes many updates and redrawing at the same time.
Even Eclipse have parallel threads for redrawing.
I got 2core/4thread CPU Intel i5.
What if the GTK tries to redraw something, but the CPU context switching occurs and then it has invalid references?
All code then seems correct, but it is not.
I see these crashes for maybe two years (perhaps since Kubuntu 12.10), some were closed as incomplete, one even as fixed (bug in intel driver), but this problem is still the same.
Maybe I will try some experiments with the affinity and I will see if it will make some difference:
http://
Tom B (0-tom-4) wrote : | #79 |
It's probably worth mentioning that with the latest Eclipse (Kepler) this bug does not occur. Perhaps looking at the differences between what happens on "close" in the find dialog in Kepler and Juno will shed some light on what is causing the crash.
Claude Durocher (claude-d) wrote : | #80 |
The problem is fixed with the latest trusty build (at least the menus behavior) in Kepler 4.3.2 : it was present in previous versions of Kepler.
In Eclipse bugs #419729, David Matějček (dmatej) wrote : | #82 |
Workaround:
1) Start the Eclipse
2) find pid of the process
3) taskset -p 0x00000001 <pid>
The problem is something like with volatile and synchronized; with this I used two Eclipse instances for 12 hours without a crash!
After restart I forgot to set it again and Eclipse crashed after 5 minutes ...
Now again with taskset after 2 hours no problem.
David Matějček (dmatej) wrote : | #81 |
I use Eclipse Kepler 4.3.2 and this bug occurs more often then ever before!
Eclipse also is not the only application crashing with this bug - today I have seen bugreport also for Gimp.
Workaround:
1) Start the Eclipse
2) find pid of the process
3) taskset -p 0x00000001 <pid>
The problem is something like with volatile and synchronized; with this I used two Eclipse instances for 12 hours without a crash!
After restart I forgot to set it again and Eclipse crashed after 5 minutes ...
Now again with taskset after 2 hours no problem.
auspex (auspex) wrote : Re: [Bug 1241101] Re: Java crash in libglib-2.0 after upgrade from 13.04 to 13.10 | #83 |
Nice idea, David but no luck for me.
I start Eclipse with:
GTK2_
./adt-bundle-
and do Ctrl-F, and click on Find, Find, Close. Eclipse aborts at
g_object_
I restart Eclipse, find the PID, and do:
$ taskset -p 0x00000001 32060
pid 32060's current affinity mask: f
pid 32060's new affinity mask: 1
so, it appears to have worked. I execute the same sequence and Eclipse
aborts at g_object_
# An error report file with more information is saved as:
# /home/derek/
so I had the right PID.
On Thu, Apr 10, 2014 at 10:28 PM, David Matějček <<email address hidden>
> wrote:
> I use Eclipse Kepler 4.3.2 and this bug occurs more often then ever before!
> Eclipse also is not the only application crashing with this bug - today I
> have seen bugreport also for Gimp.
>
> Workaround:
> 1) Start the Eclipse
> 2) find pid of the process
> 3) taskset -p 0x00000001 <pid>
>
> The problem is something like with volatile and synchronized; with this I
> used two Eclipse instances for 12 hours without a crash!
> After restart I forgot to set it again and Eclipse crashed after 5 minutes
> ...
>
> Now again with taskset after 2 hours no problem.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Java crash in libglib-2.0 after upgrade from 13.04 to 13.10
>
> To manage notifications about this bug go to:
> https:/
>
--
derek
auspex (auspex) wrote : | #84 |
I'll add that my test was not using Kepler, but David's suggesting Kepler doesn't change things.
Tom B (0-tom-4) wrote : | #85 |
I've also tested this using Juno (the version included in Zend Studio 10) and unfortunately share auspex's experience, it doesn't solve the issue for me.
I also tried explicitly launching the application with an affinity:
taskset 0x00000001 zend-studio
with the same reslult.
David Matějček (dmatej) wrote : | #86 |
Yes, today Eclipse crashes again, taskset does not help. :(
This is really very bad, hardly reproducible bug. It seems the faster machine and newer JDK and Linux, the more occurences I have ...
Maybe the fastest method to fix it is to dig into the code of GTK ...?
In Eclipse bugs #419729, David Matějček (dmatej) wrote : | #87 |
EDIT: workaround does not help. And one more note: Eclipse crashes earlier when showing variables in debug mode.
In Eclipse bugs #419729, David Matějček (dmatej) wrote : | #88 |
It seems it is fixed in newer GTK, but after my recent experiences I am not so optimistic. But after upgrade to 1.3.5 and also GTK 3.10 and restarting the system Eclipse still did not crash (10 hours yesterday, 5 hours today, switching git branches on massive project, debugging, refactoring).
Can you try it someone too? (package is big, you need fast connection)
sudo add-apt-repository ppa:gnome3-
sudo apt-get install libgtk-3-0
Download 1.3.5: https:/
Unpack and see instructions in the file INSTALL.
I hope Eclipse will be stable on Kubuntu 14.04 without these experiments ...
In Eclipse bugs #419729, auspex (auspex) wrote : Re: [Bug 1241101] | #89 |
Fingers crossed, David! Simply installing libgtk-3-0 worked for the
trivial case I described above, where I could always make it fail (I
haven't upgraded oxygen, yet, and probably won't if this works without
it—I'm still using the override
GTK2_RC_
On Wed, Apr 16, 2014 at 8:49 AM, David Matějček
<email address hidden>wrote:
> It seems it is fixed in newer GTK, but after my recent experiences I am
> not so optimistic. But after upgrade to 1.3.5 and also GTK 3.10 and
> restarting the system Eclipse still did not crash (10 hours yesterday, 5
> hours today, switching git branches on massive project, debugging,
> refactoring).
>
> Can you try it someone too? (package is big, you need fast connection)
> sudo add-apt-repository ppa:gnome3-
> sudo apt-get install libgtk-3-0
> Download 1.3.5: https:/
> Unpack and see instructions in the file INSTALL.
>
> I hope Eclipse will be stable on Kubuntu 14.04 without these experiments
> ...
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Java crash in libglib-2.0 after upgrade from 13.04 to 13.10
>
> To manage notifications about this bug go to:
> https:/
>
--
derek
auspex (auspex) wrote : | #90 |
I did have to upgrade oxygen as specified by David, too, as even with the Raleigh theme I was getting failures (much less frequent or reproducible than before upgrading libgtk, though). After upgrading oxygen, I didn't experience any further failures.
Of course, now I'm in the process of upgrading to ubuntu 14.04, so the whole process is likely to begin again...
In Eclipse bugs #419729, Hkaiserl (hkaiserl) wrote : | #91 |
same issue here with ubuntu 13.10 x64
In Eclipse bugs #419729, José Tomás Atria (jtatria) wrote : | #92 |
This also occurs here, with Ubuntu 14.04 x64.
José Tomás Atria (jtatria) wrote : | #93 |
I've been using the Raleigh override, and I have experienced no crashes.
I also tried David's suggestions, though the libgtk-3-0 version in the Trusty repos seems to be the same as the one in the gnome3 ppa (Package libgtk3 is already the newest version etc.). I compiled oxygen-gtk locally, but the problem persists.
All of the above on 14.04.
kecsap (csaba-kertesz) wrote : | #94 |
Guys, I am on 13.10 and nothing fixed this issue except downloading Eclipse Kepler from eclipse.org instead of the non-working Eclipse in the Ubuntu repos
aanno (thomas-pasch) wrote : | #95 |
Dear kecsap,
well, the only problem is that this bug was never limited to eclipse from ubuntu repos. It has also stroked me with an eclipse from eclipse.org...
In Eclipse bugs #419729, Fabien-toral (fabien-toral) wrote : | #96 |
Created attachment 244042
crash log
(In reply to David Matějček from comment #22)
> Problematic frames occurs in two variants:
> 1) # C [libgobject-
> 2) # C [libgtk-
>
I've a third variant in the crash log provided in attachment :
# C [libgdk-
The crash occurs directly at startup while the splash screen is displayed.
My system is a fresh Debian Wheezy 7.5, the gtk version found is :
libgtk-3-common 3.4.2-7
I'll try to find some time to check with a newer GTK as suggested by your comment #25
Federico Tello Gentile (federicotg) wrote : | #97 |
- JDK 8 crash report. Edit (85.6 KiB, text/plain)
NetBeans 8 also crashes the first time you launch it and works ok the second time. Problem is in
C [libgobject-
Can confirm the issue with Kubuntu 14.04 amd64, Eclipse crashes when closing the search window:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f487d
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgobject-
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Tried the following workarounds on Kubuntu 14.04 amd64 with Eclipse from package management, all did not help
- Opening the search menu (CTRL+F) and closing it with ESC only takes 2-3 attempts to crash Eclipse:
- Setting affinity (taskset -c 1 eclipse)
- Setting theme to Raleigh in systemsettings
- GTK2_RC_
- UBUNTU_MENUPROXY= eclipse
- Using all of the above at once ("export GTK2_RC_
In Eclipse bugs #419729, Fnfhspwanv (fnfhspwanv) wrote : | #100 |
Can confirm the issue with:
- Kubuntu 14.04 amd64
- Eclipse 3.8.1
- java -version = java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7, (7u55-2.
Tried the following workarounds, all did not help
- Opening the search menu (CTRL+F) and closing it with ESC only takes 2-3 attempts to crash Eclipse:
- Setting affinity (taskset -c 1 eclipse)
- Setting theme to Raleigh in systemsettings
- GTK2_RC_
- UBUNTU_MENUPROXY= eclipse
- Using all of the above at once ("export GTK2_RC_
Typical hs_err file:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f487d
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgobject-
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
In Eclipse bugs #419729, Fabien-toral (fabien-toral) wrote : | #101 |
So, after few tries in Virtual Machines to test different Debian/gtk versions, and other researches on the net, I found a workaround to make Luna work on my Debian laptop :
export SWT_GTK3=0
That aims to fallback to the GTK2 SWT implementation and bring my Eclipse back!
I was not on the right bug report, and found my way with a comment on bug #430736 https:/
With that, it comes to me that the only solution, as i don't want to upgrade my glibc, is to fallback to GTK2...
And thanks to http://
mathew (meta23) wrote : | #102 |
Same problem here with IBM Sametime using the embedded IBM JRE and Eclipse Expeditor. So if it's an Eclipse bug, it's one you'll find in commercial closed-source products.
Workaround of setting GTK2_RC_
In Eclipse bugs #419729, Robert Muil (robertmuil) wrote : | #103 |
I'm also seeing instability with SIGSEVs in the native code when running eclipse.
I tried the SWT_GTK3=0 workaround, but got the following crash:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5f9d
#
# JRE version: Java(TM) SE Runtime Environment (7.0_60-b19) (build 1.7.0_60-b19)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.60-b09 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgobject-
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/rmuil/
Compiled method (nm) 87459 1185 n org.eclipse.
total in heap [0x00007f5fa517
relocation [0x00007f5fa517
main code [0x00007f5fa517
#
# If you would like to submit a bug report, please visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
In Eclipse bugs #419729, Berserq-k-mail (berserq-k-mail) wrote : | #104 |
Created attachment 246108
full log
Hello, with Eclipse 4.2.2 with ADT get this bug.
Core dump https:/
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe3b0
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgobject-
#
# Core dump written. Default location: /home/lberserq/
#
# An error report file with more information is saved as:
# /home/lberserq/
Compiled method (nm) 139197 719 n org.eclipse.
total in heap [0x00007fe3a910
relocation [0x00007fe3a910
main code [0x00007fe3a910
In Eclipse bugs #419729, Arunkumar-thondapu-i (arunkumar-thondapu-i) wrote : | #105 |
(In reply to Kamil Khamitov from comment #31)
> Created attachment 246108 [details]
> full log
>
> Hello, with Eclipse 4.2.2 with ADT get this bug.
> Core dump https:/
>
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # SIGSEGV (0xb) at pc=0x00007fe3b0
> #
> # JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build
> 1.7.0_67-b01)
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # C [libgobject-
This crash is bug 372560 which is fixed since Eclipse 4.3.
jstammi (jstammi) wrote : | #106 |
Concerning switching the oxygen theme please consider https:/
IMHO there are multiple reasons at the moment causing java applications to SIGSEGV the reported way. This link shows AFAIS one of them.
Simone (tigerjack89) wrote : | #107 |
Don't know if it is strongly related, but I think so.
I'm using Modelio 3.1 on Ubuntu 64 bit. Sometimes, apparently without a specific sequence pattern, Modelio closes; other times, it doesn't allow to make any type of operations (i.e. when I right click on an element, it doesn't show anything). I don't know what the problem is. If I launch it from the terminal, it always returns error message like this
>Modelio 3:10699): GLib-GObject-
or this
>(Modelio 3:10699): GLib-CRITICAL **: Source ID 20104 was not found when attempting to remove it
The error message returned in the log file is
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f803b
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgobject-
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
If it could be of help, I can attach the various log files it generates.
In Eclipse bugs #419729, tdeering (tomdeering7) wrote : | #108 |
Created attachment 247831
Additional crash log
Eclipse 4.3.2 crashes *constantly* (several times per day) with this problem on Ubuntu 14.04. The UI goes grey and unresponsive, and after force-quitting the application I get an error log with a stack trace about a seg fault in native code invoked from org.eclipse.
I've heard rumors that GTK on Ubuntu is not entirely sound. Eclipse may actually be a victim here rather than the culprit.
tdeering (tomdeering7) wrote : | #109 |
- Example crash log showing GTK crashing Eclipse Edit (177.2 KiB, text/plain)
This bug in GTK causes Eclipse to crash *constantly* (several times per day) on Ubuntu 14.04. I've attached an error log that gets left behind after the crash. The incriminating frame is:
C [libglib-
I really hope this gets fixed! Stability bugs are the worst.
Lukasz Skalski (l-skalski) wrote : | #111 |
Hi Simeone,
Your problem with Modelio and removing non-existent sources:
>(Modelio 3:10699): GLib-CRITICAL **: Source ID 20104 was not found when attempting to remove it
is connected with some changes in GLib library. GLib 2.40.0 introduced the following change:
"[..] g_source_remove() will now throw a critical in the case that you try to remove a non-existent source. We expect that there is some code in the wild that will fall afoul of this new critical but considering that we now reuse source IDs, this code is already broken and should probably be fixed."
In Eclipse bugs #419729, JPT (j-p-t) wrote : | #113 |
Hi,
I simply don't understand why nobody fixes this bug.
This was already discussed a thousand times.
See https:/
The problem occurs in any eclipse versions I tried (beginning with eclipse-3.8 from Ubuntu repo).
workarounds are either:
export SWT_GTK3=0
for me also worked
export SWT_GTK3=1
the other bug says put into eclipse.ini:
--launcher.
2
If you don't fix it, why don't you deliver any of the workarounds?
tdeering (tomdeering7) wrote : | #115 |
I'm still getting segmentation faults out of libglib-2.0 with Java 1.8.0_25-b17, Ubuntu 14.10, and Eclipse. However, after upgrading to Java 8, the seg faults I'm seeing have moved to from g_str_hash() to g_type_
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5bcd
#
# JRE version: Java(TM) SE Runtime Environment (8.0_25-b17) (build 1.8.0_25-b17)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgobject-
...
Stack: [0x00007f5c0141
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libgobject-
J 20947 C2 org.eclipse.
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 8151 org.eclipse.
J 20947 C2 org.eclipse.
...
In Eclipse bugs #419729, Mrull (mrull) wrote : | #117 |
same problem for an old Eclipse 3.6.2. the workaround worked for me: http://
In Eclipse bugs #419729, Lfarkas (lfarkas) wrote : | #119 |
it's still happened on rhel/centos-7.0 with:
- eclipse-swt-4.4.0
- glib2-2.36.3
is there any solution to this?
Aaron Curtis (substantialnoninfringinguser) wrote : | #121 |
I can confirm this in Comsol Multiphysics, and various versions of eclipse and liclipse, on Kubuntu 14.04 64-bit. Really serious bug. The Eclipses tend to crash during debugging but it seems random. Comsol used to run for a while before crashing but now crashes as soon as you create a new blank model.
Aaron Curtis (substantialnoninfringinguser) wrote : | #122 |
Ok, changing the combobox appearance as detailed at http://
In Eclipse bugs #419729, Marc-andre-laperle (marc-andre-laperle) wrote : | #124 |
I can reproduce the crash using Thomas Singer's example code (comment 9), on Ubuntu 13.10 and 14.04 when UBUNTU_MENUPROXY is enabled. If I disable UBUNTU_MENUPROXY it works. I think it's the same issue as bug 461311: radio button in the menu. Can we mark one as duplicate of the other?
In Eclipse bugs #419729, Arunkumar-thondapu-i (arunkumar-thondapu-i) wrote : | #126 |
*** Bug 466326 has been marked as a duplicate of this bug. ***
In Eclipse bugs #419729, Simone (tigerjack89) wrote : | #128 |
For me, no one of the suggested workarounds work. I tried with export SWT_GTK3=0 or export SWT_GTK3=1, but every time I move the mouse pointer on Project>Build Working Set Eclipse crashes with the following
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fa334
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libglib-
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
(Note that it always names g_str_hash+0x0).
If you like, I can attach the full log file.
In Eclipse bugs #419729, Marc-andre-laperle (marc-andre-laperle) wrote : | #130 |
(In reply to Simone Perriello from comment #39)
> For me, no one of the suggested workarounds work. I tried with export
> SWT_GTK3=0 or export SWT_GTK3=1, but every time I move the mouse pointer on
> Project>Build Working Set Eclipse crashes with the following
Have you tried UBUNTU_MENUPROXY=0 ?
In Eclipse bugs #419729, Simone (tigerjack89) wrote : | #132 |
(In reply to Marc-Andre Laperle from comment #40)
> (In reply to Simone Perriello from comment #39)
> > For me, no one of the suggested workarounds work. I tried with export
> > SWT_GTK3=0 or export SWT_GTK3=1, but every time I move the mouse pointer on
> > Project>Build Working Set Eclipse crashes with the following
>
> Have you tried UBUNTU_MENUPROXY=0 ?
Tried, and it always crash every single time.
In Eclipse bugs #419729, Cristiano Gavião (cvgaviao) wrote : | #133 |
(In reply to Simone Perriello from comment #41)
> Tried, and it always crash every single time.
Have you tried this? to create a desktop configuration file and set its command as:
env LIBOVERLAY_
I've being using this for months with many ubuntu machines and is working great.
In Eclipse bugs #419729, Simone (tigerjack89) wrote : | #134 |
(In reply to Cristiano Gaviao from comment #42)
> (In reply to Simone Perriello from comment #41)
> > Tried, and it always crash every single time.
>
> Have you tried this? to create a desktop configuration file and set its
> command as:
>
> env LIBOVERLAY_
>
> I've being using this for months with many ubuntu machines and is working
> great.
Do you mean creating a .desktop file? If so, where I have to put the commands in the exec, right? Can you provide a template of a .desktop file? I've always launched Eclipse from terminal.
In Eclipse bugs #419729, Simone (tigerjack89) wrote : | #136 |
(In reply to Cristiano Gaviao from comment #42)
> (In reply to Simone Perriello from comment #41)
> > Tried, and it always crash every single time.
>
> Have you tried this? to create a desktop configuration file and set its
> command as:
>
> env LIBOVERLAY_
>
> I've being using this for months with many ubuntu machines and is working
> great.
It doesn't work anyway.
I've used this .desktop file
[Desktop Entry]
Version=4.4.2
Name=Eclipse-jee
GenericName=IDE
Comment=Programming IDE
MimeType=
Exec=env LIBOVERLAY_
TryExec=eclipse-jee
Icon=/opt/
Type=Application
Terminal=false
Categories=
Eclipsee starts well, but crashes every time I try to move the pointer on Project->Build Working Set. It also crashes other times, but I haven't identified a pattern yet.
In Eclipse bugs #419729, Cristiano Gavião (cvgaviao) wrote : | #137 |
(In reply to Simone Perriello from comment #43)
> Do you mean creating a .desktop file? If so, where I have to put the
> commands in the exec, right? Can you provide a template of a .desktop file?
> I've always launched Eclipse from terminal.
Yep, its a .desktop file that I've put in /usr/share/
[Desktop Entry]
Version=4.5
Comment=Integrated Development Environment
Exec=env LIBOVERLAY_
Type=Application
Icon=eclipse-
Terminal=false
NoDisplay=false
Categories=
StartupWMClass=
Name[en_US]=Eclipse Mars Java
In Eclipse bugs #419729, Simone (tigerjack89) wrote : | #138 |
(In reply to Cristiano Gaviao from comment #45)
> (In reply to Simone Perriello from comment #43)
> > Do you mean creating a .desktop file? If so, where I have to put the
> > commands in the exec, right? Can you provide a template of a .desktop file?
> > I've always launched Eclipse from terminal.
>
> Yep, its a .desktop file that I've put in /usr/share/
>
> [Desktop Entry]
> Version=4.5
> Comment=Integrated Development Environment
> Exec=env LIBOVERLAY_
> /opt/eclipse-
> Type=Application
> Icon=eclipse-
> Terminal=false
> NoDisplay=false
> Categories=
> StartupWMClass=
> Name[en_US]=Eclipse Mars Java
More or less, it's the same .desktop file that I've used (see my comment above). However, as said, it doesn't work at all.
In Eclipse bugs #419729, Simone (tigerjack89) wrote : | #140 |
Don't know if it can be useful, but often after the crash the bash shell from which I've launched Eclipse doesn't respond to keyboard commands.
In Eclipse bugs #419729, Sxenos (sxenos) wrote : | #142 |
Created attachment 253846
Short SWT snippet that reproduces the problem
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #144 |
Created attachment 254676
crash log
In Eclipse bugs #419729, Sxenos (sxenos) wrote : | #146 |
Note that there was some further discussion of this bug here:
https:/
In addition to causing crashes when opening the Window menu, it also can cause "reset perspective" to crash.
This only occurs under Ubuntu, and seems related to Ubuntu's menuproxy feature (the thing where it moves the menus to the top of the screen).
In case anyone missed it, I've attached an SWT-only code snippet that demonstrates the crash in about a page of code.
In Eclipse bugs #419729, Sxenos (sxenos) wrote : | #147 |
You can also reproduce this in Eclipse by clicking Run... > Breakpoint Types
In Eclipse bugs #419729, Eclipse-p (eclipse-p) wrote : | #148 |
A user reported this problem for the latest SmartGit, too, though we already set a couple of environment variables in the launcher script to prevent it. He runs Linux Mint 17.2 Cinnamon and had the "Global Application Menu" applet installed. After disabling that, SmartGit did not crash any more.
In Eclipse bugs #419729, Thkwak (thkwak) wrote : | #149 |
Created attachment 256390
Patch
Hi. I have looked into this problem and came up with the following workaround patch that still uses Unity and avoids the crash.
I found that the crash occurs because a new Radio menu is created with *empty label*
for which unity_gtk_
My suggestion is to modify _1gtk_1radio_
given string for label is for empty string (2nd parameter). In this patch, I used the string with one space (" ") as an arbitrary text.
I confirmed that, with this patch, the test given by Thomas Singer passes and all tests in Test_org_
Please let me know if you have any question or suggestion for this patch. Thanks.
--- "a/bundles/
+++ "b/bundles/
@@ -13868,7 +13868,10 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(
jintLong rc = 0;
OS_
if (arg1) if ((lparg1 = (*env)-
- rc = (jintLong)
+ if (lparg1[0] == '\0')
+ rc = (jintLong)
+ else
+ rc = (jintLong)
fail:
if (arg1 && lparg1) (*env)-
OS_
In Eclipse bugs #419729, Marc-andre-laperle (marc-andre-laperle) wrote : | #150 |
(In reply to Taehoon Kwak from comment #53)
> I found that the crash occurs because a new Radio menu is created with
> *empty label*
> for which unity_gtk_
> up with a null-pointer dereference at g_str_hash().
Would it be a good idea to fix unity_gtk_
In Eclipse bugs #419729, Thkwak (thkwak) wrote : | #151 |
(In reply to Marc-Andre Laperle from comment #54)
> (In reply to Taehoon Kwak from comment #53)
> > I found that the crash occurs because a new Radio menu is created with
> > *empty label*
> > for which unity_gtk_
> > up with a null-pointer dereference at g_str_hash().
>
> Would it be a good idea to fix unity_gtk_
> it returns an empty string instead of null? I'm thinking it would be good to
> fix the root cause for other programs and earlier versions of Eclipse.
My patch is a workaround that changes uses of Unity. Patching Unity seems a nice idea, yet I am not sure of any side effect
In Eclipse bugs #419729, Martin Oberhuber (martin-oberhuber) wrote : | #152 |
Many thanks for the analysis so far, the explanation with "empty radio label" makes a lot of sense! - Does anyone know if a ticket already exists with Ubuntu for getting this fixed ?
We also do see the crash occasionally with Mars on Ubuntu 14.04 64-bit.
The suggested workarounds SWT_GTK3=0 UBUNTU_MENUPROXY=0 have been applied.
A fix in either Mars.2 or an Ubuntu 14.04 update would be highly appreciated !
CQ:WIND00-WB4-6132
In Eclipse bugs #419729, Marc-andre-laperle (marc-andre-laperle) wrote : | #153 |
*** Bug 449031 has been marked as a duplicate of this bug. ***
In Eclipse bugs #419729, Marc-andre-laperle (marc-andre-laperle) wrote : | #154 |
I'll assign to myself for now to investigate a fix in Ubuntu. Otherwise we can try to apply the patch in SWT.
In Eclipse bugs #419729, Marc-andre-laperle (marc-andre-laperle) wrote : | #155 |
The issue is fixed in Ubuntu >= 14.10. I proposed a patch to back-port the fix to 14.04, see https:/
In Eclipse bugs #419729, Kalyan-prasad (kalyan-prasad) wrote : | #156 |
*** Bug 457512 has been marked as a duplicate of this bug. ***
In Eclipse bugs #419729, Markus-keller (markus-keller) wrote : | #157 |
*** Bug 462002 has been marked as a duplicate of this bug. ***
In Eclipse bugs #419729, Markus-keller (markus-keller) wrote : | #158 |
There's no point in delaying a workaround in SWT for this crash. Attachment 253846 still reproduces on Ubuntu 14.04.
AFAICS, this is the place where the fix in Ubuntu could eventually show up:
http://
Released a simple workaround to master: http://
Changed in eclipse: | |
status: | Confirmed → Fix Released |
In Eclipse bugs #419729, Markus-keller (markus-keller) wrote : | #159 |
*** Bug 465485 has been marked as a duplicate of this bug. ***
In Eclipse bugs #419729, Marc-andre-laperle (marc-andre-laperle) wrote : | #160 |
Thanks Markus!
Created attachment 236604
crash log
A user on Linux reported native crashs for SmartSVN (SWT-based application):
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) swt.internal. gtk.OS. _gtk_widget_ show(J) V+0 swt.internal. gtk.OS. gtk_widget_ show(J) V+8 swt.widgets. MenuItem. createHandle( I)V+249 swt.widgets. Widget. createWidget( I)V+2 swt.widgets. MenuItem. <init>( Lorg/eclipse/ swt/widgets/ Menu;I) V+19
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.
j org.eclipse.