Kodi Community Forum
Debugging DVD playback: how to trace the problem? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Debugging DVD playback: how to trace the problem? (/showthread.php?tid=31060)



Debugging DVD playback: how to trace the problem? - hrak - 2008-02-05

I'm trying to gather some more useful debug info on the DVD playback problem described in http://forum.xbmc.org/showthread.php?tid=30955 but it is obvious with all the threading going on that a simple gdb session wont do.

What tools do you guys use to trace these kind of issues? Or rather, how can i (and maybe some more people) be of help to provide you with useful info apart from the CritSect log entries already mentioned in the topic?

Thanks for the great job you guys are doing!


- einal - 2008-02-19

I'm also interested in helping fix the bug in DVD playback. As it is I can play .ISO files made from DVD's but if I try to play a disc (Tenacious D in the Pick of Destiny) it shows the disc's menu and then overlays a window saying it's buffering. Nothing more happens and trying to cancel buffering doesn't work.

Pressing x gets me back to the main menu, but XBMC locks up if I try to play another video and kill -9 is the only solution.

The fact that DVD images play just fine from my SMB share but discs don't I guess we should be looking at file access code and restrict buffering when playing from DVD's?


- elupus - 2008-02-19

hrak: printf, and gdb is the only thing i use.

einal: have you posted a Debug Log somewhere?


- BLKMGK - 2008-02-21

If I can provide anything to assist with the troubleshooting on this please let me know. It's repeatable on my system. I cannot run current builds at full resolution but I've got a directory I'm keeping up to date with the SVN and can run at reduced resolution for testing as needed. I have indeed posted a Pastebin log of the issue I'm seeing in that thread.


- einal - 2008-02-22

I think I've nailed the problem. It appears that discs (and .iso's) that start with a video (The Universal intro, FBI warning, video message from the director on those I tested) work for me. Even the menu works when the intro finishes.

The discs I tried that failed to play were the ones that jump straight to the menu. Some have a menu to select the language (for the copyright warning and such) others jump straight to the main menu. Those discs all hang on the buffering dialog. Sometimes I can see the menu underneath but the buffering dialog steals my focus and if I try to hit cancel it just hangs with 'canceling'. Only remedy is hitting 'x' and from the main menu quit xbmc since others videos fail to load after this.

I have the logs ready, but they're huge. Any "right way" to post them?

einar.


- BLKMGK - 2008-02-22

Use Pastebin to post them as URLs. It's dirt simple to use that service! Sadly it sounds like your issue and mine are different - mine will now play VOB\IFO rips - as little videos in the lower left corner vs full screen like it should. Doh!


- einal - 2008-02-22

Log when playing Wedding Crashers DVD (region 2, icelandic version. Doesn't work): http://pastebin.com/m569d7fd6

Sledge Hammer season 1, disc 1 (Works): http://pastebin.com/m6e55add0

einar.


- einal - 2008-02-25

I thought I'd share my recent experience with DVD playing on XBMC. I figured out a new option in the setup menus (new to me at least, don't know for how long it's been available), "Try to jump straight to main menu" or something like that.

After switching this option on almost all my dvd's now work flawlessly. The only disc so far to give me problems since turning the option on was Hannibal. Both discs got stuck with a buffering dialog. Looking at dmesg I saw a read error line repeating from /dev/scd0. This happens both on the feature disc and the extra disc. I suppose this could just be a faulty disc, but I kind of doubt both of them would have it. I'll try playing it on a stand-alone dvd player this week and I kind of hope it's just a faulty disc.

With DVD's working for me now, XBMC is really nearing the state of completeness on Linux. It does lock up occasionally and leaving it on for a couple of hours is usually followed by me having to restart the computer since memory leaks take their toll. I'll be trying to get useful logs for when this happens.

To all you XBMC developers I bow my head in admoration. It is truly a great piece of software.


- BLKMGK - 2008-02-28

Anyone trying to play IFO/VOB rips? ISO playback sounds nailed down. I still get perfect playback - in a tiny box on the lower right side of the interface - when I use the play button in the file view. When I select a movie in library view I get nothing but interface sounds go away as if it's playing until I hit the Stop button. When I've checked in the past the movie shows up in the Now Playing list....


- einal - 2008-03-11

BLKMGK - Unfortunately I can't help you with your problem, but I have submitted a patch to fix the problem where a buffering dialog takes over the DVD menu screen and makes it impossible to navigate the menu.

This only happens to me on discs that jump straight to a menu without any intro movie, but if I enable "Attempt to jump straight to main menu" it turns around and discs that have intro movies don't work.

I've submitted a patch [https://sourceforge.net/tracker/?func=detail&atid=581840&aid=1911543&group_id=87054] to SourceForge that fixes it for me. Hopefully it will get committed to SVN.


- elupus - 2008-03-11

ifo/vob seem to fail for me when played over smb. not checked locally thou. will have a look at it later.

einal, thanx for that patch. had forgotten about that.