You are not logged in.
Pages: 1
Hi!
Quite often when I use open-dialogs in GTK2 based applications such as xarchiver Controller.py crashes (according to the error messages). Quite a lot of things seem to depend on it, as most of my desktop simply disappears when it crashes.
Any ideas? I get this if I start the applications from the terminal:
Pypanel:
Traceback (most recent call last):
File "/usr/bin/pypanel", line 957, in <module>
PyPanel(display.Display())
File "/usr/bin/pypanel", line 98, in __init__
self.loop(self.display, self.root, self.window, self.panel)
File "/usr/bin/pypanel", line 818, in loop
self.updateTasks(dsp, root, win, panel)
File "/usr/bin/pypanel", line 774, in updateTasks
self.setIcon(t)
File "/usr/bin/pypanel", line 314, in setIcon
icon.path = ICON_LIST["default"] or "%s/pypanel/ppicon.png" % sysconfig.get_python_lib()
KeyError: 'default'
Emesene:
/usr/share/emesene/Controller.py:876: GtkWarning: GdkWindow 0x100002b unexpectedly destroyed
gtk.main()
The program 'Controller.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'.
(Details: serial 8800 error_code 169 request_code 158 minor_code 7)
(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.)
Xchat:
(xchat:6219): Gdk-WARNING **: GdkWindow 0xc0011c unexpectedly destroyed
The program 'xchat' received an X Window System error.
This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'.
(Details: serial 79327 error_code 169 request_code 158 minor_code 7)
(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.)
Any ideas? This is really getting on my nerves. I made a search but I didn't find anything.
Any help would be greatly appreciated!
Last edited by Honken (2008-04-20 21:24:23)
Offline
Bump
Anyone? It's really annoying.
Offline
below is a patch that fixes the pypanel issue, i'm guessing ICON_LIST gets truncated related matter at some point
pypanel.patch
--- /usr/bin/pypanel 2006-10-22 22:19:16.000000000 +0100
+++ /tmp/pypanel 2008-04-17 22:16:04.297578012 +0100
@@ -311,7 +311,7 @@
raise
except:
# default icon
- icon.path = ICON_LIST["default"] or "%s/pypanel/ppicon.png" % sysconfig.get_python_lib()
+ icon.path = ICON_LIST.get("default") or "%s/pypanel/ppicon.png" % sysconfig.get_python_lib()
task.icon = icon
though the patch above should remedy this issue, it'd be appreciated if you could submit these bugs, upstream...
i'm not in the mood right now, but might do tomorrow if i feel like it.
prolly do the same for the others.
also, can you follow the instructions on the error reports,, i.e to get the back trace and or useing the --sync parameter ..
also, can you say what you did leading up to these crashes
Offline
Heya, have been away for a while, sorry.
Anyways, how do I apply the patch? Never really figured it out how to use patches, sorry.
Using the --sync paramter (%application% --sync in the terminal, right?) shows the exact same message. Am I doing it wrong?
Usually these crashes occur when I use some open dialogs. For example, the "extract to" dialog in xarchiver. Xarchiver still works, but everything else, but Firefox dies. Also, pressing F2 to rename files in pcmanfm also crashes the "controller.py". Wine has a habit of crashing it randomly as well, even when it's idle.
As for reporting the bugs, how do I do that?
Err, sorry for all the questions, it's just that I've never done any of that before.
Oh and, a big thanks for replying.
Last edited by Honken (2008-04-20 14:19:44)
Offline
sudo patch -i pypanel.patch /usr/bin/pypanel
no worries, i submitted the patch on pypanel's sf.net tracker.
, hmm ... have you tried using another theme?
ive had x window warnings while developing my video/image/audio player before,, i changed the theme and it all went away
Offline
Thanks, applying the patch worked like a charm and guess what? It stopped the crashes.
A big thanks to you!
Don't know about the warnings, they appeared when the controller.py crashed, which it doesn't anymore so... I don't think I'll bother looking into them now. I'm using Rezlooks green/black by the way.
Offline
yw, that's good nice to hear, hope it stays that way
Offline
Pages: 1