Opened 9 years ago

Closed 9 years ago

#6011 closed bug (fixed)

Mediaplayer drops frames a lot and then freezes

Reported by: fano Owned by: stippi
Priority: normal Milestone: R1
Component: Applications/MediaPlayer Version: R1/alpha1
Keywords: mp3_decoder Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

After sometimes MediaPlayes shows a GDB alert and the audio is stopped. To try to understand the problem well I've tried to open Mediaplayer form terminal, this is log:

~> MainWin::MessageReceived: B_SIMPLE_DATA
open playlist item: [Divx Ita] I promessi sposi - Parte 1 di 4.avi
asfReader::asfReader
asfReader::Sniff
asfReader::Sniff: unsupported file type
OpenDMLParser::Parse: JUNK chunk ignored, size: 914 bytes
mp3Decoder::Setup: channels 2, bitrate 128000, framerate 44100
MediaTrackAudioSupplier: keyframes: 1, frame count: 158659199
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_ycbcr422_c
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (0): Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0xffffffff
VideoProducer::Connect() - consumer error: General system error
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: General system error
NodeManager::_SetupVideoNodes() - falling back to B_RGB32
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 106579, team 794
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
VideoProducer::SetRunMode(5)
performance time for 3266104587: 3238988639
_ResizeVideoView: 0,19, width 500, height 281
B_START: start time: 3239088639
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_YCbCr420p_RGB32_c
0x180e9b00->AudioProducer::LateNoticeReceived(9389, 3239275201)
0x180e9b00->AudioProducer::LateNoticeReceived(8109, 3282513945)
Stream error, unknown layer type.
Stream error, reserved sampling rate
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
Can't step back 50!
0x180e9b00->AudioProducer::LateNoticeReceived(292709, 3331778556)
0x180e9b00->AudioProducer::LateNoticeReceived(273013, 3331778845)
0x180e9b00->AudioProducer::LateNoticeReceived(253695, 3331779534)
0x180e9b00->AudioProducer::LateNoticeReceived(233842, 3331779670)
0x180e9b00->AudioProducer::LateNoticeReceived(214014, 3331779841)
0x180e9b00->AudioProducer::LateNoticeReceived(194826, 3331780660)
0x180e9b00->AudioProducer::LateNoticeReceived(174977, 3331780800)
0x180e9b00->AudioProducer::LateNoticeReceived(155501, 3331781324)
0x180e9b00->AudioProducer::LateNoticeReceived(135663, 3331781483)
0x180e9b00->AudioProducer::LateNoticeReceived(115834, 3331781652)
0x180e9b00->AudioProducer::LateNoticeReceived(96615, 3331782436)
0x180e9b00->AudioProducer::LateNoticeReceived(76774, 3331782589)
0x180e9b00->AudioProducer::LateNoticeReceived(58304, 3331784130)
0x180e9b00->AudioProducer::LateNoticeReceived(38571, 3331784392)
0x180e9b00->AudioProducer::LateNoticeReceived(18801, 3331784613)
VideoProducer: dropped frame (2291)
VideoProducer: dropped frame (2292)
VideoProducer: dropped frame (2293)
VideoProducer: dropped frame (2294)
VideoProducer: dropped frame (2295)
VideoProducer: dropped frame (2296)
VideoProducer: dropped frame (2297)
VideoProducer: dropped frame (2298)
VideoProducer: dropped frame (2299)
VideoProducer: dropped frame (2300)
VideoProducer: dropped frame (2301)
VideoProducer: dropped frame (2302)
VideoProducer: dropped frame (2303)
VideoProducer: dropped frame (2304)
VideoProducer: dropped frame (2305)
[msmpeg4 @ 0x180ea720]invalid picture type
[msmpeg4 @ 0x180ea720]header damaged
VideoProducer: dropped frame (2307)
VideoProducer: dropped frame (2308)
VideoProducer: dropped frame (2309)
VideoProducer: dropped frame (2310)
VideoProducer: dropped frame (2311)
VideoProducer: dropped frame (2312)
VideoProducer: dropped frame (2313)
VideoProducer: dropped frame (2314)
VideoProducer: dropped frame (2315)
VideoProducer: dropped frame (2316)
VideoProducer: dropped frame (2317)
VideoProducer: dropped frame (2318)
VideoProducer: dropped frame (2319)
VideoProducer: dropped frame (2320)
VideoProducer: dropped frame (2322)
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 34!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 27!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 48!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 13!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 40!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 41!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 10!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 24!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 38!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 26!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 24!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 41!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 6!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 58!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 19!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 60!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 9!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 36!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 19!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 48!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 45!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 53!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 40!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 44!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 35!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 51!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 28!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 18!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 37!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 46!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 29!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
VideoProducer: dropped frame (2441)
VideoProducer: dropped frame (2442)
VideoProducer: dropped frame (2443)
VideoProducer: dropped frame (2444)
VideoProducer: dropped frame (2445)
VideoProducer: dropped frame (2446)
Can't step back 14!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 58!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 31!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 30!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 41!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 31!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 33!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 37!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 26!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 16!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 11!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 15!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 39!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 30!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 67!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 55!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 41!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 33!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 14!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 28!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 53!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 46!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 30!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 20!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 51!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 21!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 4!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 29!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 31!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 41!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 56!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 50!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 53!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 15!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 13!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 3!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 32!
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 18!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 40!
AudioProducer::_FillNextBuffer() - no buffer
Can't step back 40!
Stream error, reserved sampling rate
Stream error, unknown layer type.
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
AudioProducer::_FillNextBuffer() - no buffer
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
AudioProducer::_FillNextBuffer() - no buffer
big_values too large!
Stream error, free format bitrate index not supported
Stream error, reserved sampling rate
big_values too large!
mpg123: Can't rewind stream by 4639 bits!
Stream error, reserved sampling rate
Blocktype == 0 and window-switching == 1 not allowed.
Stream error, reserved sampling rate
VideoProducer: dropped frame (2581)
VideoProducer: dropped frame (2582)
VideoProducer: dropped frame (2583)
VideoProducer: dropped frame (2584)

