Please provide the following:
-
SDK Version:
expo: ^48.0.0 => 48.0.11
-
Platforms(Android/iOS/web/all):
Android
-
Add the appropriate “Tag” based on what Expo library you have a question on.
[updates]
I cannot get expo-updates
run. Do you know how to overcome this issue?
The Error Description:
I added the expo-updates module and then created a build of my app.
It crashes at the first launch after I installed the app on the Android emulator. When I investigated the error, I found that every single time I installed the app, when I opened the app, it crashes after reloadAsync()
was invoked.
The piece of code that includes reloadAsync()
line:
A summary of the logcat output that starts from nearby expo-updates’ “UpdatesController onBackgroundUpdateFinished: Update available” message and continues to the app crash (to the WIN DEATH message):
2023-05-15 08:45:23.920 5738-5789 dev.expo.updates com.awesomeapp.test I {"timestamp":1684129523920,"message":"UpdatesController onBackgroundUpdateFinished: Update available","code":"None","level":"info"}
2023-05-15 08:45:23.922 5738-5789 dev.expo.updates com.awesomeapp.test I {"timestamp":1684129523922,"message":"ErrorRecovery: remote load status changed: NEW_UPDATE_LOADED","code":"None","level":"info"}
2023-05-15 08:45:23.923 5738-5789 MessageQueue com.awesomeapp.test W Handler (gg.g) {295f3f7} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (gg.g) {295f3f7} sending message to a Handler on a dead thread
...
2023-05-15 08:45:23.937 5738-5846 ReactNativeJS com.awesomeapp.test I Expo-updates: useUpdateEvents - fetching updates...
2023-05-15 08:45:23.940 367-6025 resolv netd I GetAddrInfoHandler::run: {101 101 101 983141 10205 0}
2023-05-15 08:45:23.940 367-6026 resolv netd I res_nmkquery: (QUERY, IN, AAAA)
2023-05-15 08:45:23.940 367-6027 resolv netd I res_nmkquery: (QUERY, IN, A)
2023-05-15 08:45:23.940 367-6027 resolv netd I
2023-05-15 08:45:24.415 5738-5846 ReactNativeJS com.awesomeapp.test I Expo-updates: useUpdateEvents - reloading app...
2023-05-15 08:45:24.432 5738-5749 System com.awesomeapp.test W A resource failed to call end.
2023-05-15 08:45:24.438 5738-5847 unknown:Re...JavaModule com.awesomeapp.test E Unhandled SoftException
java.lang.RuntimeException: Catalyst Instance has already disappeared: requested by AccessibilityInfo
...
at java.lang.Thread.run(Thread.java:1012)
2023-05-15 08:45:24.438 5738-5847 ReactNative com.awesomeapp.test I [GESTURE HANDLER] Tearing down gesture handler registered for root view com.facebook.react.a0{3faf8cd V.E...... ......ID 0,0-1080,2337}
2023-05-15 08:45:24.438 5738-5847 unknown:Re...JavaModule com.awesomeapp.test E Unhandled SoftException
java.lang.RuntimeException: Catalyst Instance has already disappeared: requested by DeviceInfo
...
2023-05-15 08:45:24.438 5738-5847 unknown:Re...JavaModule com.awesomeapp.test E Unhandled SoftException
java.lang.RuntimeException: Catalyst Instance has already disappeared: requested by AppState
...
java.lang.Thread.run(Thread.java:1012)
2023-05-15 08:45:24.438 5738-5847 unknown:Re...JavaModule com.awesomeapp.test E Unhandled SoftException
java.lang.RuntimeException: Catalyst Instance has already disappeared: requested by FrescoModule
...
java.lang.Thread.run(Thread.java:1012)
2023-05-15 08:45:24.442 5738-5847 ExpoModulesCore com.awesomeapp.test I ✅ ModuleRegistry was destroyed
2023-05-15 08:45:24.442 5738-5847 ExpoModulesCore com.awesomeapp.test I ✅ AppContext was destroyed
2023-05-15 08:45:24.443 5738-5847 ExpoModulesCore com.awesomeapp.test I ✅ KotlinInteropModuleRegistry was destroyed
2023-05-15 08:45:24.445 5738-6029 ExpoModulesCore com.awesomeapp.test I ✅ AppContext was initialized
2023-05-15 08:45:24.448 5738-6029 unknown:ReactContext com.awesomeapp.test W initializeMessageQueueThreads() is called.
2023-05-15 08:45:24.450 5738-6032 unknown:Vi...rtyUpdater com.awesomeapp.test W Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
.. Very long content ...
2023-05-15 08:45:24.468 5738-6032 System.err com.awesomeapp.test W java.lang.NoSuchFieldException: No field mLayoutAnimator in class Lcom/facebook/react/uimanager/r; (declaration of 'com.facebook.react.uimanager.r' appears in /data/app/~~8nbW4-UkfKaNzmdSFTcRtg==/com.awesomeapp.test-bAJE_m4p4Etx4OJDxgrDbg==/base.apk)
2023-05-15 08:45:24.469 5738-6032 System.err com.awesomeapp.test W at java.lang.Class.getDeclaredField(Native Method)
...
2023-05-15 08:45:24.471 583-767 ConnectivityService system_process D requestNetwork for uid/pid:10205/5738 activeRequest: null callbackRequest: 164 [NetworkRequest [ REQUEST id=165, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10205 RequestorUid: 10205 RequestorPkg: com.awesomeapp.test UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
2023-05-15 08:45:24.473 583-705 WifiNetworkFactory system_process D got request NetworkRequest [ REQUEST id=165, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10205 RequestorUid: 10205 RequestorPkg: com.awesomeapp.test UnderlyingNetworks: Null] ]
2023-05-15 08:45:24.473 583-705 UntrustedW...orkFactory system_process D got request NetworkRequest [ REQUEST id=165, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10205 RequestorUid: 10205 RequestorPkg: com.awesomeapp.test UnderlyingNetworks: Null] ]
2023-05-15 08:45:24.473 583-705 OemPaidWif...orkFactory system_process D got request NetworkRequest [ REQUEST id=165, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10205 RequestorUid: 10205 RequestorPkg: com.awesomeapp.test UnderlyingNetworks: Null] ]
2023-05-15 08:45:24.473 583-712 ConnectivityService system_process D NetReassign [165 : null → 101] [c 1] [a 0] [i 1]
2023-05-15 08:45:24.473 583-705 MultiInter...orkFactory system_process D got request NetworkRequest [ REQUEST id=165, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10205 RequestorUid: 10205 RequestorPkg: com.awesomeapp.test UnderlyingNetworks: Null] ]
2023-05-15 08:45:24.504 5738-6031 ExpoModulesCore com.awesomeapp.test I ✅ JSI interop was installed
2023-05-15 08:45:24.504 5738-6031 dev.expo.updates com.awesomeapp.test I {"timestamp":1684129524504,"message":"UpdatesModule: getConstants called","code":"None","level":"info"}
2023-05-15 08:45:24.513 5738-6031 ExpoModulesCore com.awesomeapp.test I ✅ Constants were exported
2023-05-15 08:45:24.614 5738-6031 ReactNativeJS com.awesomeapp.test I Running "awesomeapp
--------- beginning of crash
2023-05-15 08:45:24.614 5738-6031 ReactNativeJS com.awesomeapp.test E Invariant Violation: "awesomeapp" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes
2023-05-15 08:45:24.625 5738-6032 AndroidRuntime com.awesomeapp.test E FATAL EXCEPTION: mqt_native_modules
Process: com.awesomeapp.test, PID: 5738
clientId=android.media.AudioManager@75e4392expo.modules.av.AVManager@d4acdb7
2023-05-15 08:45:24.657 583-2857 PackageManager system_process D Instant App installer not found with android.intent.action.INSTALL_INSTANT_APP_PACKAGE
2023-05-15 08:45:24.657 583-2857 PackageManager system_process D Clear ephemeral installer activity
2023-05-15 08:45:24.659 5738-6032 Process com.awesomeapp.test I Sending signal. PID: 5738 SIG: 9
2023-05-15 08:45:24.664 4135-4135 Compatibil...geReporter com.google.android.packageinstaller D Compat change id reported: 78294732; UID 10073; state: ENABLED
...
2023-05-15 08:45:24.714 455-515 BufferPoolAccessor2.0 media.swcodec D bufferpool2 0xb4000077a23cbc28 : 0(0 size) total buffers - 0(0 size) used buffers - 329/333 (recycle/alloc) - 4/333 (fetch/transfer)
---------------------------- PROCESS ENDED (5738) for package com.awesomeapp.test ----------------------------
2023-05-15 08:45:24.714 455-515 BufferPoolAccessor2.0 media.swcodec D Destruction - bufferpool2 0xb4000077a23cbc28 cached: 0/0M, 0/0% in use; allocs: 333, 99% recycled; transfers: 333, 99% unfetched
2023-05-15 08:45:24.716 583-615 libprocessgroup system_process I Successfully killed process cgroup uid 10205 pid 5738 in 0ms
2023-05-15 08:45:25.031 145-145 binder [kworker/0:2-virtio_vsock] I undelivered TRANSACTION_COMPLETE
2023-05-15 08:45:25.031 145-145 binder [kworker/0:2-virtio_vsock] I undelivered transaction 258039, process died.
2023-05-15 08:45:25.031 145-145 binder [kworker/0:2-virtio_vsock] I undelivered TRANSACTION_COMPLETE
2023-05-15 08:45:25.031 145-145 binder [kworker/0:2-virtio_vsock] I undelivered transaction 257870, process died.
2023-05-15 08:45:25.031 145-145 binder [kworker/0:2-virtio_vsock] I undelivered transaction 257939, process died.
2023-05-15 08:45:24.717 583-2857 ActivityManager system_process I Process com.awesomeapp.test (pid 5738) has died: prcp CRE
2023-05-15 08:45:24.717 583-2866 ConnectivityService system_process D ConnectivityService NetworkRequestInfo binderDied(uid/pid:10205/5738, [NetworkRequest [ REQUEST id=165, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10205 RequestorUid: 10205 RequestorPkg: com.awesomeapp.test UnderlyingNetworks: Null] ]], android.os.BinderProxy@6914e87)
2023-05-15 08:45:24.717 583-712 ConnectivityService system_process D releasing NetworkRequest [ REQUEST id=165, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10205 RequestorUid: 10205 RequestorPkg: com.awesomeapp.test UnderlyingNetworks: Null] ] (release request)
2023-05-15 08:45:25.032 145-145 binder [kworker/0:2-virtio_vsock] I undelivered transaction 257917, process died.
2023-05-15 08:45:25.032 145-145 binder [kworker/0:2-virtio_vsock] I undelivered transaction 258198, process died.
2023-05-15 08:45:24.721 368-368 Zygote zygote64 I Process 5738 exited due to signal 9 (Killed)
2023-05-15 08:45:24.728 5567-5567 RefreshTask com.google.android.documentsui V Provider does not support refresh and did not refresh
2023-05-15 08:45:24.728 5567-5567 AbstractActionHandler com.google.android.documentsui D Creating new directory loader for: content://com.android.providers.downloads.documents/document/downloads
2023-05-15 08:45:24.729 583-606 WindowManager system_process W Exception thrown during dispatchAppVisibility Window{71b8611 u0 com.awesomeapp.test/com.awesomeapp.test.MainActivity}
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
...
2023-05-15 08:45:24.734 583-3233 WindowManager system_process I WIN DEATH: Window{71b8611 u0 com.awesomeapp.test/com.awesomeapp.test.MainActivity}
2023-05-15 08:45:24.734 583-3233 InputManager-JNI system_process W Input channel object '71b8611 com.awesomeapp.test/com.awesomeapp.test.MainActivity (client)' was disposed without first being removed with the input manager!
2023-05-15 08:45:24.739 583-5940 InputManager-JNI system_process W Input channel object '28a17b5 com.google.android.packageinstaller/com.android.packageinstaller.DeleteStagedFileOnResult (client)' was disposed without first being removed with the input manager!
2023-05-15 08:45:24.741 583-3233 WindowManager system_process W Failed looking up window session=Session{cdb999a 4135:u0a10073} callers=com.android.server.wm.WindowManagerService.windowForClientLocked:5972 com.android.server.wm.Session.setOnBackInvokedCallbackInfo:943 android.view.IWindowSession$Stub.onTransact:1180
2023-05-15 08:45:24.741 583-3233 WindowManager system_process E setOnBackInvokedCallback(): No window state for package:com.google.android.packageinstaller
2023-05-15 08:45:24.745 583-605 ActivityManager system_process W setHasOverlayUi called on unknown pid: 5738