! 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 !
Switching audio output device caused non-recoverable crash
Status:
RESOLVED: MOVED

Comments

Description Dan Haynes 2015-03-25 16:55:24 CET
Slightly unusual configuration here so the scenario isn't typical, but the end result of the crash is pretty serious (Parole won't run afterwards, segfaults every time it tries to start up) so I'm reporting it.

I'm running Parole on XUbuntu, which is running in a VirtualBox VM using a Windows 7 Pro x64 host.

[redacted]@dev:~/Desktop$ uname -a
Linux dev 3.16.0-33-generic #44-Ubuntu SMP Thu Mar 12 12:19:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

I have a Logitech bluetooth headset. I plugged the USB blutooth dongle in while Parole was playing an mp3 file through the speakers. 

The audio switched successfully to the headset and continued to play for maybe 10-20 seconds, but then stopped. 

At that point the play/pause button would toggle back and forth but the elapsed time display in Parol didn't update regardless of whether it was "playing" or paused. No audio output at all. 

I closed Parole, tried to restart it and it prompted me to send a bug report and re-launch the application. I selected that, but nothing happened other than the dialog disappearing. It didn't re-launch.

Since then I tried to launch it (via XFCE favorites menu) 5 more times, each time I do, nothing happens other than it logs a new segfault error in the system error log. Tail of dmesg looks like so:

[52565.537439] usb 1-1: USB disconnect, device number 2
[54317.428075] usb 1-1: new high-speed USB device number 3 using ehci-pci
[54318.172356] usb 1-1: New USB device found, idVendor=046d, idProduct=0990
[54318.172362] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[54318.172364] usb 1-1: SerialNumber: 87C80F08
[54318.207012] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0990)
[54318.233916] input: UVC Camera (046d:0990) as /devices/pci0000:00/0000:00:0b.0/usb1/1-1/1-1:1.0/input/input9
[54318.289585] usb 1-1: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
[54318.289590] usb 1-1: [5] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1
[54464.751061] usb 1-1: USB disconnect, device number 3
[54480.048088] usb 1-1: new high-speed USB device number 4 using ehci-pci
[54480.628059] usb 1-1: New USB device found, idVendor=046d, idProduct=0990
[54480.628063] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[54480.628067] usb 1-1: SerialNumber: 87C80F08
[54480.661984] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0990)
[54480.689245] input: UVC Camera (046d:0990) as /devices/pci0000:00/0000:00:0b.0/usb1/1-1/1-1:1.0/input/input10
[54480.744901] usb 1-1: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
[54480.744905] usb 1-1: [5] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1
[54670.659507] parole[17095]: segfault at 18 ip 00007f0691080b1b sp 00007fff73e1c700 error 4 in parole[7f0691061000+5c000]
[54688.273927] parole[17966]: segfault at 18 ip 00007f80aa23fb1b sp 00007fffe4fd30c0 error 4 in parole[7f80aa220000+5c000]
[54738.222387] parole[17989]: segfault at 18 ip 00007f49e8beeb1b sp 00007fffaf3946b0 error 4 in parole[7f49e8bcf000+5c000]
[55060.538288] parole[18132]: segfault at 18 ip 00007fd3e8e6eb1b sp 00007fff2a64a970 error 4 in parole[7fd3e8e4f000+5c000]
[55131.487975] parole[18194]: segfault at 18 ip 00007fcda4e15b1b sp 00007fffaea2be70 error 4 in parole[7fcda4df6000+5c000]

I'm guessing the error is related to the other message "Warning! Unlikely big volume range (=3072), cval->res is probably wrong."

I'll update this incident with additional info after I log out/in and/or reboot to see if it will start up aagain.
Comment 1 Dan Haynes 2015-03-25 17:08:11 CET
Neither logout nor reboot fixes the problem. Parole will not restart.

I'm able to play audio files using gmusicbrowser etc. but Parole just segfaults as soon as I launch it.

I assume there is some sort of cache or temp file that is causing the problem, I'll browse the Parole website and see if I can identify and fix it. If I find a fix I will update this incident.
Comment 2 Simon Steinbeiss editbugs 2015-03-25 17:11:23 CET
This all sounds a bit odd and not having any bluetooth sound devices I can't test this at all.

You could check Parole's xfconf channel. Open xfce4-settings-editor and navigate to Parole in the left pane, then check e.g. audio/volume for a messed-up setting (Parole uses that to save and restore the volume).
Comment 3 Dan Haynes 2015-03-25 17:58:13 CET
(In reply to Simon Steinbeiss from comment #2)
> This all sounds a bit odd and not having any bluetooth sound devices I can't
> test this at all.
> 
> You could check Parole's xfconf channel. Open xfce4-settings-editor and
> navigate to Parole in the left pane, then check e.g. audio/volume for a
> messed-up setting (Parole uses that to save and restore the volume).

Hi Simon,

I used xfce4-settings-editor and did fix the problem, thanks! However the problem is reproducible (with slightly different symptoms)

Using xfce4-settings-editor, I first cleared the folder -> last-used-media setting (it was set to /media/sf_E_DRIVE/Audiobooks/[snip...].mp3) That didn't fix the problem, it still segfaulted when I tried to launch it.

Then I un-checked playlist -> remember-playlist. I was able to launch Parole successfully.

I used Parole ->  Tools -> Preferences -> Playlist -> Remember playlist setting to re-enable remember-playlist.

After that, I reproed the problem with slightly difference results:

1. Started playing the audiobook playlist through the speakers
2. Plugged in USB dongle for bluetooth headset. 
3. Audio switched correctly to bluetooth headset
4. It played for a minute or so, but then VirtualBox/Linux logged the same USB warning in the system log:

    [ 1492.106600] usb 1-1: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
    [ 1492.106604] usb 1-1: [5] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1

5. Parole froze again, the same way. I can toggle the play/pause button in Parole, it switches the button state from Play to Pause and back again, but the track time doesn't change at all even when it thinks it's playing.

7. This time Parole restarts okay without the segfault, but it's still stuck and doesn't play any sound. Every time I start it, it re-loads the last track and thinks it's playing it, but the track time doesn't change.

8. NOTE: The same thing is happening with gmusicbrowser. I can reposition the timeline anywhere within any mp3 file and it does the same thing, the play/pause button toggles but the track time display remains unchanged and no audio plays.

I'm guessing the problem is triggered by how Linux or VirtualBox handles the USB device insertion, but the fact that Parole somehow got stuck in a permanent segfault condition the first I encountered the problem indicates a serious bug when restoring state.

I'm willing to repro it and collect troubleshooting information if that will help. Just let me know what to try. I know enough about Linux to be a hazard to myself and others, but not enough to actually know for sure what I'm doing :)

I can also export the VM to an .ova for you to try if you'd prefer.

Regards,

   Dan
Comment 4 Git Bot editbugs 2020-05-24 01:41:19 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/apps/parole/-/issues/9.

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 #11761

Reported by:
Dan Haynes
Reported on: 2015-03-25
Last modified on: 2020-05-24

People

Assignee:
Simon Steinbeiss
CC List:
3 users

Version

Attachments

Additional information