Testing has revealed a 2nd issue, a similar race condition on cd insert.

I haven't tested other volume formats, like a usb stick, but I suspect
the same risk and mitigation applies.

Upstream PR submitted: https://github.com/micheleg/dash-to-
dock/pull/2477

The fix guards MountableVolumeAppInfo methods against accessing disposed
GProxyVolume objects:
- vfunc_get_id(): try/catch and optional chaining
- _update(): null checks and try/catch  
- _monitorChanges(): skip if volume is null/disposed
- _onVolumeRemoved(): cancel async operations before destroy

Tested on Ubuntu 25.10 / GNOME Shell 49.0 - CD eject/insert cycles 
no longer crash.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2137078

Title:
  GNOME Shell crashes after CD eject - ubuntu-dock accesses disposed
  GProxyVolume

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-ubuntu-dock/+bug/2137078/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to