tabletkat
tabletkat copied to clipboard
System UI crashes on AOSPA
When using AOSPA, I get constant system UI crashes where I can't even use the device.
WWhat logs do you need?
For now reboot and activate safe mode in Xposed. As for logs, LogCat please. However, try this, please: https://dl.dropboxusercontent.com/u/36782044/tabletkat-cm-test5.apk It's a temporary build where I fixed most reported issues as for now. (As you can see from commits)
Here is my logcat! http://goo.gl/NrfFhJ Also it still crashes with the test 5.
Hopefully it has the information as I was at school and didn't have access to adb so I had to rig up a script that started logging on boot!
404: Page not found – the page http://goo.gl/Bridge does not exist.
I don't need logging from boot, I just need the moment when the crash happens.
Sorry autocorrect fail. http://goo.gl/NrfFhJ and that was the only way I could get it to work
The crash happens the second the device turns on and it won't stop.
Yes, of course. The point is that it's the same crash every time. However, there is a problem. The crash is not in the log. ;)
So I still don't know where it happens. It looks like this:
08-25 11:54:14.366 E/AndroidRuntime(11477): de.robv.android.xposed.XposedHelpers$InvocationTargetError: java.lang.NullPointerException 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:955) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.TabletKatModule.createStatusBar(TabletKatModule.java:179) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.TabletKatModule.access$000(TabletKatModule.java:26) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.TabletKatModule$2.replaceHookedMethod(TabletKatModule.java:149) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XC_MethodReplacement.beforeHookedMethod(XC_MethodReplacement.java:15) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(Native Method) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73) 08-25 11:54:14.366 E/AndroidRuntime(11477): at android.os.Handler.dispatchMessage(Handler.java:102) 08-25 11:54:14.366 E/AndroidRuntime(11477): at android.os.Looper.loop(Looper.java:157) 08-25 11:54:14.366 E/AndroidRuntime(11477): at android.app.ActivityThread.main(ActivityThread.java:5335) 08-25 11:54:14.366 E/AndroidRuntime(11477): at java.lang.reflect.Method.invokeNative(Native Method) 08-25 11:54:14.366 E/AndroidRuntime(11477): at java.lang.reflect.Method.invoke(Method.java:515) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132) 08-25 11:54:14.366 E/AndroidRuntime(11477): at dalvik.system.NativeStart.main(Native Method) 08-25 11:54:14.366 E/AndroidRuntime(11477): Caused by: java.lang.NullPointerException 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.ViewHelper.replaceView(ViewHelper.java:19) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.ViewHelper.replaceView(ViewHelper.java:15) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.statusbar.tablet.NotificationPanelTitle.onFinishInflate(NotificationPanelTitle.java:74) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.statusbar.tablet.NotificationPanel.onFinishInflate(NotificationPanel.java:102) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.statusbar.tablet.TabletStatusBarMod.addPanelWindows(TabletStatusBarMod.java:328) 08-25 11:54:14.366 E/AndroidRuntime(11477): at org.exalm.tabletkat.statusbar.tablet.TabletStatusBarMod$12.replaceHookedMethod(TabletStatusBarMod.java:1294) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XC_MethodReplacement.beforeHookedMethod(XC_MethodReplacement.java:15) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.tv.TvStatusBar.createAndAddWindows(Native Method) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:423) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631) 08-25 11:54:14.366 E/AndroidRuntime(11477): at com.android.systemui.statusbar.BaseStatusBar.start(Native Method) 08-25 11:54:14.366 E/AndroidRuntime(11477): at java.lang.reflect.Method.invokeNative(Native Method) 08-25 11:54:14.366 E/AndroidRuntime(11477): at java.lang.reflect.Method.invoke(Method.java:515) 08-25 11:54:14.366 E/AndroidRuntime(11477): at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:947) 08-25 11:54:14.366 E/AndroidRuntime(11477): ... 19
Sorry that was my fault, when I rebooted it replaced the error log with the clean log.
Try this file http://goo.gl/vp6XPV
Well, there is BaseStatusBar.updateHoverState at all on clean Android. I'll look into that later, ok?
For what it's worth, it looks like the problem is with Hover, a custom ROM feature of Paranoid Android (AOSPA). It brings "heads up" style notifications and floating window into the picture, which explains why your module runs into issues with it (they've modified the statusbar so that they can essentially replace it with a hovering notification)
I've tried disabling hover, but the problem still persists, so sadly it's not as simple as shutting off the feature...it's baked right into the OS.
I'd love to have support on Paranoid Android, but I can understand the unique challenge it poses and understand if you can't find a workaround.
Disabling is not enough. I'll override it with an empty method when I get home.
Oops, I had overridden it, but forgot to post it here. https://dl.dropboxusercontent.com/u/36782044/tabletkat-test3.apk
It still crashes the same way… Sorry, can’t make a bug report right now…
Sent from Windows Mail
From: Exalm Sent: Thursday, August 28, 2014 2:32 AM To: Exalm/tabletkat Cc: [email protected]
Oops, I had overridden it, but forgot to post it here. https://dl.dropboxusercontent.com/u/36782044/tabletkat-test3.apk
— Reply to this email directly or view it on GitHub.
It looks like the new test build that you posted on XDA has fixed it! I am closing it.
Hmm, ok.
So after playing with it for a while, I think that I may have figured out the crashing on AOSPA!
It will not crash if the battery is plugged in, however, if you unplug it the battery icon has to update and will crash the system UI. It will keep crashing till you plug it back in.
It doesn't help if you start with the device unplugged. It will still crash until you plug it in.
Sorry, I can't give you a log because the fact that it doesn't work while unplugged.
adb logcat prints the entire logcat not just from when it starts. This means you can replug USB and get the errors from the crash.
Here's my logcat from a 2012 Nexus 7 after plugging it back in after the systemui force crashes http://slexy.org/view/s2LOEZAPsq
@Exalm
Here is the log for the crashes on PA.
By the looks of it, it's the battery causing the crashes.
Is it fixed now? If I understand correctly, it works fine except Overlay Recents causing crashes. Does the battery have correct colors?
Yep, everything works but overlay recents, even the battery meter
1.1 in the Xposed repos still doesn't work on aospa. Is there a newer build floating around?
Testing builds posted here are newer than 1.1. The newest test build is https://dl.dropboxusercontent.com/u/36782044/tabletkat-1.2-test19.apk