Bug #984

Frequent exiting to XMB when playing mkv

Added by Rural Hunter almost 9 years ago. Updated over 8 years ago.

Status:FixedStart date:05/06/2012
Priority:HighDue date:
Assignee:Andreas Smas% Done:

100%

Category:Video playback
Target version:4.0
Found in version:3.5 Platform:PS3

Description

Showtime with recent builds frequently exits to XMB during the playing of mkv file, one time every about 30 mins. This doesn't look like mkv file problem because it happens on almost every mkv files I have. it's fine by just relaunching showtime and resuming the play. This seems new bug introduced recently because I didn't see it with old version, like one month before. Typical log is shown below:

00:34:20.952: PANIC [EMERG]:OOM: memalign(32, 180296)
00:34:20.983: BACKTRACE [EMERG]:0x7fe580: .av_malloc+0x28
00:34:20.994: BACKTRACE [EMERG]:0x396f70: .ebml_parse_elem+0x450
00:34:20.994: BACKTRACE [EMERG]:0x397134: .ebml_parse_elem+0x614
00:34:20.995: BACKTRACE [EMERG]:0x397a64: .matroska_parse_cluster+0x134
00:34:20.995: BACKTRACE [EMERG]:0x3996f4: .matroska_read_packet+0xdc
00:34:20.995: BACKTRACE [EMERG]:0x3cecb4: .av_read_packet+0xd4
00:34:20.995: BACKTRACE [EMERG]:0x3cf1cc: .read_frame_internal+0xa4
00:34:20.995: BACKTRACE [EMERG]:0x3cf9c0: .av_read_frame+0x210
00:34:20.996: BACKTRACE [EMERG]:0x1e6354: .be_file_playvideo+0xb8c
00:34:20.996: BACKTRACE [EMERG]:0x1c5018: .backend_play_video+0xa0
00:34:20.996: BACKTRACE [EMERG]:0x279894: .play_video.clone.5+0x36c
00:34:20.996: BACKTRACE [EMERG]:0x279c74: .video_player_idle+0xcc
00:34:20.997: BACKTRACE [EMERG]:0x1bedb0: .thread_trampoline+0x90
00:34:20.997: PANIC [EMERG]:Thread list (self=0x11400f4)
00:34:20.997: PANIC [EMERG]:0x11400fa: audio decoder
00:34:20.997: PANIC [EMERG]:0x11400f4: video player
00:34:20.998: PANIC [EMERG]:0x11400f3: video decoder
00:34:20.998: PANIC [EMERG]:0x11400f2: PC:mp
00:34:20.998: PANIC [EMERG]:0x11400ec: GLW texture loader
00:34:20.999: PANIC [EMERG]:0x11400eb: GLW texture loader
00:34:20.999: PANIC [EMERG]:0x11400ea: GLW texture loader
00:34:20.999: PANIC [EMERG]:0x11400e9: GLW texture loader
00:34:20.999: PANIC [EMERG]:0x11400e8: GLW texture loader
00:34:20.999: PANIC [EMERG]:0x11400e7: GLW texture loader
00:34:21.000: PANIC [EMERG]:0x11400e6: GLW font renderer
00:34:21.000: PANIC [EMERG]:0x11400e3: ssdp
00:34:21.000: PANIC [EMERG]:0x11400e2: httpsrv
00:34:21.000: PANIC [EMERG]:0x11400e1: audio output
00:34:21.001: PANIC [EMERG]:0x11400e0: PC:navigator
00:34:21.001: PANIC [EMERG]:0x11400df: audioplayer
00:34:21.001: PANIC [EMERG]:0x11400de: PC:mp
00:34:21.001: PANIC [EMERG]:0x11400dd: PC:js
00:34:21.001: PANIC [EMERG]:0x11400dc: service probe
00:34:21.002: PANIC [EMERG]:0x11400db: deco
00:34:21.002: PANIC [EMERG]:0x11400da: PC:metadata
00:34:21.002: PANIC [EMERG]:0x11400d9: callout
00:34:21.003: PANIC [EMERG]:0x11400d8: PC:global
00:34:21.003: PANIC [EMERG]:0x11400d6: main

to me, it looks like some mem free is missing during the playback. So after playing for some time, it reaches the OOM.

logs.zip (47.4 KB) Rural Hunter, 05/06/2012 05:49 PM

showtime.log.zip (14.2 KB) Rural Hunter, 08/14/2012 03:40 PM

showtime.log.zip (25.2 KB) Rural Hunter, 08/22/2012 06:45 PM

Associated revisions

Revision 7204fbcc
Added by Andreas Smas over 8 years ago

Fix a bunch of memory leaks related to ASS sub decoding

Fixes #984

Change included in version 3.99.452

