Bug 558289 - recordmydesktop with sound hangs during shutdown phase
recordmydesktop with sound hangs during shutdown phase
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: recordmydesktop (Show other bugs)
12
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Sindre Pedersen Bjørdal
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-24 13:17 EST by Jason M. Nielsen
Modified: 2015-07-30 16:06 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-01-24 13:48:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
strace -f -o rmd.strace recordmydesktop --windowid 0x400003a (sorry allowed it to run too long hence its size) (1.46 MB, application/x-gzip)
2010-01-24 13:17 EST, Jason M. Nielsen
no flags Details

  None (edit)
Description Jason M. Nielsen 2010-01-24 13:17:31 EST
Created attachment 386463 [details]
strace -f -o rmd.strace recordmydesktop --windowid 0x400003a  (sorry allowed it to run too long hence its size)

Description of problem:


Version-Release number of selected component (if applicable):
recordmydesktop-0.3.8.1-4.fc12.x86_64

How reproducible:
recordmydesktop --windowid 0x400003a
Record for a shortwhile(even a few seconds) cntrl-c and recordmydesktop will hang i the "Shutting down..." phase and never recover. Same happens with different audio qualities etc. If you use "--no-sound" everything works fine.

Steps to Reproduce:
1.recordmydesktop
2.wait a few seconds and hit cntrl-c
3.Watch it hang in "Shutting down."
  
Actual results:
Recordmydesktop never "finishes" if you attempt to record sound.

Expected results:
recordmydesktop writes out ogv file including sound

Additional info:
Appears to work fine if you dont attempt to record sound.
Comment 1 Jason M. Nielsen 2010-01-24 13:48:13 EST
Scratch this. It appears the audio system was in some strange state. Everything else was working but after a cold reboot this issue no longer manifests itself. Sorry for the waste of bandwidth.
Comment 2 David Jameson 2015-07-30 16:06:57 EDT
Actually, it is a bug. It can be recreated when recording from pulseaudio, although it only seems to happen occasionally.

It's a bug in rmd_capture_sound.c. You can see that the audio loops don't check for pdata->running, so they will continue forever if the program exits and the sound driver is returning <= 0 bytes. Just add "&& (pdata->running)" to the while loops on lines 111 and 146 of the latest code (0.3.8.1).

Note You need to log in before you can comment on or make changes to this bug.