New Apps crashing in unpredictable manner


KamilKurde

Members
27 Feb 2024
9
15
Since I updated to HyperOS 1.0.4.0.ULACNXM (it's still happening on HyperOS 1.0.5.0.ULACNXM) some apps keep crashing in the background (Gboard, Vivaldi, and even Security Center) and some while going Fullscreen (Netflix, YouTube, HBO Max).
Here is a an example stack trace from Gboard crash in the background:
```
Build fingerprint: 'Xiaomi/thor/thor:12/SKQ1.230401.001/
V816.0.4.0.ULACNXM:user/release-keys'
Revision:'0'
ABI: 'arm64'
Timestamp: 2024-03-03 08:57:28.353960859+0100
Process uptime: 1s
ZygotePid: 1232
Cmdline: zygote64
pid: 30241, tid: 30253, name: ocess_scheduled >>>
zygote64<<<
uid: 10342
tagged_addr_ctrl: 0000000000000001
(PR_TAGGED_ADDR_ENABLE)
pac_enabled _keys: 000000000000000f
PR PAC APIAKEY, PR PAC APIBKEY, PR PAC APDAKEY,
PR_PAC_APDBKEY)
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
0x000000000000000d
Cause: null pointer dereference
xO0000007538613c48 x1 000000000000000b x2 00000075de2b6dao x3 00000075de2b6e20
×4 b40000751418ed0 x5 0000000000000000 x6 0000000000000001 x7 00000000001a0000
×8 e3799651d93eddfa x9 e3799651d93eddfa x10
0000007521581040 x11 0000000000000000
x12 00000075112425fc x13 0000000000000080 x14 00000000ffff0000 x15 0000000000008000
×16 00000075c1da9278 x17 00000075c0900e00 x18 00000074c2d2a000 x19 00000075de2b6e20
×20 00000075de2b6dao x21 000000000000000b×22 0000007538613c48 x23 00000075c1dab000
×24 00000075c1dab9f0 x25 0000007521581000 x26 0000000000000000 x27 00000075c1dab9c0
×28 00000075c1daa758 x29 00000075de2b6c90
Ir 002803f5c1da52d0 sp 00000075de2b6b50 pc 0000007537eeaab0 pst 0000000060001000
9 total frames
backtrace:
#00 pc 00000000002eaab0 /apex/com.android.art/lib64/libart.so (art::FaultManager::HandleSigsegvFault(int,siginfo*, void*)+72) (Buildld:
debe297547d3cc3aa495da85465bb8a7)
#01 pc 00000000000022cc /apex/
com.android.art/lib64/libsigchain.so
(art::SignalChain::Handler(int, siginfo*, void*)+556)
(Buildld: 0eb1ce8eec78535f631bcc5607023e38)
#02 pc 000000000000089c [vdso]#03 pc 000000000076cfd0 /apex/com.android.art/lib64/libart.so (Buildld:debe297547d3cc3aa495da85465bb8a7)
#04 pc 000000000068857c /apex/com.android.art/
lib64/libart.so (art::Thread::lnit(art::ThreadList*,art::JavaVMExt*, art::JNIEnvExt*)+80) (Buildld:debe297547d3cc3aa495da85465bb8a7)
#05 pc 000000000068ce2c /apex/
com.android.art/lib64/libart.so (art::Thread::Attach(char
const*, bool, _jobject*)+176)(Buildld:
debe297547d3cc3aa495da85465bb8a7)
#06 pc 00000000000089c4 /apex/
com.android.art/lib64/libadbconnection.so
(adbconnection::CallbackFunction(void*)+68) (Buildld:
2cd7fb915b32c8db085a28737b896267)
+07 pc 00000000000fd134 /apex/com.android.runtime/lib64/bionic/libc.so(pthread_start(void*)+208) (Buildld:
1e3ca19bcae05c01b019c85f3f422e56)
#08 pc 0000000000096ae4 /
apex/com.android.runtime/lib64/bionic/
libc.so (_start_thread+68) (Buildld:
1e3ca19bcae05c01b019c85f3f422e56)
```
 
Last edited:
Try to run this command on ADB (you must have USB debugging enabled):
adb shell pm compile -a -f -r cmdline --full

After that reboot device.
 
Hi, did what you wrote, and since then haven't had a single background crash.

As for other crashes (netflix, yt, etc.) I have a logcat log, cleared logcat shortly before clicking on a video in netflix (which causes the crash) and stopped logcat after it started working normally again. I attached it below (but had to zip it because it was too large).
I think I possibly found a reason: WebView

Code:
2024-03-03 15:15:52.450 13427-13427 LoadedApk               com.google.android.webview           E  Unable to instantiate appComponentFactory
                                                                                                    java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[zip file "/data/app/~~rV_999clNlGGoKzyYm3azA==/com.google.android.webview-psGEoCXzTxaB1kM4ape_1Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~rV_999clNlGGoKzyYm3azA==/com.google.android.webview-psGEoCXzTxaB1kM4ape_1Q==/lib/arm64, /data/app/~~rV_999clNlGGoKzyYm3azA==/com.google.android.webview-psGEoCXzTxaB1kM4ape_1Q==/base.apk!/lib/arm64-v8a, /data/app/~~6yM3gPiorI1YfxdmuxBsEQ==/com.google.android.trichromelibrary_616717833-d0igpp7OZNpu5C-RfKy9Dw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
                                                                                                        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                        at android.app.LoadedApk.createAppFactory(Unknown Source:12)
                                                                                                        at android.app.LoadedApk.updateApplicationInfo(Unknown Source:187)
                                                                                                        at android.app.ActivityThread.handleApplicationInfoChanged(Unknown Source:59)
                                                                                                        at android.app.ActivityThread$H.handleMessage(Unknown Source:276)
                                                                                                        at android.os.Handler.dispatchMessage(Unknown Source:19)
                                                                                                        at android.os.Looper.loopOnce(Unknown Source:198)
                                                                                                        at android.os.Looper.loop(Unknown Source:83)
                                                                                                        at android.app.ActivityThread.main(Unknown Source:123)
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
                                                                                                        at com.android.internal.os.ChildZygoteInit.runZygoteServer(Unknown Source:88)
                                                                                                        at com.android.internal.os.WebViewZygoteInit.main(Unknown Source:13)
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
                                                                                                        at com.android.internal.os.ZygoteInit.main(Unknown Source:378)

But uninstalling webview updates didn't fix it.
Should I create a separate post for this issue?
 

Attachments

  • Xiaomi-2203121C-Android-14_2024-03-03_152047.zip
    198.5 KB · Views: 118
Hello!
I hope this stays here and we get a meaningful answer.
The problem is with the application, it won't start.: Telecom TV GO
The app does not launch in Stable or Weekly editions for several models.
Here is my own LOG file about it. (log_houji_V816.0.24.3.11.DEV)
Here is an image, the app says this and then crashes: Images
The application works on a factory, clean, untouched system, and also on 1-1 AOSP, but unfortunately not stable/weekly here on Xiaomi.eu.

The developer of TV GO is supposed to be able to fix the bug, but unfortunately he doesn't want to. :(
This line is supposed to be the cause of the error:
"03-20 19:16:37.615 14405 14405 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: Bad JNI version returned from JNI_OnLoad in "/data/user/0/hu.telekom.telekomtv/app_outdex/libdexprotector.14405.so": -401"
Can you recommend an alternative solution?
Or maybe it is also possible to modify the system so that the application starts?
Or maybe somehow get the application to start?
It is reported to the developer, but it does not respond to anything and does not want to change.
Thank you in advance for your valuable comments.
 
Hello!
I hope this stays here and we get a meaningful answer.
The problem is with the application, it won't start.: Telecom TV GO
The app does not launch in Stable or Weekly editions for several models.
Here is my own LOG file about it. (log_houji_V816.0.24.3.11.DEV)
Here is an image, the app says this and then crashes: Images
The application works on a factory, clean, untouched system, and also on 1-1 AOSP, but unfortunately not stable/weekly here on Xiaomi.eu.

The developer of TV GO is supposed to be able to fix the bug, but unfortunately he doesn't want to. :(
This line is supposed to be the cause of the error:
"03-20 19:16:37.615 14405 14405 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: Bad JNI version returned from JNI_OnLoad in "/data/user/0/hu.telekom.telekomtv/app_outdex/libdexprotector.14405.so": -401"
Can you recommend an alternative solution?
Or maybe it is also possible to modify the system so that the application starts?
Or maybe somehow get the application to start?
It is reported to the developer, but it does not respond to anything and does not want to change.
Thank you in advance for your valuable comments.
That's not related to the issues I described earlier, and looking at the line you outlined I'd say it's due to native libs used by the app, not because of the system itself
 
Factory reset and restore seems to fix both issues, I haven't had any of these crashes even after restoring settings
 
Factory reset and restore seems to fix both issues, I haven't had any of these crashes even after restoring settings
This used to happen to me alot when dirty flashing over the top in TWRP, then i'd get strange crashes that i'd never witnessed before.

Flashing the same ROM over the top fixed it 99% of the time.