Contemporary at the droppe frames errors a GBD alert appears:

[Switching to team /boot/system/apps/MediaPlayer (794) thread MediaPlayer audio ou control (815)]
0x01510ce2 in getbits () from /boot/system/add-ons/media/plugins/mp3_decoder
(gdb) bt
#0  0x01510ce2 in getbits ()
   from /boot/system/add-ons/media/plugins/mp3_decoder
#1  0x0151157e in I_step_two ()
   from /boot/system/add-ons/media/plugins/mp3_decoder
#2  0x015119a3 in do_layer1 ()
   from /boot/system/add-ons/media/plugins/mp3_decoder
#3  0x01511262 in decodeMP3 ()
   from /boot/system/add-ons/media/plugins/mp3_decoder
#4  0x0150fd11 in mp3Decoder::DecodeNextChunk ()
   from /boot/system/add-ons/media/plugins/mp3_decoder
#5  0x0150fb88 in mp3Decoder::Decode ()
   from /boot/system/add-ons/media/plugins/mp3_decoder
#6  0x005aa51e in BMediaTrack::ReadFrames () from /boot/system/lib/libmedia.so
#7  0x005aa47a in BMediaTrack::ReadFrames () from /boot/system/lib/libmedia.so
#8  0x0025f537 in MediaTrackAudioSupplier::_ReadBuffer ()
#9  0x0025f913 in MediaTrackAudioSupplier::_ReadUncachedFrames ()
#10 0x0025edaf in MediaTrackAudioSupplier::Read ()
#11 0x00244edb in AudioFormatConverter::Read ()
#12 0x00244323 in AudioAdapter::Read ()
#13 0x00249857 in AudioVolumeConverter::Read ()
#14 0x00248a6b in AudioResampler::Read ()
#15 0x00260ca9 in ProxyAudioSupplier::GetFrames ()
#16 0x00247f30 in AudioProducer::_FillNextBuffer ()
#17 0x002477a8 in AudioProducer::HandleEvent ()
---Type <return> to continue, or q <return> to quit---
#18 0x005989b9 in BMediaEventLooper::DispatchEvent ()
   from /boot/system/lib/libmedia.so
