Closed defagos closed 3 years ago
Having a look at the threads my best guess is that the route detector and the route picker view are created at the same time. Depending on the timing this might create the issue we observe.
We could probably instantiate our route detector a bit earlier to avoid such issues.
I encountered the issue with SRG Media Player demo alone, so this is clearly related to it only.
I propose we try to enable route detection early. This way we will probably eliminate this issue.
Available for review on feature/various-fixes
, which also contains a fix for modal presentation (made in Letterbox demo first).
We were reported a rare
SRGRouteDetector
deadlock when registering for notifications. I could reproduce it, here is the stack trace for all threads:This stems from a more complex app using SRG Media Player, for which we know we have a deadlock due to a 3rd party dependency. Maybe this is all related and not an SRG Media Player bug.