History

#1 Updated by Andreas Smas almost 9 years ago

  • Status changed from New to Need feedback

Can you attach the entire log file?

#2 Updated by Rural Hunter almost 9 years ago

sure, several crash logs attached:

#3 Updated by Rural Hunter almost 9 years ago

well, it seems still file related. I have watched several videos without crash. I suspect it's caused by the embeded subtitles, ass or srt can not remember.

#4 Updated by Andreas Smas almost 9 years ago

  • Target version set to 4.0

Yep, I think so as well.
Have not been able to pinpoint it yet though.

#5 Updated by Rural Hunter over 8 years ago

I guess the problem is on ASS internal subtitles. All the problem I have seen comes from video files with ASS subtitles. I guess there is a small memory leak when showing the ASS subtitiels. It accumulates by time and finally triggers the "out of memory" error.

#6 Updated by Andreas Smas over 8 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

#7 Updated by Rural Hunter over 8 years ago

it's not fixed. I got another crash with latest code. see log attached.

#8 Updated by Andreas Smas over 8 years ago

  • Status changed from Fixed to Accepted

#9 Updated by Andreas Smas over 8 years ago

  • Status changed from Accepted to Need feedback

Would it be possible to provide a sample file?
I suspect I need the entire file, perhaps on a dropbox account or something?

#10 Updated by Rural Hunter over 8 years ago

hmm...The file is larger than 3G. I need to find a place.

#11 Updated by Aben Escalante over 8 years ago

Rural Hunter wrote:

hmm...The file is larger than 3G. I need to find a place.

I have a tft server at home, tell me the bit rate and picture size so I can rip a DVD to MKV.

#12 Updated by Rural Hunter over 8 years ago

I put it here finally:
http://122.227.147.9/tmp/Fallen.mkv

@Aben,
Thanks for your kindness all the same.

#13 Updated by Rural Hunter over 8 years ago

It's the same file in the log I uploaded several days ago. Just play it with the first ASS subtitiels

#14 Updated by Andreas Smas over 8 years ago

Tried playing it from start to end. No problems at all and subtitles from first subtitle track displayed all the time.

#15 Updated by Andreas Smas over 8 years ago

Also I noticed that you are running Showtime 3.99.569.g68f87

This is clearly not one of my builds as my repository is currently at 3.99.510.

So there's some code in your version of Showtime that I haven't written, thus it's a bit hard for me
to diagnose what's going on.

So unless you run my official builds you need to talk to the person who made your build (or talk to yourself if you compiled it yourself :-)

#16 Updated by Rural Hunter over 8 years ago

Oh really! I added support for GB2312 SRT subtitles but didn't touch any other things. Anyway I haven't seen the same issue with the latest build with other 3-5 movies with ASS subtitles. I will try to play the same file again to see if it's reproduceable. Then check the official build if it does. Thanks for your time.

#17 Updated by Tiago windcrusher over 8 years ago

I also have this problem constantly when watching a movie to MKV smb from the film closes back to the list of files in the folder.
So I play the same file again voltanto to the scene was previously.

I'm running showtime-3.99.510. But I've had this problem in all versions.

The problem is not with a particular part of the film, because if I play again and come back a few seconds it does not happen. even watching the whole movie again ocore sometimes not the problem.

I always suspect that may be flashing / network error .. but in these cases the showtime do not display any error.

#18 Updated by Tiago windcrusher over 8 years ago

I also have a smb folder with some subfolders and some movie files.
Whenever I navigate to this folder, showtime is closed returning to the PS3 XMB.

I'll do this again and get the access log to see if it indicates something.

#19 Updated by Andreas Smas over 8 years ago

Tiago windcrusher wrote:

I also have this problem constantly when watching a movie to MKV smb from the film closes back to the list of files in the folder.
So I play the same file again voltanto to the scene was previously.

I'm running showtime-3.99.510. But I've had this problem in all versions.

The problem is not with a particular part of the film, because if I play again and come back a few seconds it does not happen. even watching the whole movie again ocore sometimes not the problem.

I always suspect that may be flashing / network error .. but in these cases the showtime do not display any error.

Check the logfile to see if something goes wrong.

#20 Updated by Andreas Smas over 8 years ago

  • Status changed from Need feedback to Fixed

I'm gonna set this to fixed now

#21 Updated by Rural Hunter over 8 years ago

I tested the movie again with both my build and official build. Unfortunately, both exited abnormally. My build exited after about 1 hour and 20 mins and the official build exited after about 2 hours. The official build version I tested is 3.99.524.g6f6ad and log attached.

#22 Updated by Rural Hunter over 8 years ago

Retested the file with the fix of bug #1165 but still got crash.

Also available in: Atom PDF