theothernt / AerialViews

A screensaver for Android TV devices including Nvidia Shield, Fire TV, and Chromecast with Google TV. Inspired by Apple TV's video screensaver.
GNU General Public License v3.0
415 stars 32 forks source link

Crash, Freeze #143

Closed erdnuesse closed 3 weeks ago

erdnuesse commented 1 month ago

What were you trying to do... Regular usage

And what actually happened (ie. describe the bug)... Crashing / Freezing Picture no longer moves, Time stays frozen at time of crash. Device not responsive to network or Remote, needs cold restart.

What kind of device do you have? (eg. Nvidia Shield, Sony TV, etc)... Chromecast with Google TV, TVOS 12, Patchlevel March 2024

Idk if it's networking issues, RAM usage, app crashing or what. Can't debug or change settings to lower the load for testing. Also, freezes with kodi in background, not sure if crashes occur while other apps running as it's hard to test during regular usage.

theothernt commented 1 month ago

This issue sounds very strange - and I use a Chromecast with Google TV 4K as well.

My initial guess is that it's a conflict with another app. Kodi has caused issues with Aerial Views for a few users before, but I think they were using a Nvidia Shield.

Can you let me know if the issue happens with any other app or just Kodi?

erdnuesse commented 1 month ago

I haven't seen it with another app yet. I left it running over night in other apps, but AFAIR it was just Kodi. However, I can't say it happens every time I leave Kodi running. But, Aerial Views needed to run for a while before it froze.

The Setup is: CCwGTV 4k, USB Hub w/ ethernet, and a Samsung USB drive where most apps reside, A-V included. Wolf Launcher, and explicitly NOT the latest android system webView / CC receiver, since they a) don't update w/ dev opts enabled or b) may have caused other problems in the past when I used the latest version. (Especially the CC receiver.)

I could:

Whatever could suggest the best outcome. Am open to suggestions.

theothernt commented 1 month ago

I haven't seen it with another app yet. I left it running over night in other apps, but AFAIR it was just Kodi. However, I can't say it happens every time I leave Kodi running. But, Aerial Views needed to run for a while before it froze.

So, there are a number of things we can try to narrow down what the issue is...

Storage - Although I don't think storage is the issue, would it be possible to turn off local storage in Aerial Views and try a remote source only, like the Apple videos?

Dev Options - It depends on what options you've changed from the default, have you enabled "Disable HW overlays" by chance?

erdnuesse commented 1 month ago

So, there are a number of things we can try to narrow down what the issue is...

Storage - Although I don't think storage is the issue, would it be possible to turn off local storage in Aerial Views and try a remote source only, like the Apple videos?

Thing is, I do not have local sources. My guess was that the remote sources in use need too much cache which would lead to arbitrary crashes as they would differ in filesize each time hence the unpredictability of said freezes. (will check any setting as well, but AFAIR there wasn't even a setting to select local sources)

Dev Options - It depends on what options you've changed from the default, have you enabled "Disable HW overlays" by chance?

I would say no, as I used dev opts just for the "force apps to ext. storage" possibility, but I'll double-check just to make sure.

theothernt commented 1 month ago

Thing is, I do not have local sources. My guess was that the remote sources in use need too much cache which would lead to arbitrary crashes as they would differ in filesize each time hence the unpredictability of said freezes. (will check any setting as well, but AFAIR there wasn't even a setting to select local sources)

Ok, I misunderstood. Typically when people mention USB storage, it's for the video are they're huge. If you're only using it for app, it should be fine although I don't test on that myself. You could try moving the app to internal storage and see if it makes any difference.

Aerial Views is a small app, about 15MB installed I think, that doesn't cache anything so it'll remain that size over time.

When a screensaver starts, typically the app that was running (in this case a video player like Kodi or even Plex, Netflix, YouTube, etc) is told to suspend. It's supposed to free up resources, just in case. Some app don't do this properly, which can either cause an issue with the screensaver or crash the app itself so that when the screensaver ends, you see the app restarting (that issue was also reported with Kodi at least twice).

theothernt commented 3 weeks ago

I'll close this issue for the moment, let me know if you manage to narrow down the issue.