Bug 558289 - recordmydesktop with sound hangs during shutdown phase
Summary: recordmydesktop with sound hangs during shutdown phase
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: recordmydesktop
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Sindre Pedersen Bjørdal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-24 18:17 UTC by Jason M. Nielsen
Modified: 2015-07-30 20:06 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-01-24 18:48:13 UTC
Type: ---
Embargoed:


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 18:17 UTC, Jason M. Nielsen
no flags Details

Description Jason M. Nielsen 2010-01-24 18:17:31 UTC
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 18:48:13 UTC
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 20:06:57 UTC
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.