Skip to main content

Findings on extremely slow app startup

  • January 9, 2025
  • 2 replies
  • 106 views

Android Sonos App (latest version, 80.14.06) startup time is very long on my phone (xPeria J9210, Android 11), even after I wipe out all cache/data, reinstall the app, and start it with phone IN FLIGHT MODE, i.e. no WIFI, no access whatsoever to my players.

It takes about 2 minutes for the app to finally tell me that I need to enable the Wifi to find my system.

And after enabling Wifi, it takes only a few seconds for the app to really find my system and be ready to roll. So the startup time issue can not be related to the players configuration, interference, or wifi/router setup.

This is also confirmed by the fact that the same app version on a separate (Android 14) tablet starts and finds the system in a few seconds.

So I tried to understand what could cause this massive startup delay and traced the android system activity during the startup phase using common Android debug tools (perfetto trace).

What I found is that OkHttp Dispatch thread of the com.sonos2.acr2 app experiences a “Lock contention on a monitor lock” stalling app progress during 1mn 46sec. This seems related to runtime library loading in Java.
I know by having worked in hardware monitors design that such livelocks can indeed happen, with long durations.

I expect that this is a possible root cause for many of the large startup app delays that are unexplained by the more common network-related causes - I know that I am not alone facing similar startup times. They can also happen randomly when reactivating the app from the background, even if it has not been closed.

There is most probably a way to fix these issues in the sonos app code.I have a bit more detail to report (I could send the trace for example), but I think that only Sonos engineering can really analyze what’s going on, and I have not found any way to contact sonos engineering, or even human support, directly.

Can anyone direct me to the proper channel to report these findings ?

 

 

 

 

Did you find what you were looking for?

2 replies

Forum|alt.badge.img
  • Lyricist III
  • 13 replies
  • January 10, 2025

One word in your analysis stands out for me… “Java” 🤣

Thanks so much for looking into this. The fact you found a livelock definitely relates to what I’m experiencing… a 1min+ startup time, usually followed by the Android “Wait” / “Close App” dialog.

 

SONOS… YOU. NEED. TO. FIX. THIS.


Corry P
Forum|alt.badge.img+18
  • Sonos Staff
  • 8526 replies
  • January 13, 2025

Hi ​@Phm.Martin 

Welcome to the Sonos Community!

I am sorry to hear of the issues you are having with the app being slow to open.

Thank you for sharing this info - I have passed it on to those who can use it.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings