shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
6.93k stars 1.32k forks source link

Xbox One disconnects from test runner #4234

Open joeyparrish opened 2 years ago

joeyparrish commented 2 years ago

The Xbox One in our lab disconnects from the test runner most of the time. The rate of this occurring is not consistent, but I have not been able to get 5 successful test runs in a row on Xbox. When the disconnect occurs, the device appears to briefly hang. There is no log to indicate what test was running at the time because log delivery to the test runner is not synchronous.

Through trial and error disabling certain subsets of the tests and doing 5 test passes, I found that disabling streaming_engine_unit.js alone is enough to get the tests to complete successfully. So the trigger is some or all of the tests in that file.

joeyparrish commented 1 year ago

I found that excluding EMSG tests from streaming_engine_unit.js seems to make Xbox reliably complete the tests without disconnecting. Stopping emsg parsing right before calling box.reader.readBytes() also seems to do this.

Sadly, the problem goes away when I add console logs to readBytes(). So it looks like this is not going to be a straightforward problem to solve.