Bug 424596 - [GTK3] Eclipse crash with Gtk:ERROR:gtkcellrenderer.c:1727:gtk_cell_renderer_get_aligned_area: assertion failed on "Next Editor"
Summary: [GTK3] Eclipse crash with Gtk:ERROR:gtkcellrenderer.c:1727:gtk_cell_renderer_...
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2013-12-22 20:46 EST by Jacek Sieka CLA
Modified: 2016-07-28 09:55 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Sieka CLA 2013-12-22 20:46:49 EST
When pressing the "Next editor" keyboard shortcut, Eclipse crashes with the following printed to the console:

Gtk:ERROR:gtkcellrenderer.c:1727:gtk_cell_renderer_get_aligned_area: assertion failed: (aligned_area->x >= cell_area->x && aligned_area->x <= cell_area->x + cell_area->width)

Nothing in the .log file.

Running eclipse in GTK2 mode solves the issue, bringing up the list of open editors as usual.

Version: Luna Release
Build id: 20131219-0014

Fedora 19, OpenJDK 1.7.0.60, GTK3 3.8.8
Comment 1 Arun Thondapu CLA 2014-01-20 07:41:39 EST
Niraj, can you please try to reproduce this crash with GTK3 and investigate the problem? Thanks!
Comment 2 Niraj Modi CLA 2014-02-04 09:56:28 EST
In addition to "Next Editor" could see a crash on below as well:
"Show View" - Alt + Shift + Q

In both the scenarios crash happen while bringing up a tool-tip of list of editors or views.

Could see a similar assertion failure open bug reported on gtk+3:
https://bugzilla.gnome.org/show_bug.cgi?id=668779
Comment 3 Alexander Kurtakov CLA 2014-04-01 03:26:59 EDT
Niraj, do you have a pure swt reproducer for this crash? It would help a lot to identify the problem.
Comment 4 Haris Peco CLA 2014-07-17 17:52:42 EDT
I can't reproduce the issue on Ubuntu 14.04 (GTK 3.10.8, GTK 3.8.6 and GTK 3.4.2)
Comment 5 Haris Peco CLA 2014-07-17 17:58:57 EDT
I can't reproduce the issue on Ubuntu 14.04 (GTK 3.10.8, GTK 3.8.6 and GTK 3.4.2)
Comment 6 Haris Peco CLA 2014-07-17 18:25:15 EDT
IMO, it is fixed in GTK3.
Comment 7 Marc-André Laperle CLA 2015-08-11 23:01:20 EDT
I haven't been able to reproduce this crash from within Eclipse (even on Fedora 19) but I have been able to reproduce it with the code snippet from https://bugzilla.gnome.org/show_bug.cgi?id=668779 comment 8. I have bisected the GTK git repo and found that this is fixed in GTK >= 3.13.3, commit a3cd0ee7d8a610feff39984254306cec4a6c9c73. In theory, this crash could occur in Eclipse using GTK [3.7.8, 3.13.12]. I think if someone could reproduce this reliably it would be useful so that we could investigate whether or not it would be possible to have a work around in SWT.
Comment 8 Marc-André Laperle CLA 2015-08-12 18:14:55 EDT
I was able to reproduce this in 4.3.2 until this commit:

commit f12d01beb576adb1e38d5731c9ef6f98c2d0b598
Author: Alexander Kurtakov <akurtako@redhat.com>
Date:   Thu Jan 30 15:20:45 2014 +0200

    Bug 424891 - File Properties Resource Permissions list UI broken
    
    On GTK3 set min_width of the column too to prevent fixed_width becoming
    a hint only.




Then I am not able to reproduce this again. So I am tempted to mark this as fixed.
Comment 9 Alexander Kurtakov CLA 2016-07-28 09:55:44 EDT
Closing as per previous comment.