! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-power-manager-settings crashes (segfault) when I unplug my USB keyboard...
Status:
RESOLVED: MOVED
Product:
Xfce4-power-manager
Component:
General

Comments

Description mjwach 2019-11-12 07:06:36 CET
I am using a basic wireless Logitech mouse and keyboard that share a "Logitech Unifying Receiver", which is a little USB dongle that connects both input devices to the PC.

For unimportant reasons, I want to leave the power manager settings window open while my mouse and keyboard are temporarily connected to another computer.  But when I unplug the USB receiver, the power manager settings program commits a segmentation fault and closes.  This happens pretty reliably.  Once I managed to unplug without crashing the settings window, but I don't know what was different that time.

Unplugging a wired USB keyboard doesn't seem to cause any problems for the power settings program.

Xfce4 version information:
"This is xfce4-power-manager version 1.6.5, running on Xfce 4.14.
Built with GTK+ 3.24.10, linked with GTK+ 3.24.12."

I am on the latest Arch Linux.

I guess the crash happens here:

                Stack trace of thread 2125186:
                #0  0x00007f3e9ab99b89 g_type_check_instance (libgobject-2.0.so.0)
                #1  0x00007f3e9abac92a g_signal_handler_disconnect (libgobject-2.0.so.0)
                #2  0x00005602acea6af3 n/a (xfce4-power-manager-settings)
                #3  0x00007f3e9abb7d5a g_closure_invoke (libgobject-2.0.so.0)
                #4  0x00007f3e9aba588e n/a (libgobject-2.0.so.0)
                #5  0x00007f3e9aba998a g_signal_emit_valist (libgobject-2.0.so.0)
                #6  0x00007f3e9abaa7f0 g_signal_emit (libgobject-2.0.so.0)
                #7  0x00007f3e998e96d0 ffi_call_unix64 (libffi.so.6)
                #8  0x00007f3e998e90a0 ffi_call (libffi.so.6)
                #9  0x00007f3e9abc15ae g_cclosure_marshal_generic (libgobject-2.0.so.0)
                #10 0x00007f3e9abb7d5a g_closure_invoke (libgobject-2.0.so.0)
                #11 0x00007f3e9aba588e n/a (libgobject-2.0.so.0)
                #12 0x00007f3e9abac32b g_signal_emitv (libgobject-2.0.so.0)
                #13 0x00007f3e9abf368f n/a (libupower-glib.so.3)
                #14 0x00007f3e9abb7d5a g_closure_invoke (libgobject-2.0.so.0)
                #15 0x00007f3e9aba4ff8 n/a (libgobject-2.0.so.0)
                #16 0x00007f3e9aba998a g_signal_emit_valist (libgobject-2.0.so.0)
                #17 0x00007f3e9abaa7f0 g_signal_emit (libgobject-2.0.so.0)
                #18 0x00007f3e9ac74750 n/a (libgio-2.0.so.0)
                #19 0x00007f3e9ac7a1d9 n/a (libgio-2.0.so.0)
                #20 0x00007f3e9aacb2bf g_main_context_dispatch (libglib-2.0.so.0)
                #21 0x00007f3e9aacd201 n/a (libglib-2.0.so.0)
                #22 0x00007f3e9aacd241 g_main_context_iteration (libglib-2.0.so.0)
                #23 0x00007f3e9acaaa3e g_application_run (libgio-2.0.so.0)
                #24 0x00007f3e9a8c1153 __libc_start_main (libc.so.6)
                #25 0x00005602acea409e _start (xfce4-power-manager-settings)
                
                Stack trace of thread 2125187:
                #0  0x00007f3e9a98e9ef __poll (libc.so.6)
                #1  0x00007f3e9aacd170 n/a (libglib-2.0.so.0)
                #2  0x00007f3e9aacd241 g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f3e9aacd292 n/a (libglib-2.0.so.0)
                #4  0x00007f3e9aaa9c11 n/a (libglib-2.0.so.0)
                #5  0x00007f3e99c204cf start_thread (libpthread.so.0)
                #6  0x00007f3e9a9992d3 __clone (libc.so.6)
                
                Stack trace of thread 2125188:
                #0  0x00007f3e9a98e9ef __poll (libc.so.6)
                #1  0x00007f3e9aacd170 n/a (libglib-2.0.so.0)
                #2  0x00007f3e9aace113 g_main_loop_run (libglib-2.0.so.0)
                #3  0x00007f3e9ac67ba8 n/a (libgio-2.0.so.0)
                #4  0x00007f3e9aaa9c11 n/a (libglib-2.0.so.0)
                #5  0x00007f3e99c204cf start_thread (libpthread.so.0)
                #6  0x00007f3e9a9992d3 __clone (libc.so.6)


The one time when I unplugged with no crash, I did see these warnings on the console; they appear to be related to this matter:

(xfce4-power-manager-settings:2123646): GLib-GObject-WARNING **: 21:40:12.070: instance with invalid (NULL) class pointer

(xfce4-power-manager-settings:2123646): GLib-GObject-CRITICAL **: 21:40:12.071: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(xfce4-power-manager-settings:2123646): GLib-GObject-WARNING **: 21:40:12.102: instance with invalid (NULL) class pointer

(xfce4-power-manager-settings:2123646): GLib-GObject-CRITICAL **: 21:40:12.102: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Comment 1 Git Bot editbugs 2020-05-27 01:47:50 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/70.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16142

Reported by:
mjwach
Reported on: 2019-11-12
Last modified on: 2020-05-27

People

Assignee:
Ali Abdallah
CC List:
3 users

Version

Attachments

Additional information