Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnome-shell crashes when unplugging a device with audio capabilities. #110

Closed
Connor9220 opened this issue Aug 17, 2020 · 5 comments · Fixed by #126
Closed

Gnome-shell crashes when unplugging a device with audio capabilities. #110

Connor9220 opened this issue Aug 17, 2020 · 5 comments · Fixed by #126

Comments

@Connor9220
Copy link

When unplugging a usb camera that has a built in microphone, gnome-shell crashes. If I disable the plugin, gnome-shell doesn't crash.

@tomodachi
Copy link

@Connor9220 Could check if your pulseaudio daemon crashing when you disconnect your microphone?

meaning:

  • disable the plugin,
  • check the start time of pulseaudio
  • unplugg USB camera with microphone
  • check if the start time of pulseaudio is different.

@Connor9220
Copy link
Author

pulseaudio isn't affected. It stays running.
I disable the plugin, I can plug/unplug the USB camera with microphone without gnome-shell crashing.
I enable it, unplug it then crashes.

@tomodachi
Copy link

systemd will spawn a new pulseaudio if the current one crashes, did you verify by looking at the start time that it's the same time?

@Connor9220
Copy link
Author

I have confirmed. pulseaudio has the same start time and pid as before the crash. It's stable.

@have-a-boy
Copy link

I assume this is caused by the same bug reported here: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/9

I have exactly the same issue when disconnecting/turning off my USB DAC. Gnome-shell crashes immediately.

pothos added a commit to pothos/gse-sound-output-device-chooser that referenced this issue Jan 4, 2021
This prevents calling a C function with an old pointer from the JS
timeout callback which then crashes the GNOME Shell.
An upstream fix was also sent in which prevents the crash of GNOME
Shell but still this bug here needs to be fixed.

Fixes kgshank#110 kgshank#108
pothos added a commit to pothos/gse-sound-output-device-chooser that referenced this issue Jan 4, 2021
This prevents calling a C function with an old pointer from the JS
timeout callback which then crashes the GNOME Shell.
An upstream fix was also sent in which prevents the crash of GNOME
Shell but still this bug here needs to be fixed.

Fixes kgshank#110 kgshank#108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants