inkscape crashes with gtk-oxygen gtk2 theme in editing-gradient-tool

Bug #948178 reported by Sandra Karuving
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Gtk2 Engines Oxygen
Fix Released
High
Inkscape
Invalid
High
Unassigned
gtk2-engines-oxygen (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

1. open inkscape and draw a box
2. open the color/gradient tool
3. select a gradient for the box
4. open the edit gradient tool
5. try to switch to the secound color of the gradient in this toolwindows -> crash

This happens here only with oxygen-gtk. the other style "raleigh" isnt effected. other styled are not tested by me

Terminal output:

Gtk-CRITICAL **: IA__gtk_paint_layout: assertion `style->depth == gdk_drawable_get_depth (window)' failed
The program 'inkscape' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 51194 error_code 8 request_code 140 minor_code 3)
  (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 --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: inkscape 0.48.3.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic-pae 3.2.9
Uname: Linux 3.2.0-18-generic-pae i686
ApportVersion: 1.94-0ubuntu2
Architecture: i386
Date: Tue Mar 6 17:33:29 2012
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120201.1)
ProcEnviron:
 LANGUAGE=de_DE
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/usr/bin/zsh
SourcePackage: inkscape
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sandra Karuving (lumks) wrote :
Changed in inkscape:
importance: Undecided → High
Changed in inkscape (Ubuntu):
importance: Undecided → Medium
tags: added: crash
Revision history for this message
In , Fabian B (fabidesu-deactivatedaccount) wrote :

1. open inkscape
2. draw a box
3. set background type gradient
4. click edit gradient
5. switch to the secound color -> crash

Happens every time

Version: 1.2.1

Terminal output:
Gtk-CRITICAL **: IA__gtk_paint_layout: assertion `style->depth == gdk_drawable_get_depth (window)' failed
The program 'inkscape' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 59544 error_code 8 request_code 140 minor_code 3)
  (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 --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

when I switch to gtk theme raleigh inkscape will not crash so i reported it here.

Revision history for this message
In , Ruslan (b7-10110111) wrote :

Can't reproduce with Inkscape 0.47pre4. What's your version?

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

Can't reproduce with inkscape 0.48.1 either.
Please specify version
(and version of oxygen-gtk)

Revision history for this message
In , Fabian B (fabidesu-deactivatedaccount) wrote :

inkscape --version
Inkscape 0.48.3.1 r9886 (Mar 6 2012)

on Launchpad I found something similar: https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/948178

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

So ... it seems like a "regression" in inkscape. I'd recommend to file a bug directly to them. possibly adding a pointer to this page. Doesn't mean that we can't fix it, but it might be easier on their side. Besides, I will only be able to try fix once my inkscape version is updated ...

Hugo

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

PS: also, version 0.48.3 is apparently still tagged "unstable" by inkscape devs. Stable would be 0.48.2. Can you try downgrade inkscape and tell me if the crash still happens ?

Revision history for this message
In , Fabian B (fabidesu-deactivatedaccount) wrote :

inkscape --version
Inkscape 0.48.2 r9819 (Jul 11 2011)

same
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 49281 error_code 8 request_code 140 minor_code 3)
  (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 --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

will report that to the inkscape project too

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

... interestingly, I just compiled and installed version 0.48.3.1, and still can't reproduce.
Just to make sure that we are talking about the same thing:

http://wstaw.org/m/2012/03/12/plasma-desktopzP3275.png

That's the dialog that crashes for you (when you click on the drop down list) . Correct ?

Also: what oxygen-gtk version are you using ?

Revision history for this message
In , Fabian B (fabidesu-deactivatedaccount) wrote :

(In reply to comment #7)
> That's the dialog that crashes for you (when you click on the drop down
> list) . Correct ?
Yep: for better understanding here a video:
http://www.youtube.com/watch?v=LXbEOu6wn1E
> Also: what oxygen-gtk version are you using ?
Oxygen-gtk is V1.2.1

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

Thanks for the video.
Sadly enough, that's exactly what I did, and with no crash.
Can you also provide your gtk+ version
(running out of ideas here I must say)

Revision history for this message
In , Fabian B (fabidesu-deactivatedaccount) wrote :

I really dont know how to get the gtk version. my packagemanager calls them
"2.24.10-0ubuntu5"

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

ok !
I have 2.24.9
I guess I should update that too :)

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

