{"action":"created","issue":{"url":"https://api.github.com/repos/nicklan/pnmixer/issues/83","labels_url":"https://api.github.com/repos/nicklan/pnmixer/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/nicklan/pnmixer/issues/83/comments","events_url":"https://api.github.com/repos/nicklan/pnmixer/issues/83/events","html_url":"https://github.com/nicklan/pnmixer/issues/83","id":97686611,"number":83,"title":"PNMixer segfaults when USB DAC is disconnected","user":{"login":"landroni","id":1318567,"avatar_url":"https://avatars.githubusercontent.com/u/1318567?v=3","gravatar_id":"","url":"https://api.github.com/users/landroni","html_url":"https://github.com/landroni","followers_url":"https://api.github.com/users/landroni/followers","following_url":"https://api.github.com/users/landroni/following{/other_user}","gists_url":"https://api.github.com/users/landroni/gists{/gist_id}","starred_url":"https://api.github.com/users/landroni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landroni/subscriptions","organizations_url":"https://api.github.com/users/landroni/orgs","repos_url":"https://api.github.com/users/landroni/repos","events_url":"https://api.github.com/users/landroni/events{/privacy}","received_events_url":"https://api.github.com/users/landroni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nicklan/pnmixer/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"elboulangero","id":1942580,"avatar_url":"https://avatars.githubusercontent.com/u/1942580?v=3","gravatar_id":"","url":"https://api.github.com/users/elboulangero","html_url":"https://github.com/elboulangero","followers_url":"https://api.github.com/users/elboulangero/followers","following_url":"https://api.github.com/users/elboulangero/following{/other_user}","gists_url":"https://api.github.com/users/elboulangero/gists{/gist_id}","starred_url":"https://api.github.com/users/elboulangero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elboulangero/subscriptions","organizations_url":"https://api.github.com/users/elboulangero/orgs","repos_url":"https://api.github.com/users/elboulangero/repos","events_url":"https://api.github.com/users/elboulangero/events{/privacy}","received_events_url":"https://api.github.com/users/elboulangero/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nicklan/pnmixer/milestones/1","html_url":"https://github.com/nicklan/pnmixer/milestones/0.6","labels_url":"https://api.github.com/repos/nicklan/pnmixer/milestones/1/labels","id":1084015,"number":1,"title":"0.6","description":null,"creator":{"login":"hasufell","id":1241845,"avatar_url":"https://avatars.githubusercontent.com/u/1241845?v=3","gravatar_id":"","url":"https://api.github.com/users/hasufell","html_url":"https://github.com/hasufell","followers_url":"https://api.github.com/users/hasufell/followers","following_url":"https://api.github.com/users/hasufell/following{/other_user}","gists_url":"https://api.github.com/users/hasufell/gists{/gist_id}","starred_url":"https://api.github.com/users/hasufell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasufell/subscriptions","organizations_url":"https://api.github.com/users/hasufell/orgs","repos_url":"https://api.github.com/users/hasufell/repos","events_url":"https://api.github.com/users/hasufell/events{/privacy}","received_events_url":"https://api.github.com/users/hasufell/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2015-04-26T15:41:00Z","updated_at":"2015-08-03T10:46:34Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2015-07-28T11:53:38Z","updated_at":"2015-08-03T14:11:17Z","closed_at":null,"body":"I'm using PNMixer 0.5.1 on Ubuntu 14.04 without PulseAudio (i.e. only ALSA). Using default config for the mixer. \r\n\r\nI get some strange behavior when disconnecting USB DAC (or merely suspending/resuming laptop). I plugin USB DAC, select it as default sound card using `asoundconf-gtk`, start `pnmixer` which uses 0% CPU and behaves very nicely with changing volume for the default ALSA sound card. \r\n\r\nWhen I disconnect USB DAC, each time this will confuse PNMixer, which will start consuming 25% CPU (1 of the 4 cores). If I try to \"Reload alsa\", I get a pop-up error message `Mixer attach default error: No such device`:\r\n\r\n![screenshot_2015-07-28_13-12-05](https://cloud.githubusercontent.com/assets/1318567/8930023/597edaca-352a-11e5-958c-fdd0edf004d8.png)\r\n\r\nUbuntu's `apport` utility says this: \r\n\r\n> pnmixer crashed with SIGABRT in __assert_fail_base()\r\n\r\nHere's a full backtrace: \r\n\r\n    geek@liv-inspiron:~$ gdb pnmixer\r\n    GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7\r\n    Copyright (C) 2014 Free Software Foundation, Inc.\r\n    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\n    This is free software: you are free to change and redistribute it.\r\n    There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\n    and \"show warranty\" for details.\r\n    This GDB was configured as \"x86_64-linux-gnu\".\r\n    Type \"show configuration\" for configuration details.\r\n    For bug reporting instructions, please see:\r\n    <http://www.gnu.org/software/gdb/bugs/>.\r\n    Find the GDB manual and other documentation resources online at:\r\n    <http://www.gnu.org/software/gdb/documentation/>.\r\n    For help, type \"help\".\r\n    Type \"apropos word\" to search for commands related to \"word\"...\r\n    Reading symbols from pnmixer...(no debugging symbols found)...done.\r\n    (gdb) run\r\n    Starting program: /usr/bin/pnmixer \r\n    [Thread debugging using libthread_db enabled]\r\n    Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n    [New Thread 0x7fffdf493700 (LWP 4922)]\r\n\r\n    Program received signal SIGSEGV, Segmentation fault.\r\n    __strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:30\r\n    30\t../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No such file or directory.\r\n    (gdb) bt\r\n    #0  __strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:30\r\n    #1  0x00007ffff6ac4dbc in snd_mixer_detach (mixer=0x671180, name=0x40b039 \"default\") at mixer.c:254\r\n    #2  0x0000000000407b1c in ?? ()\r\n    #3  0x0000000000407d95 in ?? ()\r\n    #4  0x0000000000407ecd in ?? ()\r\n    #5  0x00000000004080e5 in ?? ()\r\n    #6  0x0000000000408532 in alsa_init ()\r\n    #7  0x00000000004074bb in do_alsa_reinit ()\r\n    #8  0x00007ffff708a3b8 in g_closure_invoke (closure=0x715e00, return_value=0x0, n_param_values=1, param_values=0x7fffffffd460, invocation_hint=0x7fffffffd400)\r\n        at /build/buildd/glib2.0-2.40.2/./gobject/gclosure.c:768\r\n    #9  0x00007ffff709bd3d in signal_emit_unlocked_R (node=node@entry=0x70a5a0, detail=detail@entry=0, instance=instance@entry=0x712940, emission_return=emission_return@entry=0x0, \r\n        instance_and_params=instance_and_params@entry=0x7fffffffd460) at /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:3551\r\n    #10 0x00007ffff70a3a29 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd5e8)\r\n        at /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:3307\r\n    #11 0x00007ffff70a3ce2 in g_signal_emit (instance=instance@entry=0x712940, signal_id=<optimized out>, detail=detail@entry=0) at /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:3363\r\n    #12 0x00007ffff79da4fc in IA__gtk_widget_activate (widget=widget@entry=0x712940) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkwidget.c:5041\r\n    #13 0x00007ffff78dcfdd in IA__gtk_menu_shell_activate_item (menu_shell=0x66d480, menu_item=0x712940, force_deactivate=<optimized out>)\r\n        at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmenushell.c:1311\r\n    #14 0x00007ffff78dd32c in gtk_menu_shell_button_release (widget=0x66d480, event=<optimized out>) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmenushell.c:738\r\n    #15 0x00007ffff78cb815 in _gtk_marshal_BOOLEAN__BOXED (closure=0x688a00, return_value=0x7fffffffd890, n_param_values=<optimized out>, param_values=0x7fffffffd940, \r\n        invocation_hint=<optimized out>, marshal_data=0x7ffff78d29a0 <gtk_menu_button_release>) at gtkmarshalers.c:86\r\n    #16 0x00007ffff708a3b8 in g_closure_invoke (closure=0x688a00, return_value=0x7fffffffd890, n_param_values=2, param_values=0x7fffffffd940, invocation_hint=0x7fffffffd8e0)\r\n        at /build/buildd/glib2.0-2.40.2/./gobject/gclosure.c:768\r\n    ---Type <return> to continue, or q <return> to quit---\r\n    #17 0x00007ffff709bafb in signal_emit_unlocked_R (node=node@entry=0x688c70, detail=detail@entry=0, instance=instance@entry=0x66d480, emission_return=emission_return@entry=0x7fffffffda10, \r\n        instance_and_params=instance_and_params@entry=0x7fffffffd940) at /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:3589\r\n    #18 0x00007ffff70a36f9 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffdad8)\r\n        at /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:3317\r\n    #19 0x00007ffff70a3ce2 in g_signal_emit (instance=instance@entry=0x66d480, signal_id=<optimized out>, detail=detail@entry=0) at /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:3363\r\n    #20 0x00007ffff79db684 in gtk_widget_event_internal (widget=widget@entry=0x66d480, event=event@entry=0x866a50) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkwidget.c:5010\r\n    #21 0x00007ffff79db959 in IA__gtk_widget_event (widget=widget@entry=0x66d480, event=event@entry=0x866a50) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkwidget.c:4807\r\n    #22 0x00007ffff78c9fc4 in IA__gtk_propagate_event (widget=0x66d480, event=0x866a50) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmain.c:2509\r\n    #23 0x00007ffff78ca37b in IA__gtk_main_do_event (event=0x866a50) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmain.c:1699\r\n    #24 0x00007ffff75451ec in gdk_event_dispatch (source=<optimized out>, callback=<optimized out>, user_data=<optimized out>) at /build/buildd/gtk+2.0-2.24.23/gdk/x11/gdkevents-x11.c:2403\r\n    #25 0x00007ffff6dbae04 in g_main_dispatch (context=0x6474d0) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3064\r\n    #26 g_main_context_dispatch (context=context@entry=0x6474d0) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3663\r\n    #27 0x00007ffff6dbb048 in g_main_context_iterate (context=0x6474d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3734\r\n    #28 0x00007ffff6dbb30a in g_main_loop_run (loop=0x6689c0) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3928\r\n    #29 0x00007ffff78c9447 in IA__gtk_main () at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmain.c:1271\r\n    #30 0x0000000000405f03 in main ()\r\n    (gdb) quit\r\n    A debugging session is active.\r\n\r\n        Inferior 1 [process 4918] will be killed.\r\n\r\n    Quit anyway? (y or n) y\r\n"},"comment":{"url":"https://api.github.com/repos/nicklan/pnmixer/issues/comments/127255743","html_url":"https://github.com/nicklan/pnmixer/issues/83#issuecomment-127255743","issue_url":"https://api.github.com/repos/nicklan/pnmixer/issues/83","id":127255743,"user":{"login":"landroni","id":1318567,"avatar_url":"https://avatars.githubusercontent.com/u/1318567?v=3","gravatar_id":"","url":"https://api.github.com/users/landroni","html_url":"https://github.com/landroni","followers_url":"https://api.github.com/users/landroni/followers","following_url":"https://api.github.com/users/landroni/following{/other_user}","gists_url":"https://api.github.com/users/landroni/gists{/gist_id}","starred_url":"https://api.github.com/users/landroni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landroni/subscriptions","organizations_url":"https://api.github.com/users/landroni/orgs","repos_url":"https://api.github.com/users/landroni/repos","events_url":"https://api.github.com/users/landroni/events{/privacy}","received_events_url":"https://api.github.com/users/landroni/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T14:11:17Z","updated_at":"2015-08-03T14:11:17Z","body":"Some logs: \r\n\r\n    geek@liv-inspiron:~$ aplay -l\r\n    **** List of PLAYBACK Hardware Devices ****\r\n    card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]\r\n      Subdevices: 1/1\r\n      Subdevice #0: subdevice #0\r\n    card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]\r\n      Subdevices: 1/1\r\n      Subdevice #0: subdevice #0\r\n    card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]\r\n      Subdevices: 1/1\r\n      Subdevice #0: subdevice #0\r\n    card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]\r\n      Subdevices: 0/1\r\n      Subdevice #0: subdevice #0\r\n"}}