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

Hello, 

I added null checks around the public API that could potentially lead to a null  target. (see gerrit review in bug).  This way we could tell what adds null objects before they lead to a crash.
This also allows clients to put the addRelation() and removeRelation() calls into try/catch clauses to prevent crashes.

I'm not sure if this can be classified as api change. This may be an *implicit* api change, in that it throws an unchecked exception:
I.e, previous code doesn't have to be modified, but new code can add try/catch around a call to that api. Does anyone know if this is considered api change?

Thank you

Leo


On Tue, Aug 9, 2016 at 6:29 AM, Gurmeen Bindra <gurmeen.bindra@xxxxxxxxx> 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
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Leo Ufimtsev | Associate Software Engineer @ Red Hat

Back to the top