Hello CroqueMr,
First of all, thank you very much for your excellent work on CB1!
I would like to report a reproducible issue with original commercial Blu-ray discs using BD-J menus.
System configuration
- LibreELEC 13.0 – DV-R1.0.1-RC3
- Generic x86_64
- AMD GPU
- LG BU40N Blu-ray drive, connected via SATA
- libbluray.so.4.0.0
- libbluray-j2se-1.5.0.jar
- libbluray-awt-j2se-1.5.0.jar
- Zulu Java 8 (64-bit)
Affected discs
- The X-Files, Season 1, German retail Blu-ray edition
- Disc 1 and Disc 2 exhibit exactly the same behaviour.
- Other Blu-ray menus work correctly on the same system.
Steps to reproduce
- Insert the original Blu-ray disc.
- Start playback with the original Blu-ray menu enabled.
- The 20th Century Fox intro starts playing correctly.
- Immediately afterwards, playback stops and Kodi returns to the GUI without displaying an error message.
Updating to R1.0.1-RC3 did not resolve the issue.
Debug log analysis
The initial video playback works correctly. However, during the transition to the interactive menu, the following events occur:
18:08:07.859 BD_EVENT_STILL_TIME 0
18:08:07.859 BD_EVENT_STILL_TIME - waiting 0 msec, with delay of 0 msec
18:08:07.877 PSR change: psr4 = 87
18:08:07.959 BD_EVENT_TITLE 87
18:08:07.962 Audio and video threads terminate
18:08:07.963 Creating Demuxer
18:08:07.963 Open - error probing input format
18:08:07.963 BD_EVENT_STILL_TIME 0
18:08:07.963 OpenDemuxStream - New stream available from input, retry open
All subsequent demuxer retry attempts occur within the same millisecond and fail with:
Open - error probing input format
OpenDemuxStream - Error creating demuxer
CVideoPlayer::OnExit()
After playback has been aborted, several BD-J errors appear:
ERROR: waitForShutdown timeout
ERROR: sync(): not visible
ERROR: start() failed: Title Context already destroyed
ERROR: release(): STOP timeout, killing Xlet
ERROR: ThreadGroup destroy failed:
java.lang.IllegalThreadStateException
The affected BD-J menu application is identified as:
com.foxbd.dds.xfiles.s1.ww.StandardMenuXlet
Possible cause
It appears that Kodi attempts to recreate the demuxer immediately after the BD-J title transition while no usable video stream is available yet.
What seems particularly suspicious is that all demuxer retry attempts are exhausted within the same millisecond.
Could this be a timing issue involving the handling of BD_EVENT_STILL_TIME, BD_EVENT_TITLE and demuxer reinitialisation?
The subsequent Java shutdown errors might be a consequence of the premature playback termination rather than the original cause.
I cannot determine whether this is specific to CB1 or an upstream Kodi/libbluray issue.
Would you please investigate this behaviour?
I would be happy to provide additional debug logs and test a potential fix on my original Blu-ray discs.
Thank you very much for your support and all your development work!