After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 328002 - keyboard applet sometimes crash when logout
keyboard applet sometimes crash when logout
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: keyboard indicator (gswitchit)
2.12.x
Other All
: Normal critical
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-21 16:43 UTC by Ondrej Novy
Modified: 2006-03-22 00:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Keyboard DEBUG log at level 200 from login to logout + crash, BT is same (75.58 KB, text/plain)
2006-02-08 11:38 UTC, Ondrej Novy
Details
Keyboard DEBUG log at level 200 from login to logout - CVS version of xklavier (141.38 KB, text/plain)
2006-02-18 11:17 UTC, Ondrej Novy
Details

Description Ondrej Novy 2006-01-21 16:43:30 UTC
Steps to reproduce:
just logout

Stack trace:
(gdb) thread apply all bt

Thread 1 (process 8821)

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #2 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 <signal handler called>
  • #5 g_type_check_instance_is_a
    from /usr/lib/libgobject-2.0.so.0
  • #6 gdk_x11_drawable_get_xid
    from /usr/lib/libgdk-x11-2.0.so.0
  • #7 GSwitchItAppletFilterXEvt
    at gswitchit-applet.c line 253
  • #8 gdk_events_pending
    from /usr/lib/libgdk-x11-2.0.so.0
  • #10 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #17 bonobo_generic_factory_main
    from /usr/lib/libbonobo-2.so.0
  • #18 panel_applet_factory_main_closure
    from /usr/lib/libpanel-applet-2.so.0
  • #19 panel_applet_factory_main
    from /usr/lib/libpanel-applet-2.so.0
  • #20 main
    at switch.c line 37

Other information:
Comment 1 Sergey V. Udaltsov 2006-01-23 01:14:35 UTC
Ghm, I cannot really reproduce it:((. 
The story is that GSwitchItAppletFilterXEvt should be unregistered when the last applet is removed (so globals.appletInstances turns to NULL). But it seems for some reason it is called in some "semi-destroyed" state. Could you please run the applet from the console with XKL_DEBUG=150 or smth. May be it would give some hints...
Comment 2 Ondrej Novy 2006-01-23 19:53:04 UTC
exact gnome version:
 * gnome-desktop package - 2.12.1-0ubuntu
 * gnome-applets  2.12.1-0ubuntu

i tried do another backtraces and some diffs. it's seems that bt is exactly same (called function).

i added XKL_DEBUG to GNOME start script, and i'm waiting for core dump.
it's not easy to reproduce that problem, so please be patient.

can you explain what you mean with smth?
Comment 3 Sergey V. Udaltsov 2006-01-24 01:45:24 UTC
Well, this env. variable makes gnome-keyboard-indicator applet output a lot of interesting trace information into stdout. So if you could capture it and attach - I'd really appreciate.
"smth" means you can change the trace level. With level 500 it will really output LOADS of stuff. The reasonable trace level is usually somewhere between 150 and 200.
Comment 4 Ondrej Novy 2006-01-24 22:22:06 UTC
sorry, but i can't do this. reproduce of this bug is not easy, that is reason for using core. Is there any solution to forward stdout(or that debugging information) of that applet to file automaticly? removing applet from panel and running from console all the time after login is backwardness and i must do it all time for example for week before crash.
Comment 5 Sergey V. Udaltsov 2006-01-26 23:39:27 UTC
Ghm. So what you are saying is this bug not always reproducable? I love this kind of bugs :((( Well, there is solution - but it would require some hacking of the source code and rebuilding the applet. If you are ready for this - I can give you some pointers.
Comment 6 Ondrej Novy 2006-02-08 11:38:22 UTC
Created attachment 58917 [details]
Keyboard DEBUG log at level 200 from login to logout + crash, BT is same
Comment 7 Sergey V. Udaltsov 2006-02-14 01:23:33 UTC
Tonight I put committed some minor fixes to libxklavier CVS (on freedesktop.org). Could you please have a look whether it would help you?
Comment 8 Ondrej Novy 2006-02-18 11:17:00 UTC
Created attachment 59635 [details]
Keyboard DEBUG log at level 200 from login to logout - CVS version of xklavier
Comment 9 Sergey V. Udaltsov 2006-02-19 16:50:19 UTC
thanks, I'll have a look
Comment 10 Sergey V. Udaltsov 2006-02-23 00:12:38 UTC
Well, there is nothing really suspicious in the log file. The applet's window 3000003 gets destroyed - but the visible effect of it is well within limits...

I added a bit more debug stuff into CVS. But at the moment I do not have any brilliant idea... If you could find some way to reproduce it reliably...
Comment 11 Sergey V. Udaltsov 2006-03-20 19:53:09 UTC
Ok, so the fix is found now, I'll commit the code to CVS. I will break the code freeze - because it is a bad crash...
Comment 12 Sergey V. Udaltsov 2006-03-22 00:06:51 UTC
committed.