fgl27 / SmartTwitchTV

A Twitch web client that works on Android TVs and web base systems
GNU General Public License v3.0
366 stars 28 forks source link

App starts to black screen and cant do anything #212

Closed twiikker closed 8 months ago

twiikker commented 8 months ago

When i start app there is just following items. Left top corner: Refresh: Hold enter Hold left for thumbnail options

Middle of screen: Loading arrow-circle

Nothing happens if i press any buttons or hold enter to refresh Killing app doesnt help Clearing cache doesnt help Clearing all data helps but need to apply all settings again

Happened yesterday and today again

Screenshots IMG_20240319_124425

Device:

fgl27 commented 8 months ago

I don't know how to reproduce this.

Clean app data write down all changes you made and share so I can reproduce and fix it.

djrick1994 commented 8 months ago

I'm having the same problem with the app on my Google Chromecast with Google TV (4K model). The problem started after the recent update.

It appears that the app is trying to load the screen with the live channels on the left and the stream preview on the right (I don't know the proper name of that specific screen). I have only have this happen when starting the app, not when switching apps.

Reinstall or deleting user data only fixes it temporarily. It is also not happening every time the app starts and I haven't been able to reproduce the problem manually (force closing the app or rebooting the Chromecast when the app was closed while in different menus or playing media).

I'll keep an eye out for some kind of pattern in behavior and app state that might cause this issue.

fgl27 commented 8 months ago

this icon image

is part of the dialogs that show when a playback ends

So the issue is when you are watching a stream you close the app and when you return the stream has ended and those dialogs try to show and brick the app.

Will try to reproduce it as a simple fix, is just not that easy to cause it.

If anyone has a better idea of how to reproduce this, let me know.

djrick1994 commented 8 months ago

For what its worth, on my Google TV it doesn't show that icon, but a spinning circle that is not completely closed.

IMG20240320021939

I haven't been able to reliably reproduce the error, but from my testing it appears that the problem only occurs when the app tries to load the screen with the live channels on the left and preview on the right. When the app starts on any other screen (like a channel or the user select page) then everything works without a problem.

fgl27 commented 8 months ago

I can't find a way to reproduce that issue or the first comment issue.

below screen @djrick1994 ? the app can't boot to that screen, is something you must open manually after the app has finished loading.

So maybe is the screen you were on before you opened below, do you remember?

image

fgl27 commented 8 months ago

all with this problem share the changes you make to the app

language, settings, and player controls any changes you made.

Is something related, also the screen you were on before the app was closed, and if there was a stream vod or clip playing?

djrick1994 commented 8 months ago

@fgl27 That is indeed the screen that I'm referring to. Is there a proper name that I can use when referring to that particular screen?

I can't remember exactly what the state of the app was before the problem occurs (playing media or in menu).

the app can't boot to that screen, is something you must open manually after the app has finished loading.

Usually it will either resume playback of the media that was playing or open the last menu (channel list, user channel, vod list, etc.), but there seems to be a specific set of circumstances where the app tries to open the screen as shown in your screenshot.

It is just after 3AM here so I will do the following:

I will open the preview screen as shown in your screenshot and I will select a stream of which I know for certain that it will end before I wake up. I will turn off the Chromecast while the preview is playing using the standby button on the remote. Tomorrow morning I will open the app and check if it will start normally or if it has triggered the issue.

I have a couple of things in mind that I will try tomorrow with the app in a mostly "vanilla" state.

fgl27 commented 8 months ago

I call it 'side panel' there is the menu side panel that you use to change screen, and the user live side panel from that image I shared before.

I will revise I only remember anything related to open the side panel being triggered by a key, the app can't open it without a interaction.

Example key number 3 if you have an remote with number will open/close the user live side panel.

Any way report your findings, thanks for the help

Will revise all shared here to see if I can understand were this problem is.

twiikker commented 8 months ago

this icon image

is part of the dialogs that show when a playback ends

So the issue is when you are watching a stream you close the app and when you return the stream has ended and those dialogs try to show and brick the app.

Will try to reproduce it as a simple fix, is just not that easy to cause it.

If anyone has a better idea of how to reproduce this, let me know.

I am 99% sure that i never leave stream running when i leave app. Also now is 3rd time this has happened and always happens when i start app for first time after night. Doesnt seem to happen when device is off/sleep for shorter period.

I will look at all settings next for you.

twiikker commented 8 months ago

Settings walkthrough: -activate account

-chat options: --insert line to separate messages: no --show total chatters or viewers: viewers --highlight messages from streamer: yes

-customize interface: --thumbnail quality: high --enable app animations: no

-notification options: --show streamer live notification: no

-warnings --show an accessability service is running: no (I havent had issue with this for past 5 months ive had this device. i only use it to disable netflix button on remote)

-always start app in user screen: yes -single return press: yes -default player quality: source

-preview thumbnail player settings --all 5 first settings to no

-vod controls max time to 10min

99% of times i leave app to user live channel menu when i leave app

djrick1994 commented 8 months ago

So when I started the app this morning it started with the black screen and spinning circle as described before. After a reset of the app I've tried to recreate multiple different scenarios to try and force this error state, but to no avail. I've even tried using a test stream from an alt account to see if the stream going offline while the app is closed might trigger something, but that also didn't work. I usually starts the app in the last visited menu, but it really looks like the app is sometimes trying to load the side panel on startup. Why it does that is something that I also don't understand.

As mentioned before I'll try to see if I can find some kind of pattern in the apps behavior.

In the mean time, here are the settings I usually change from the default app settings.

App settings

Account

Chat options

Customize interface

Warnings

Automatically change player quality from source to auto when the player lags: No Default player quality: Source

Start buffer size

Chat settings inside player

Video mode: Side by side, video and chat Chat front size: 95% Chat size: 20% Chat delay: Based on latency to broadcaster

The Chromecast I'm using is running Android TV version 12 with the security updates from January 1st 2024. The app language is English, but the Chromecast itself is set to Dutch.

If there is more info that you need, please let me know.

fgl27 commented 8 months ago

@djrick1994 @twiikker can you disable the accessibility service and see if that solves?

Make sure to keep notification on so you know nothing regarding accessibility is on.

If was a app issue I expect more reports, but we don't have it and you both are using button remappers

twiikker commented 8 months ago

Ill try to see if that causes it by switching it on and off every other day.

Kinda hope it isnt or ill need to open my remote and disable that button that way :)

