tabletkat icon indicating copy to clipboard operation
tabletkat copied to clipboard

System UI crashes on AOSPA

Open bgiesing opened this issue 11 years ago • 23 comments

When using AOSPA, I get constant system UI crashes where I can't even use the device.

WWhat logs do you need?

bgiesing avatar Aug 25 '14 17:08 bgiesing

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)

alice-mkh avatar Aug 25 '14 17:08 alice-mkh

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!

bgiesing avatar Aug 25 '14 19:08 bgiesing

404: Page not found – the page http://goo.gl/Bridge does not exist.

alice-mkh avatar Aug 25 '14 19:08 alice-mkh

I don't need logging from boot, I just need the moment when the crash happens.

alice-mkh avatar Aug 25 '14 19:08 alice-mkh

Sorry autocorrect fail. http://goo.gl/NrfFhJ and that was the only way I could get it to work

bgiesing avatar Aug 25 '14 19:08 bgiesing

The crash happens the second the device turns on and it won't stop.

bgiesing avatar Aug 25 '14 19:08 bgiesing

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. ;)

alice-mkh avatar Aug 25 '14 19:08 alice-mkh

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

alice-mkh avatar Aug 25 '14 19:08 alice-mkh

Sorry that was my fault, when I rebooted it replaced the error log with the clean log.

Try this file http://goo.gl/vp6XPV

bgiesing avatar Aug 25 '14 19:08 bgiesing

Well, there is BaseStatusBar.updateHoverState at all on clean Android. I'll look into that later, ok?

alice-mkh avatar Aug 26 '14 07:08 alice-mkh

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.

dccorona avatar Aug 26 '14 23:08 dccorona

Disabling is not enough. I'll override it with an empty method when I get home.

alice-mkh avatar Aug 27 '14 05:08 alice-mkh

Oops, I had overridden it, but forgot to post it here. https://dl.dropboxusercontent.com/u/36782044/tabletkat-test3.apk

alice-mkh avatar Aug 28 '14 07:08 alice-mkh

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.

bgiesing avatar Aug 29 '14 12:08 bgiesing

It looks like the new test build that you posted on XDA has fixed it! I am closing it.

bgiesing avatar Aug 30 '14 22:08 bgiesing

Hmm, ok.

alice-mkh avatar Aug 31 '14 04:08 alice-mkh

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.

bgiesing avatar Sep 15 '14 13:09 bgiesing

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

parkerlreed avatar Sep 29 '14 05:09 parkerlreed

@Exalm

Here is the log for the crashes on PA.

By the looks of it, it's the battery causing the crashes.

bgiesing avatar Oct 02 '14 21:10 bgiesing

Is it fixed now? If I understand correctly, it works fine except Overlay Recents causing crashes. Does the battery have correct colors?

alice-mkh avatar Oct 05 '14 18:10 alice-mkh

Yep, everything works but overlay recents, even the battery meter

bgiesing avatar Oct 06 '14 20:10 bgiesing

1.1 in the Xposed repos still doesn't work on aospa. Is there a newer build floating around?

parkerlreed avatar Oct 29 '14 04:10 parkerlreed

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

alice-mkh avatar Oct 29 '14 04:10 alice-mkh