#19 0x00598658 in BMediaEventLooper::ControlLoop ()
   from /boot/system/lib/libmedia.so
#20 0x00598a43 in BMediaEventLooper::_ControlThreadStart ()
   from /boot/system/lib/libmedia.so
#21 0x0094e0b2 in thread_entry () from /boot/system/lib/libroot.so
#22 0x78288fec in ?? ()

The file continues to play, but no audio is palyed anymore!

The file in object was very simple: DIVX codec and MP3 audio... and it is doing this with a lot of files! Not seems CPU or Memory related, too Process Controller shows very little CPU & Memory usage...

Change History (5)

comment:1 by stippi, 9 years ago

I think this is another duplicate of a ticket that's about crashes when seeking MP3 files. The underlying problem is the crash in the MP3 decoder, which may actually be a problem in the extractor, but I am not sure. MediaPlayer, or rather the Media Kit backend, currently use too much CPU. Don't know which issue you want this ticket to be about, it's better to log one ticket per individual issue.

comment:2 by fano, 9 years ago

The issue is "Mediaplayer drops frames and then freezes"... maybe this for problem of MP3 audio decoding (in fact after some time the audio is lost)... ahh I'm not seeking simple play the file from the beginning wait some minutes and in the terminal I can see "dropped frames", the audio is lost and after some time the GDB Alert...

Apparently seeing Process Controller bars not seems a high CPU usage problem... the CPU/Memory usage was low but maybe is not reliable... I should be used top, maybe?

comment:3 by kallisti5, 9 years ago

Keywords: mp3_decoder added

verified in hrev38062 gcc4/2hybrid. I am seeing the same issue playing video with mp3 tracks off of an NFS share:

Backtrace for giggles:

