Bug 527284 - The program 'Eclipse' received an X Window System error.
Summary: The program 'Eclipse' received an X Window System error.
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 541722 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-15 04:27 EST by Arne Plöse CLA
Modified: 2020-03-25 06:47 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Plöse CLA 2017-11-15 04:27:47 EST
If I try to open the run tab of any bnd.bnd eclipse will crash.

this is the console output:

(Eclipse:13745): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkCheckButton

(Eclipse:13745): Gdk-ERROR **: The program 'Eclipse' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 109223 error_code 8 request_code 139 (RENDER) minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

How can I help to get a usable eclipse (again)...

-- Configuration Details --
Product: Eclipse 4.7.1.20171005-1200 (org.eclipse.epp.package.java.product)Installed Features:
 org.eclipse.platform 4.8.0.v20170913-2000
Comment 1 Arne Plöse CLA 2017-11-15 04:44:36 EST
Workaround: 

switch to wayland...
Comment 2 Alexander Kurtakov CLA 2017-11-27 08:13:32 EST
Would you please attach hs_err_pid * file generated of the crash? Working on wayland is preferable IMHO.
Comment 3 Arne Plöse CLA 2017-11-27 13:46:02 EST
There is only a core dump of 1.4GB...

Arne(In reply to Alexander Kurtakov from comment #2)
> Would you please attach hs_err_pid * file generated of the crash? Working on
> wayland is preferable IMHO.
Comment 4 Arne Plöse CLA 2017-11-28 05:34:19 EST
Maybe this helps a bit....

gdb where

#0  0x719b6e40 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0x719b9543 in g_log_writer_default () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0x719b7a1c in g_log_structured_array () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x719b7c7d in g_log_structured () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x7223c829 in ?? () from /usr/lib/i386-linux-gnu/libgdk-3.so.0
#5  0x72249d04 in ?? () from /usr/lib/i386-linux-gnu/libgdk-3.so.0
#6  0x71f95b7a in _XError () from /usr/lib/i386-linux-gnu/libX11.so.6
#7  0x71f9277b in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#8  0x71f9283f in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#9  0x71f9324b in _XEventsQueued () from /usr/lib/i386-linux-gnu/libX11.so.6
#10 0x71f93533 in _XFlush () from /usr/lib/i386-linux-gnu/libX11.so.6
#11 0x71f741c0 in XFlush () from /usr/lib/i386-linux-gnu/libX11.so.6
#12 0x72cc4ddf in Java_org_eclipse_swt_internal_gtk_OS__1XFlush ()
   from /home/aploese/eclipse/java-latest-released/eclipse/configuration/org.eclipse.osgi/399/0/.cp/libswt-pi3-gtk-4758.so
#13 0xa71ed0e6 in ?? ()
#14 0xa71e4d4a in ?? ()
#15 0xa71e4d4a in ?? ()
#16 0xa71e4d4a in ?? ()
#17 0xa71e4d4a in ?? ()
#18 0xa71e4d4a in ?? ()
#19 0xa71e4d4a in ?? ()
#20 0xa71e4d4a in ?? ()
#21 0xa71e4d4a in ?? ()
#22 0xa71e4d4a in ?? ()
#23 0xa71e4d4a in ?? ()
#24 0xa71e4d4a in ?? ()
#25 0xa71e4d4a in ?? ()
#26 0xa71e4d7f in ?? ()
#27 0xa71e4d4a in ?? ()
#28 0xa71e4d4a in ?? ()
#29 0xa71e4d4a in ?? ()
#30 0xa71e4d4a in ?? ()
#31 0xa71e4d4a in ?? ()
#32 0xa71e4d4a in ?? ()
#33 0xa71e4d4a in ?? ()
---Type <return> to continue, or q <return> to quit---
#34 0xa71e4d7f in ?? ()
#35 0xa834aec4 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Comment 5 Leo Ufimtsev CLA 2017-11-28 12:01:12 EST
Are you using 32bit linux/Eclipse?
Comment 6 Arne Plöse CLA 2017-11-28 12:53:12 EST
Yes, and here is the 64 bit

(gdb) where
#0  0x00007f9185549951 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f918554bf71 in g_log_writer_default () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f918554a4ee in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f918554a7e7 in g_log_structured () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f91866e4221 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#5  0x00007f91866f1913 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#6  0x00007f91534ad22d in _XError () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007f91534aa157 in  () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#8  0x00007f91534aa215 in  () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#9  0x00007f91534aab15 in _XEventsQueued () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#10 0x00007f915348c58a in XFlush () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#11 0x00007f9145876074 in Java_org_eclipse_swt_internal_gtk_OS__1XFlush () at /home/aploese/eclipse/java-oxygen/eclipse/configuration/org.eclipse.osgi/1055/0/.cp/libswt-pi3-gtk-4758.so
#12 0x00007f91dd0177f4 in  ()
#13 0x0000000000000000 in  ()
(gdb)
Comment 7 Leo Ufimtsev CLA 2017-11-28 13:18:53 EST
hmm.. Do you have any fancy display setups? (I have laptop + 3 extension screens. Sometimes things crash when I drag windows between screens).

Btw, what is "run tab of any bnd.bnd" bnd? 

Do you use adwaita or other theme?
What version of gtk r u on?
Comment 8 Arne Plöse CLA 2017-11-29 03:12:42 EST
(In reply to Leo Ufimtsev from comment #7)
> hmm.. Do you have any fancy display setups? (I have laptop + 3 extension
> screens. Sometimes things crash when I drag windows between screens).
> 
No, I haven't.

> Btw, what is "run tab of any bnd.bnd" bnd? 
>
BND Tools from marketplce (for OSGi projects).
 
> Do you use adwaita or other theme?
Yes, I use adwaita.
> What version of gtk r u on?
Debian unstable (x64) so its  libgtk-3.so.0.2200.26
and Debian stable (i386)
Comment 9 Leo Ufimtsev CLA 2017-11-29 13:28:52 EST
Hmm.

1) Do you use gnome?

2) If I hack together an (64bit) swt.jar that doesn't use XFlush, would you be able to put it into your eclipse somehow?

Curious to see if that would fix things.
Comment 10 Arne Plöse CLA 2017-11-29 14:35:09 EST
(In reply to Leo Ufimtsev from comment #9)
> Hmm.
> 
> 1) Do you use gnome?
Yes, 3.26
> 
> 2) If I hack together an (64bit) swt.jar that doesn't use XFlush, would you
> be able to put it into your eclipse somehow?
I will try it.
> 
> Curious to see if that would fix things.
Comment 11 Alexander Kurtakov CLA 2018-11-15 07:54:07 EST
Is this still reproducible with 2018-09 or later?
Comment 12 Arne Plöse CLA 2018-11-15 15:34:52 EST
(In reply to Alexander Kurtakov from comment #11)
> Is this still reproducible with 2018-09 or later?

No, It seems fixed.

Thanks,

Arne
Comment 13 Alexander Kurtakov CLA 2018-11-15 15:43:36 EST
Resolving as per previous comment.
Comment 14 Dani Megert CLA 2018-11-30 05:10:42 EST
*** Bug 541722 has been marked as a duplicate of this bug. ***