Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Crashes on linux gtk

Hi,

I have been seeing a lot of crashes in linux gtk with pid file reporting the following:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.gtk.OS._gtk_widget_destroy(J)V+0
j  org.eclipse.swt.internal.gtk.OS.gtk_widget_destroy(J)V+8
j  org.eclipse.swt.widgets.Widget.destroyWidget()V+26
J 1713 C1 org.eclipse.swt.widgets.Widget.release(Z)V (90 bytes) @ 0x00007fe9495b56ec [0x00007fe9495b5140+0x5ac] J 1716 C1 org.eclipse.swt.widgets.Control.release(Z)V (115 bytes) @ 0x00007fe9495db8ec [0x00007fe9495db3e0+0x50c]
j  org.eclipse.swt.widgets.Widget.dispose()V+23

It does not happen on other versions of linux.

Could it be a possible SWT bug ? I am pretty sure that code is OK as it has been working fine on all platforms and since a long time.

Thanks,
Gurmeen

On 09/08/16 11:29, Gurmeen Bindra wrote:


Hi,

I am seeing Null Pointer exceptions causing my applications using SWT to
crash for 4.3 to 4.5 versions of SWT linux gtk 64 bit (ubuntu 16.04 gnome).
This happens in instances when I try to dispose widgets or getClipboard
types.

java.lang.NullPointerException
        at
org.eclipse.swt.accessibility.AccessibleObject.addRelation(Unknown Source)
        at org.eclipse.swt.accessibility.Accessible.addRelations(Unknown
Source)
        at
org.eclipse.swt.accessibility.AccessibleFactory.atkObjectFactory_create_accessible(Unknown
Source)
        at
org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(Unknown Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)


Anyone has any idea on how to fix this ?

I note that there is a bug open for this but no updates.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=312451

Thanks,
Gurmeen



Back to the top