[tcsetpgrp failed in terminal_inferior: Invalid Argument]
Thread 16260 caused an exception: Segment violation
Reading symbols from /boot/system/runtime_loader...done.
Loaded symbols for /boot/system/runtime_loader
Reading symbols from /boot/system/lib/libbe.so...done.
Loaded symbols for /boot/system/lib/libbe.so
Reading symbols from /boot/system/lib/libgame.so...done.
Loaded symbols for /boot/system/lib/libgame.so
Reading symbols from /boot/system/lib/libmedia.so...done.
Loaded symbols for /boot/system/lib/libmedia.so
Reading symbols from /boot/system/lib/libtracker.so...done.
Loaded symbols for /boot/system/lib/libtracker.so
Reading symbols from /boot/system/lib/libtranslation.so...done.
Loaded symbols for /boot/system/lib/libtranslation.so
Reading symbols from /boot/system/lib/libtextencoding.so...done.
Loaded symbols for /boot/system/lib/libtextencoding.so
Reading symbols from /boot/system/lib/libstdc++.so...done.
Loaded symbols for /boot/system/lib/libstdc++.so
Reading symbols from /boot/system/lib/libroot.so...done.
Loaded symbols for /boot/system/lib/libroot.so
Reading symbols from /boot/system/lib/libsupc++.so...done.
Loaded symbols for /boot/system/lib/libsupc++.so
Reading symbols from /boot/system/lib/liblocale.so...done.
Loaded symbols for /boot/system/lib/liblocale.so
Reading symbols from /boot/system/lib/libicudata.so.44...
warning: Lowest section in /boot/system/lib/libicudata.so.44 is .hash at 00000094
done.
Loaded symbols for /boot/system/lib/libicudata.so.44
Reading symbols from /boot/system/lib/libicui18n.so.44...done.
Loaded symbols for /boot/system/lib/libicui18n.so.44
Reading symbols from /boot/system/lib/libicuio.so.44...done.
Loaded symbols for /boot/system/lib/libicuio.so.44
Reading symbols from /boot/system/lib/libicule.so.44...done.
Loaded symbols for /boot/system/lib/libicule.so.44
Reading symbols from /boot/system/lib/libiculx.so.44...done.
Loaded symbols for /boot/system/lib/libiculx.so.44
Reading symbols from /boot/system/lib/libicutu.so.44...done.
Loaded symbols for /boot/system/lib/libicutu.so.44
Reading symbols from /boot/system/lib/libicuuc.so.44...done.
Loaded symbols for /boot/system/lib/libicuuc.so.44
Reading symbols from /boot/system/add-ons/media/plugins/avi_reader...done.
Loaded symbols for /boot/system/add-ons/media/plugins/avi_reader
Reading symbols from /boot/system/add-ons/media/plugins/ffmpeg...done.
Loaded symbols for /boot/system/add-ons/media/plugins/ffmpeg
Reading symbols from /boot/system/add-ons/media/plugins/mp3_decoder...done.
Loaded symbols for /boot/system/add-ons/media/plugins/mp3_decoder
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team /boot/system/apps/MediaPlayer (16236) thread MediaPlayer audio ou control (16260)]
0x026635c2 in getbits () from /boot/system/add-ons/media/plugins/mp3_decoder
(gdb) bt
#0  0x026635c2 in getbits () from /boot/system/add-ons/media/plugins/mp3_decoder
#1  0x02663eb7 in I_step_two () from /boot/system/add-ons/media/plugins/mp3_decoder
#2  0x02664491 in do_layer1 () from /boot/system/add-ons/media/plugins/mp3_decoder
#3  0x02663cfd in decodeMP3 () from /boot/system/add-ons/media/plugins/mp3_decoder
#4  0x02662d96 in mp3Decoder::DecodeNextChunk () from /boot/system/add-ons/media/plugins/mp3_decoder
#5  0x02662f02 in mp3Decoder::Decode () from /boot/system/add-ons/media/plugins/mp3_decoder
#6  0x00551d15 in BMediaTrack::ReadFrames () from /boot/system/lib/libmedia.so
#7  0x00551da8 in BMediaTrack::ReadFrames () from /boot/system/lib/libmedia.so
#8  0x0025b25d in MediaTrackAudioSupplier::_ReadBuffer ()
#9  0x0025b9d4 in MediaTrackAudioSupplier::_ReadUncachedFrames ()
#10 0x0025bd32 in MediaTrackAudioSupplier::Read ()
#11 0x0024228f in AudioFormatConverter::Read ()
#12 0x0024144c in AudioAdapter::Read ()
#13 0x00246882 in AudioVolumeConverter::Read ()
#14 0x00245e1f in AudioResampler::Read ()
#15 0x0025d6b0 in ProxyAudioSupplier::GetFrames ()
#16 0x00243a3d in AudioProducer::_FillNextBuffer ()
#17 0x002441a0 in AudioProducer::HandleEvent ()
#18 0x0054265b in BMediaEventLooper::DispatchEvent () from /boot/system/lib/libmedia.so
#19 0x00542cd7 in BMediaEventLooper::ControlLoop () from /boot/system/lib/libmedia.so
#20 0x005425c9 in BMediaEventLooper::_ControlThreadStart () from /boot/system/lib/libmedia.so
#21 0x0091f48c in thread_entry () from /boot/system/lib/libroot.so
#22 0x782c9fec in ?? ()
(gdb) 

comment:4 by michaelvoliveira, 9 years ago

It's duplicated from

#4175

Please close this one

comment:5 by stippi, 9 years ago

Resolution: fixed
Status: newclosed

The crashing part of this ticket was indeed a duplicate of #4175 and has been fixed. The "drops frames and eventually freezes" part has also been fixed, neither the video producer thread nor the audio producer thread try to decode frames forever, but stop after they have taken too long. MediaPlayer may still drop frames, however if the CPU is generally capable of decoding a stream fast enough, MediaPlayer should recover from dropped frames.

Note: See TracTickets for help on using tickets.