android / wear-os-samples

Multiple samples showing best practices in app and watch face development on Wear OS.
https://developer.android.com/wear
Apache License 2.0
1.13k stars 579 forks source link

Freezes when opened from recent apps #1209

Open rickmcrick opened 1 day ago

rickmcrick commented 1 day ago

Hello, I’m experiencing an issue with the Compose-Starter Wear OS app where it freezes when I try to re-open it from the recent apps list after the device has been idle and the screen has turned off. Here’s the sequence of events that leads to the freeze:

  1. My Wear OS device goes to sleep after about 15 seconds of inactivity. (when app closed manually everything works fine)
  2. If I wait around 2 minutes and 30 seconds, then attempt to re-open the app from the recent apps menu, the app appears frozen.
  3. No interactions are possible within the app during this freeze.

Oddly enough, if I leave the app in this frozen state and the device goes to sleep again after the usual 15-second timeout, logs appear and the frozen state seems to be gone.

I'm experiencing it with other apps (including my own app) too, maybe a Wear OS Bug? Just wanted to check if anyone knows what's the problem.

kul3r4 commented 1 day ago

If not specific to this sample (you said you can reproduce with your own app and other apps) I suggest you file a bug in https://issuetracker.google.com/issues/new?component=192711&template=840908 and attach a bugreport. You can reference that you can reproduce by using this sample.