... still no luck with gtk+-2.24.10 (compiled manually) ....
seems inkscape is rock solid here ...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in inkscape (Ubuntu):
status: New → Confirmed
summary: - inkscape grash with gtk-oxygen gtk2 theme in editing-gradient-tool
+ inkscape crashes with gtk-oxygen gtk2 theme in editing-gradient-tool
Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

ok. On my "other" computer, I am able to reproduce. Investigating.

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

ok. I 'think' I was able to track it down to an issue with latest glib.
Using glib-2.31.20 -> crash
Using glib-2.31.18 -> no Crash

@Ruslan:
The crash here is actually related to the issue you have in gimp when (image->scale_canvas), change unit.
using glib-2.31.20 -> new unit does not appear
glib-2.31.18 -> unit does appear.

So, with you seing the gimp bug you should also be able to reproduce the inkscape crash (can you ?)
In both cases they are due to depth mismatch.

In which case. Can you reproduce my observation when downgrading glib ?
If yes
1/ that would be good news
2/ I might even be able to track the guilty change in glib

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

ok. I have
1/ a dirty fix: trigger on size-request event rather than parent-set event to re-attach style (that fixes the depth mismatch), cause the later is apparently not working any more, but the former does. This is very innefficient
2/ a possible clean (and even cleaner than before) fix, to use a Signal rather that a Hook, on parent-set event, attached to all GtkMenuItem's children.

Still working on 2/, and I'll push it to master as soon as done, for testing.

Revision history for this message
In , 5w-hugo (5w-hugo) wrote :

Git commit 8710e03009c987db65b27a877b8e682bfc3101fd by Hugo Pereira Da Costa.
Committed on 19/03/2012 at 11:37.
Pushed by hpereiradacosta into branch 'master'.

moved style re-attachement from oxygenargbhelper to dedicated menuItem engine.

M +1 -0 src/CMakeLists.txt
M +1 -0 src/animations/oxygenanimations.cpp
M +8 -0 src/animations/oxygenanimations.h
A +93 -0 src/animations/oxygenmenuitemdata.cpp [License: LGPL (v2)]
C +20 -24 src/animations/oxygenmenuitemdata.h [from: src/oxygenargbhelper.h - 059% similarity]
A +58 -0 src/animations/oxygenmenuitemengine.h [License: LGPL (v2)]
M +2 -66 src/oxygenargbhelper.cpp
M +0 -9 src/oxygenargbhelper.h
M +6 -0 src/oxygenstylewrapper.cpp

http://commits.kde.org/oxygen-gtk/8710e03009c987db65b27a877b8e682bfc3101fd

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

... crap. This fixes inkscape, but not gimp.
Committed too soon.

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

my bad. Wrong compilation.
It actually does fix both inkscape and gimp.
So closing.
Ruslan: please double check (at least for gimp)

I'll merge to 1.2 and gtk3 in a couple of days.

Revision history for this message
In , Hugo Pereira Da Costa (hugo-pereira) wrote :

PS: thanks for reporting !

Revision history for this message
Fabian B (fabidesu-deactivatedaccount) wrote :

https://bugs.kde.org/show_bug.cgi?id=295803 Has a fix for it. Its something related to glib 2.31.20

Revision history for this message
In , Ruslan (b7-10110111) wrote :

Yes, fixed for both inkscape and gimp (I was able to reproduce this bug with glib-2.31.20).

Revision history for this message
su_v (suv-lp) wrote :

Based on the latest comments in <https://bugs.kde.org/show_bug.cgi?id=295803> - can we close this report as 'Invalid' for the project 'Inkscape'?

Revision history for this message
Sandra Karuving (lumks) wrote :

or as fixed. yes. i can not reproduce this anymore

Revision history for this message
su_v (suv-lp) wrote :

> or as fixed. yes. i can not reproduce this anymore

There had been no changes in Inkscape's code base - the fix was upstream in the Oxygen gtk2-engine.

Closing as 'Invalid' for Inkscape - feel free to reopen if you have additional information that the conflict in Oxygen's gtk2 theme engine with certain (unstable) versions of glib need to be addressed in Inkscape's code as well.

Changed in inkscape:
status: New → Invalid
Changed in gtk2-engines-oxygen:
importance: Unknown → High
status: Unknown → Fix Released
affects: inkscape (Ubuntu) → gtk2-engines-oxygen (Ubuntu)
Changed in gtk2-engines-oxygen (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.