Alexandr Miloslavskiy

Results 100 comments of Alexandr Miloslavskiy

Relevant portion of Java stack from crash log: ``` C [libswt-gtk-4962r3.so+0x3ed16] Java_org_eclipse_swt_internal_C_strlen+0xf j org.eclipse.swt.printing.PrintDialog.storeBytes(Ljava/lang/String;J)V+1 j org.eclipse.swt.printing.PrintDialog.open()Lorg/eclipse/swt/printing/PrinterData;+1292 ```

Important parts from the crash logs ``` Stack: [0x00007fe6574fc000,0x00007fe6575fc000], sp=0x00007fe6575f7cd0, free space=1007k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libgtk-3.so.0+0x34e66d] gtk_widget_get_parent+0x1d Java frames: (J=compiled Java code,...

We received a few crash reports like this for our product. The earliest one dated 2023-10-05. This probably means a recent update in Linux caused (or merely triggered) this. All...

The relevant SWT code is https://github.com/eclipse-platform/eclipse.platform.swt/blob/29baefdaa4927f378d64f9ccb5aca1abb95bf678/bundles/org.eclipse.swt/Eclipse%20SWT%20Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java#L1377-L1389 I understand it this way: * argument `atkObject` arrived from outside our code. It shall be correct. * We try to call `ATK.call (objectClass.get_parent,...

In other words: * Something, most likely Orca, wants to know more about Accessible for SWT control. * Specifically, it wants to know what is the parent Accessible for SWT...

I tried to reproduce on Ubuntu 22.04 with Eclipse 2023-09 using both step lists and it's not reproducible.

I tried with Ubuntu 23.04 and it's easily reproducible there. Seems like the problem begins between Ubuntu 22.04 and 23.04

Native stack for the crash: ``` #0 gtk_widget_get_parent (widget=0x7ffff2951730) at ../../../gtk/gtkwidget.c:9707 #1 gtk_widget_accessible_get_parent (accessible=0x7ffff294d9f0) at ../../../gtk/a11y/gtkwidgetaccessible.c:177 #2 Java_org_eclipse_swt_internal_accessibility_gtk_ATK_call__JJ() #0 jni_invoke_static (result=0x7ffff0014090, result@entry=0x7ffff67fc0d0, method_id=method_id@entry=0x7ffff07fe7c8, args=0x0, args@entry=0x7ffff67fc100, __the_thread__=__the_thread__@entry=0x7ffff0014090, env=, call_type=JNI_STATIC, receiver=0x0) at...

SWT snippet to reproduce ```java final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout (new GridLayout (1, true)); Label hint = new Label(shell, 0); hint.setText( "1....