App keeps crashing on Google TV, became unusable
Steps to reproduce
Device Name: Google TV Device Model: acer V Pro Series Model No.: AR32QDXGU2841AT
This is what's happening...
- Launching the app and while loading the previous selected provider it crashes.
- Then the app relaunches itself in safe mode. In this state, going to settings page also crashes the app.
- Repeat.
Expected behavior
App should load the provider, if it can't load let the user choose. Don't lockout user by preventing access to the app settings.
Actual behavior
The app became unusable, it's crashing without any hint about the actual issue. I can't access the settings page to collect logcat and it's a pain to extract it from the TV using adb.
Important things to mention after trying everything...
- App resetting doesn't fix the problem.
- Reinstallation doesn't fix it.
- Pre-release version also having same problem.
- Even factory resetting the TV won't fix the issue.
Below screenshots are after factory resetting and fresh installation of the app, didn't installed any provider.
This issue kept happening since past 4-5 days.. (without doing anything)
Cloudstream version and commit hash
v4.5.2 d954158
Android version
Android TV OS 14
Logcat
Can't access settings...
Other details
Crash info : (This is OCR version; typos are expected)
Currently loading extension: none Fatal exception on thread main (2)
[Java.lang.NullPointerException](http://java.lang.nullpointerexception/): Attempt to invoke virtual method 'Int [android.view.InputDevice.getVendorid](http://android.view.inputdevice.getvendorid/)()' on a null object reference
at [android.view.View.onResolvePointerIcon](http://android.view.view.onresolvepointericon/) ([View.java:29569](http://view.java:29569/))
at
[android.view.ViewGroup.onResolvePointerlcon](http://android.view.viewgroup.onresolvepointerlcon/) ([ViewGroup.java:2078](http://viewgroup.java:2078/))
at
[android.view.ViewGroup.dispatchResolvePointerIcon](http://android.view.viewgroup.dispatchresolvepointericon/)([ViewGroup.java:2092](http://viewgroup.java:2092/))
at
[android.view.ViewGroup.onResolvePointerIcon](http://android.view.viewgroup.onresolvepointericon/)([ViewGroup.java:2067](http://viewgroup.java:2067/))
at
[android.view.ViewGroup.dispatchResolvePointerIcon](http://android.view.viewgroup.dispatchresolvepointericon/)([ViewGroup.java:2092](http://viewgroup.java:2092/))
at
[android.view.ViewGroup.onResolvePointerIcon](http://android.view.viewgroup.onresolvepointericon/) ([ViewGroup.java:2067](http://viewgroup.java:2067/))
at
android.view.ViewGroup.dispatchResolvePointerIcon(ViewGroup.java:2092)
at
android.view.ViewGroup.onResolvePointerIcon(ViewGroup.java:2067)
at
android.view.ViewGroup.dispatchResolvePointerIcon(ViewGroup.java:2092)
at
android.view.ViewGroup.onResolvePointerIcon(ViewGroup.java:2067)
at
android.view.ViewGroup.dispatchResolvePointerIcon(ViewGroup.java:2092)
at
android.view.ViewGroup.onResolvePointerIcon(ViewGroup.java:2067)
at
android.view.ViewGroup.dispatchResolvePointerIcon(ViewGroup.java:2092)
at
android.view.ViewGroup.onResolvePointerIcon(ViewGroup.java:2067)
at
[android.view.ViewRootImpl.updatePointerlcon](http://android.view.viewrootimpl.updatepointerlcon/)([ViewRootImpl.java:7116](http://viewrootimpl.java:7116/))
at
[android.view.ViewRootImpl.resetPointerIcon](http://android.view.viewrootimpl.resetpointericon/)([ViewRootImpl.java:7092](http://viewrootimpl.java:7092/))
at [android.view.ViewRootImpl](http://android.view.viewrootimpl/).-$ $Nest$mresetPointerlcon(Unknown Source:0)
at
[android.view.ViewRootImpl](http://android.view.viewrootimpl/)$[ViewRootHandler.handleMessagelmpl](http://viewroothandler.handlemessagelmpl/)([ViewRootImpl.java:6046](http://viewrootimpl.java:6046/))
at
[android.view.ViewRootImpl](http://android.view.viewrootimpl/)$[ViewRootHandler.handleMessage](http://viewroothandler.handlemessage/)([ViewRootImpl.java:5862](http://viewrootimpl.java:5862/))
at [android.os.Handler.dispatchMessage](http://android.os.handler.dispatchmessage/)([Handler.java:106](http://handler.java:106/))
at [android.os.Looper.loopOnce](http://android.os.looper.looponce/)([Looper.java:205](http://looper.java:205/))
at [android.os.Looper.loop](http://android.os.looper.loop/)([Looper.java:294](http://looper.java:294/))
at [android.app.ActivityThread.main](http://android.app.activitythread.main/)([ActivityThread.java:8177](http://activitythread.java:8177/))
at [java.lang.reflect.Method.invoke](http://java.lang.reflect.method.invoke/)(Native Method)
at
[com.android.internal.os.RuntimeInit](http://com.android.internal.os.runtimeinit/)$[MethodAndArgsCaller.run](http://methodandargscaller.run/)([RuntimeInit.java:552](http://runtimeinit.java:552/))
at [com.android.internal.os.ZygoteInit.main](http://com.android.internal.os.zygoteinit.main/)([ZygoteInit.java:971](http://zygoteinit.java:971/) )
Acknowledgements
- [x] I am sure my issue is related to the app and NOT some extension.
- [x] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
- [x] I have written a short but informative title.
- [x] I have updated the app to pre-release version Latest.
- [x] I will fill out all of the requested information in this form.
Your issue looks similar to these issues:
Please close if duplicate.
- 70% #1652
Looks like issue with your input devices like remote or android issue. Nothing related to cloudstream
This is something new outside of CloudStream being updated causing the crash. Stable would not retroactively crash if the main issue was caused by faulty app code.
Given that this issue seems to have appeared multiple times for different people during the last week it is most likely a software update of some kind. It could be an OS update or a remote update, or even play services.
If you are able to get a full adb logcat it might be possible to find the issue.
But, the remote is working fine with other apps and overall in general. If the remote is truly causing an issue in the app, there might be something to be done to fix this, because it's not happening to other apps.
I could try un-pairing the remote and test, but how can I navigate then?
If you are able to get a full adb logcat it might be possible to find the issue.
There were no OS updates, I suspect it might be the play services update.
I'll try to get the adb logcat..
The ADB log was captured perfectly but I am still not able to narrow down the issue.
Can you try installing another soft keyboard on the TV and try using the Google Home app to navigate. If you use a mouse then disconnect that. The issue seems to stem from some sort of input/navigation and switching those may fix the issue.
Another issue on an unrelated project with the same problem: https://github.com/libsdl-org/SDL/issues/13306
Can you try installing another soft keyboard on the TV and try using the Google Home app to navigate. If you use a mouse then disconnect that.
I don't use any other I/O device than the TV Remote itself, which is bluetooth enabled. I've tried using the remote in only IR mode, disabling bluetooth of the TV. Still no resolve.
I'll check tomorrow by connecting a physical keyboard. (And also by any chance, did you mean Gboard alternative by the "soft keyboard"? @CranberrySoup)
but I am still not able to narrow down the issue.
You can ask/guide me if I can be any help to fix the issue.
did you mean Gboard alternative by the "soft keyboard"?
Yes. All input methods should be different to rule out that possibility. If possible try connecting a mouse too, PointerIcon relates to the mouse pointer.
I have looked through the Android 14 source code and I am not able to find a revision with getVendorId() at View.java:29569 I think this issue is with the AOSP fork your TV is running. They must have inserted some piece of extra buggy code which cloudstream triggers somehow.
I have tried every possible combination like this...
| TV Remote (BT) | Gboard State | Physical Keyboard & Mouse | CloudStream Behavior | ADB logcat |
|---|---|---|---|---|
Disconnected |
Enabled |
Disconnected |
Crashing | ❌ |
Disconnected |
Enabled |
Connected |
Crashing (Continuous Loop) | Log |
Disconnected |
Disabled |
Disconnected |
Crashing | ❌ |
Disconnected |
Disabled |
Connected |
Crashing (Somehow once got fixed) | Log |
I finally uninstalled Google Play Services update; the crash was gone! Then, I enabled Gboard which I had disabled during troubleshooting, disconnected the Physical Keyboard & Mouse and connected the Remote using BT. It didn't crash that time, thankfully. I thought I was done pinpointing the cause.
But but but... after I rebooted the TV, again the app started crashing. So I uninstalled all Gapps (Play Store, Play Services, Android TV Remote Service, Play Games, Gboard, Google TV Home, Play Movies & TV) to its factory version; the app is still crashing. That's unexpected. But once in a while the app works randomly in this state. It's unclear to me what exactly is causing the issue. This is the final log for this current scenario: cs-log-factory-state.txt
How an app can started crashing without an update or change — definitely other apps are responsible for the crash somehow, but after reverting back to the factory version of Gapps, the crash should stop. Clearly it's not the case.
My conclusion
- Maybe the recent update of Google Play Services(
v25.24.31 180306-772615181) was causing the crash somehow. - The TV Remote (via Bluetooth) has no impact.
- Gboard also has no impact on the crash imo (I've installed other soft keyboards; results are the same as with Gboard).
Personally, I believe that a future app update could stop it; perhaps it has to do with app dependency? You guys knows better than me, I'm far from an android developer.
Excellent bug reporting! Unfortunately I am not able to figure out the dependency or cause even with all the additional information.
I suggest you report this problem to Acer, and link both of the github issues. Explain that the core issue is localized at View.java:29569 for the build fingerprint ACER/ACER/R3_GTV:14/UKR1.250114/2407:user/release-keys and that it is happening on multiple different apps.
I also have the same problem with my Acer I Advance Android 14 TV, please fix it
Excellent bug reporting! Unfortunately I am not able to figure out the dependency or cause...
Thank you 🙇🏼.. and sad to hear that 😢
I suggest you report this problem to Acer, and link both of the github issues.
I don't think they're gonna help regarding sideloaded apps.. still I'm going to do it since you suggested.
For those who are the same victim as me... I'll suggest — Uninstall all Gapps to its factory version, since mine partially works this way. The app crashes only if I try to access other screens of the app, i.e., Settings, Search, Downloads, etc.
I am also facing same issue in my acer tv also
@rahulk41 @Raza190 It's not a problem with the CloudStream app itself. I've tested with different builds, even downgraded to multiple previous ones. They all are acting the same.
@CranberrySoup was right, it's something with acer's Android TV OS build that's messing things up.
Other apps like JioSphere, JioSaavn, etc. also crashing, but the fact those apps don't spit out the error log in front of users, so we can't see the problem right away.
What you can do to fix it:
Guys, if you're facing the same issues with your acer TV, please report to acer about this problem in the mail as said here. Also, mention multiple apps are crashing recently on different acerTV with many users you know, so they might fix and update the OS. And also you can link this thread in the mail.