Bug#256868: some more information regarding crashing gdesklets

Admar Schoonen Admar Schoonen <admar@luon.net>, 256868@bugs.debian.org
Tue, 13 Jul 2004 13:04:13 +0200


Hi

I've put some print statements in /usr/share/gdesklets/main/Starter.py:

    #
    # Waits until the given callback returns TRUE.
    #
    def __wait_for(self, callback):

        print("__wait_for()")
        while (not callback()):
            print("gtk.threads_enter")
            gtk.threads_enter()
            print("gtk.main_iteration")
            gtk.main_iteration()
            print("gtk.threads_leave")
            gtk.threads_leave()
            print("")
        print("__wait_for() ended")

and I get the following output:
dmar@zonne:~$ gdesklets
gDesklets 0.26.2
Copyright (C) 2003, 2004 The gDesklets Team

This software is licensed under the terms of the GNU GPL.

[/usr/share/gdesklets/Displays/clock-desklet/gnomeclock.display]
__wait_for()
gtk.threads_enter
gtk.main_iteration
gtk.threads_leave

... (loop runs another 8 times) ...

gtk.threads_enter
gtk.main_iteration
admar@zonne:~$

At the last gtk.main_iteration, I get a dialog window telling me that
gdesklets has crashed.

Since this is the first python code I've ever seen, and since I'm not a
very good coder, I'm quite stuck here. Do you have any idea's how to
find the real cause of this crash?

Admar