djrick1994 commented 8 months ago

Yesterday I've disabled the button remapper, disabled the accessibility service and enabled the accessibility service warning inside the app. Used the app the whole day without any problems. At the end of the evening I turned off the Chromecast while a stream was still playing.

This morning I opened the app using the icon on the Chromecast home screen after which it opened straight into the side panel screen with the spinning circle.

It almost appears that the error happens at random because in my testing I've had it happen a couple of times, but I was never able to reliably reproduce it, even when doing the exact same actions.

Is there any way to enable some kind of debug or verbose logging on our end to see what the app is trying to do?

Walker-Twitch commented 8 months ago

When i start app there is just following items. Left top corner: Refresh: Hold enter Hold left for thumbnail options

Middle of screen: Loading arrow-circle

Nothing happens if i press any buttons or hold enter to refresh Killing app doesnt help Clearing cache doesnt help Clearing all data helps but need to apply all settings again

Happened yesterday and today again

Screenshots IMG_20240319_124425

Device:

  • Nvidia Shield pro 2017
  • Android 11

I also have the same problem.

I have tested the setting many times and found out that if you change this setting (Show total logged in users on top of the chat or viewers), the problem will occur. 20240321_203914

fgl27 commented 8 months ago

I pushed an update, the change above to fix it.

It was a combination of settings Chat options 'Show viewers' and player settings chat 'Side by Side, video and chat' enabled at the same time, crashing the app when you start the app.

fgl27 commented 8 months ago

Thanks All for the help!