Object wav should exist on playing file. Local variable not same.

Juha Heinanen wrote:
                 writes:

 > Use self.wav.

i tried, although i don't understand why variable wav without self is
not good enough.  now sems crashed.  i have seen the same crash in my
other tests.

i moved this to semsdev, because i'm running trunk version.

-- juha

Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] IvrAudioFile_new 
(IvrAudio.cpp:17): ---------- IvrAudioFile_alloc -----------
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:126): trying to read WAV file
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:129): tag = <RIFF>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:137): file size = <163876>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:140): tag = <WAVE>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:147): tag = <fmt >
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:155): chunk_size = <16>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:159): fmt = <01>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:163): channels = <1>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:167): rate = <8000>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:174): bits/sample = <16>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:195): tag = <data>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] wav_read_header 
(wav_hdr.c:199): chunk size = <163840>
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] setBufferSize 
(AmBufferedAudio.cpp:61): set output buffer size to 0 low thresh 0, fill thresh 0
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] IvrAudioFile_dealloc 
(IvrAudio.cpp:45): ---------- IvrAudioFile_dealloc -----------
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] relayEvent 
(AmB2BSession.cpp:184): AmB2BSession::relayEvent: id=
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] process (Ivr.cpp:782): 
IvrDialog::process
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] process 
(AmSession.cpp:506): AmSession::process
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] process 
(AmSession.cpp:519): Session received SIP Event
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] IvrSipRequest_new 
(IvrSipRequest.cpp:63): IvrSipRequest_new
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] callPyEventHandler 
(Ivr.cpp:691): method onSipRequest is not implemented, trying default one
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] IvrSipRequest_dealloc 
(IvrSipRequest.cpp:99): IvrSipRequest_dealloc
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] onSipRequest 
(AmSession.cpp:580): onSipRequest: method = ACK
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] relayEvent 
(AmB2BSession.cpp:184): AmB2BSession::relayEvent: id=
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b5f22b90] run 
(AmSession.cpp:345): nybogdugceaj...@localhost dlg.getUACTransPending() = 0
Dec  2 13:51:00 localhost sems[6328]: DEBUG: [b6427b90] process 
(AmMediaProcessor.cpp:397): Session inserted to the scheduler
Dec  2 13:51:01 localhost sems[6328]: DEBUG: [b6427b90] write 
(AmPlayoutBuffer.cpp:68): initialized recv_offset with 3064962959 (31768480 - 
3096731439)
Dec  2 13:51:02 localhost sems[6328]: DEBUG: [b6427b90] get 
(AmPlaylist.cpp:78): get: gotoNextItem
Dec  2 13:51:02 localhost sems[6328]: DEBUG: [b6427b90] get 
(AmPlaylist.cpp:78): get: gotoNextItem
Dec  2 13:51:02 localhost kernel: [51105.774999] sems[6339]: segfault at 
4216c130 ip 080ab9ca sp b6427250 error 4 in sems[8048000+d9000]

(gdb) where
#0  0xb7f65424 in __kernel_vsyscall ()
#1  0xb7ce7640 in raise () from /lib/i686/cmov/libc.so.6
#2  0xb7ce9018 in abort () from /lib/i686/cmov/libc.so.6
#3  0xb7edf988 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#4  0xb7edd865 in ?? () from /usr/lib/libstdc++.so.6
#5  0xb7edd8a2 in std::terminate () from /usr/lib/libstdc++.so.6
#6  0xb7ede545 in __cxa_pure_virtual () from /usr/lib/libstdc++.so.6
#7 0x0807b21e in AmAudio::get (this=0x8dfc640, user_ts=132960, buffer=0x8de3050 "", nb_samples=160) at AmAudio.cpp:298 #8 0x080ab9cd in AmPlaylist::get (this=0xb61dfdd0, user_ts=132960, buffer=0x8de3050 "", nb_samples=160) at AmPlaylist.cpp:74 #9 0x080a5d20 in AmMediaProcessorThread::processAudio (this=0x8de2f78, ts=132960) at AmMediaProcessor.cpp:359
#10 0x080a638f in AmMediaProcessorThread::run (this=0x8de2f78)
    at AmMediaProcessor.cpp:256
#11 0x080eccc5 in AmThread::_start (_t=0x8de2f78) at AmThread.cpp:70
#12 0xb7f184c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#13 0xb7d9c6de in clone () from /lib/i686/cmov/libc.so.6

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to