Bug 227984

Summary: gweled creates enormous music.raw file
Product: [Fedora] Fedora Reporter: Jon Burgess <jburgess777>
Component: gweledAssignee: Thorsten Leemhuis <fedora>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gweled-0.7-7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-24 12:48:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jon Burgess 2007-02-09 11:06:22 UTC
Description of problem:
Running gweled generates a music.raw file which keeps growing at a rapid rate
eating up disk space.

Version-Release number of selected component (if applicable):
gweled-0.7-6.fc6.x86_64

How reproducible:
every time

Steps to Reproduce:
1. run gweled
2. look at size of music.raw file in current directory
3. 
  
Actual results:
$ ls -l music.raw
-rw------- 1 jburgess jburgess 1744785408 Feb  9 00:35 music.raw


Expected results:
No file!

Additional info:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=401727

The problem and fix:
   "Gweled registers all drivers including DISK WRITER drivers, I have
removed RegisterAll and manually register all drivers which makes sense
(AudioFile, ESD, ALSA, OSS and NoSound).... Disable disk writer driver in MikMod
initialization"

Comment 1 Thorsten Leemhuis 2007-02-09 19:06:05 UTC
I don't see the problem locally -- that's odd, but well, software is odd sometimes. 

I contacted upstream about the issue. I'll probably apply the debian patch to my
package in case upstream has no plans for a new release in the near future.

Comment 2 Jon Burgess 2007-02-09 19:33:00 UTC
Looks like it falls back to the disk writer after other options fail. 
strace shows...

access("/dev/sound/dsp", F_OK)          = -1 ENOENT (No such file or directory)
access("/dev/dsp0", F_OK)               = -1 ENOENT (No such file or directory)
open("/dev/dsp", O_WRONLY)              = -1 EBUSY (Device or resource busy)
stat("music.raw", 0x7fff5b8c6bd0)       = -1 ENOENT (No such file or directory)
open("music.raw", O_RDWR|O_CREAT|O_TRUNC, 0600) = 16

I'm using KDE so artsd has the alsa sound devices open already:
[root@shark ~]# lsof -c artsd | grep /dev
artsd   18024 jburgess  mem    CHR              116,8               8023
/dev/snd/pcmC0D0p
artsd   18024 jburgess    0r   CHR                1,3               1883 /dev/null
artsd   18024 jburgess    9r   CHR              116,2               6927
/dev/snd/timer
artsd   18024 jburgess   10u   CHR              116,8               8023
/dev/snd/pcmC0D0p

Looking at the documented driver support in MikMod suggests that it doesn't
support artsd (but does support alsa, oss etc). If I kill artsd then the sound
in gweled works and no music.raw file is created.

Comment 3 Thorsten Leemhuis 2007-02-24 12:48:07 UTC
No answer from upstream; I applied to patches from debian to the devel and FC-6
branch and requested a build.