Hi, I have experienced a problem when trying to play mp3/ogg/wav on a usb stick, which contains also non-audio files. my mp3sources.conf looks like this: /mnt;stick;0;*.wav/*.ogg/*.mp3
The usbstick contains zip/exe files doc/rtf, some python files etc. ulimit -u unlimited ./vdr -P mp3 .... After pressing playall button vdr crashs. No core file was created any ideas? BR. Halim
On 01 Mar 2008 Halim Sahin halim.sahin@t-online.de wrote:
ulimit -u unlimited
Actually this should be ulimit -c unlimited
./vdr -P mp3 .... After pressing playall button vdr crashs. No core file was created any ideas?
Not without a backtrace.
Regards.
Hi Stefan,
Sorry here is the output
Program terminated with signal 8, Arithmetic exception. #0 0xb7e6b8ce in __udivdi3 () from /lib/libgcc_s.so.1 (gdb) bt #0 0xb7e6b8ce in __udivdi3 () from /lib/libgcc_s.so.1 #1 0xb71d5099 in cSndInfo::DoScan (this=0x88290fc, KeepOpen=true) at decoder-snd.c:848 #2 0xb71d517c in cSndDecoder::Start (this=0x8829038) at decoder-snd.c:177 #3 0xb71c9676 in cMP3Player::Action (this=0x8810f08) at player-mp3.c:1690 #4 0x080fc10c in cThread::StartThread (Thread=0x8810f14) at thread.c:244 #5 0xb7f934fb in start_thread () from /lib/i686/cmov/libpthread.so.0 #6 0xb7def60e in clone () from /lib/i686/cmov/libc.so.6 Do you need something else?
Gruß Halim
On 02 Mar 2008 Halim Sahin halim.sahin@t-online.de wrote:
Hi,
Program terminated with signal 8, Arithmetic exception. #0 0xb7e6b8ce in __udivdi3 () from /lib/libgcc_s.so.1 (gdb) bt #0 0xb7e6b8ce in __udivdi3 () from /lib/libgcc_s.so.1 #1 0xb71d5099 in cSndInfo::DoScan (this=0x88290fc, KeepOpen=true) at decoder-snd.c:848
Appearently a division by zero. This patch should fix it temporarily:
diff -r 710f847b02af decoder-snd.c --- a/decoder-snd.c Thu Jan 31 22:31:09 2008 +0100 +++ b/decoder-snd.c Sat Mar 08 03:59:57 2008 +0100 @@ -845,7 +845,7 @@ bool cSndInfo::DoScan(bool KeepOpen) Channels=file->sfi.channels; ChMode=Channels>1 ? 3:0; Total=Frames/SampleFreq; - Bitrate=file->Filesize*8/Total; //XXX SampleFreq*Channels*file->sfi.pcmbitwidth; + Bitrate=Total ? file->Filesize*8/Total : 0; //XXX SampleFreq*Channels*file->sfi.pcmbitwidth; DecoderID=DEC_SND;
InfoDone();
But I would like to find the cause of the problem. The problem seems to be that libsndfile returns a length of 0 frames. Could you please identify which file actualy causes the crash? I don't think that it's related to the non-audio files. Most probably one of the wav files.
Regards.