Repository navigation
Loopr 1.12 — the black floating window, root-caused
Fixes the floating window that stops playing and turns black — root-caused, not another safety net.
When a video hits a playback error ExoPlayer parks itself in an idle state, and an idle player does not restart on its own. Loopr moved the queue on to the next video but never told the player to load it, so the window sat there with no picture, no sound, and a play button that did nothing — which is why closing and reopening the window was the only way out.
Nothing ever noticed, either: both signals in the stall watchdog only run while the player claims to be playing, so the exact state this failure lands in switched the whole watchdog off. Two releases built to catch this could not see it by construction.
- A video that fails is retried where it stopped first — a momentary fault shouldn't cost you the video you were watching. It moves past it only on a second failure, and closes the window with a reason only once nothing in the queue will play.
- A decoder taken back by the system, which is what happens when something in the foreground wants one, is now retried instead of treated as the device being out of decoders.
- The watchdog can now see playback stopping — a third signal alongside the two frame signals, recovering by reloading the video, reloading it where it was, then moving past it. The log names which tripped:
signal=playback,signal=composite,signal=frames. - The same defect is fixed full screen, where a failed video left a black screen with dead controls.
- Both play buttons now recover a stopped player instead of doing nothing.
Reproduced on an API 35 emulator with a deliberately truncated video: before, the window was uniformly black for the whole run with not one watchdog line; after, it retries and moves on within four seconds. Verified on the signed release build. Covered by a test that fails against 1.11 and passes here.