Bug 302197 - Rubymine craches with installed gtk2-engine
Summary: Rubymine craches with installed gtk2-engine
Status: RESOLVED FIXED
Alias: None
Product: Oxygen
Classification: Plasma
Component: gtk2-engine (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-19 17:16 UTC by Alexander
Modified: 2012-07-02 09:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Backtrace (133.43 KB, text/plain)
2012-06-19 17:16 UTC, Alexander
Details
Backtrace with debug info (131.83 KB, text/plain)
2012-06-20 08:45 UTC, Alexander
Details
Oxygen debug (65.28 KB, text/plain)
2012-06-22 07:51 UTC, Alexander
Details
Crash dump in JRE 1.6, probably also affected by this issue (78.73 KB, text/plain)
2012-07-02 06:59 UTC, René Krell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2012-06-19 17:16:18 UTC
Gtk2-engine today's git build
KDE version is 4.8.90
Rubymine version 4.0.3

Crash happens every time when I trying to open "File" or "Edit" menu entries.

Reproducible: Always

Steps to Reproduce:
1. Run rubymine
2. Click on "File" meny entry
Comment 1 Alexander 2012-06-19 17:16:48 UTC
Created attachment 71951 [details]
Backtrace
Comment 2 Ruslan Kabatsayev 2012-06-19 17:19:33 UTC
> C  [liboxygen-gtk.so+0x1158a5]  Oxygen::StyleWrapper::type()+0x2d75
Could you build oxygen-gtk with debug symbols (add CMAKE_CXX_FLAGS=-g to cmake command line)?
Comment 3 Alexander 2012-06-20 08:45:31 UTC
Created attachment 71973 [details]
Backtrace with debug info

Hi, sure.
Comment 4 Ruslan Kabatsayev 2012-06-20 10:47:17 UTC
> Oxygen::processTabCloseButton(_GtkWidget*, GtkStateType)+0xaceb
Also, it's strange that even with debug symbols the trace is so undetailed.

Could you check if latest master fixes this? If it doesn't, please give output of the program at your actions when it crashes (without stack trace) with oxygen-gtk built with DOXYGEN_DEBUG=1 passed to cmake.
Comment 5 Hugo Pereira Da Costa 2012-06-21 14:43:04 UTC
... need help on how to actually use oxygen-gtk with this java app 
(must be some swing, or sw thing again :( )
(also that probably explains why no backtrace).
Comment 6 Alexander 2012-06-22 07:51:04 UTC
Created attachment 72035 [details]
Oxygen debug

Hi, today's build didn't helped, oxygen debug output attached.
Comment 7 Alexander 2012-06-22 07:58:44 UTC
Looks like it fails to draw check boxes in context menu.
Comment 8 Hugo Pereira Da Costa 2012-06-22 08:08:05 UTC
Alexander, any advice on comment #5 ? 
Right now my local installation of rubymine (30 days trial since its non free software) looks like:

http://wstaw.org/m/2012/06/22/plasma-desktopVU3470.png

so that I can't reproduce the problem (and can't help fixing)
Comment 9 Hugo Pereira Da Costa 2012-06-22 08:09:17 UTC
Nevermind ... I was able to change the appearance, and can reproduce the crash.
Will keep you posted.
Comment 10 Hugo Pereira Da Costa 2012-06-22 09:29:26 UTC
Git commit 9e2cba149b18caff6986e803c094f2c9fdf7c1cc by Hugo Pereira Da Costa.
Committed on 22/06/2012 at 11:27.
Pushed by hpereiradacosta into branch 'master'.

Check clipRect validity before altering its width

M  +2    -4    src/oxygenstylewrapper.cpp

http://commits.kde.org/oxygen-gtk/9e2cba149b18caff6986e803c094f2c9fdf7c1cc
Comment 11 Hugo Pereira Da Costa 2012-06-22 09:31:54 UTC
Git commit ebda9cf5273f62ce226612d3080f49f135f3f2d4 by Hugo Pereira Da Costa.
Committed on 22/06/2012 at 11:27.
Pushed by hpereiradacosta into branch '1.2'.

Check clipRect validity before altering its width

M  +2    -4    src/oxygenstylewrapper.cpp

http://commits.kde.org/oxygen-gtk/ebda9cf5273f62ce226612d3080f49f135f3f2d4
Comment 12 Hugo Pereira Da Costa 2012-06-22 09:32:40 UTC
... That fixes it.
(access to invalid clipRect (==NULL))

Thanks for reporting !
(and for the testing)
Comment 13 Alexander 2012-06-22 09:42:06 UTC
Thank you!
Comment 14 René Krell 2012-07-02 06:59:46 UTC
Created attachment 72269 [details]
Crash dump in JRE 1.6, probably also affected by this issue

Just BTW, in case someone ran into the same trouble - this issue caused also crashes in Java, using DBVisualizer, when accessing menu items or opening context menus.
Comment 15 Ruslan Kabatsayev 2012-07-02 09:57:43 UTC
(In reply to comment #14)
Isn't it fixed in latest master?