Hello there,
I'm seeing a crash on app startup after opening a push notification. It only seems to happen when the app is not running at all. A notification arrives, I tap on it, the app starts, and the crash happens - right after the splash screen comes up.
When the app is already running in the background, things look fine - I get a Notification Opened event.
Things also work when the app is already running in the foreground - I get a Notification Received event.
I'm seeing this on my ancient Android 6 phone, but also in the Android emulator with a pretty current Android API version 29.
The app is #187603. The build I used for the below stack trace is 169500.
Logcat shows the following stack trace:
07-11 19:10:15.462 4278 4320 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
07-11 19:10:15.462 4278 4320 E AndroidRuntime: Process: de.denkklima.dev, PID: 4278
07-11 19:10:15.462 4278 4320 E AndroidRuntime: com.facebook.react.common.JavascriptException: TypeError: Cannot read property 'insets' of null
07-11 19:10:15.462 4278 4320 E AndroidRuntime:
07-11 19:10:15.462 4278 4320 E AndroidRuntime: This error is located at:
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in O
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in A
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in ForwardRef
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in ForwardRef
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in P
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in PanGestureHandler
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in P
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in G
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in R
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in h
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in w
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in j
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in ForwardRef
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in ForwardRef
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RNCSafeAreaProvider
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in A
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in c
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in L
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Unknown
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in k
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in Root
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in RCTView
07-11 19:10:15.462 4278 4320 E AndroidRuntime: in x, js engine: v8, stack:
07-11 19:10:15.462 4278 4320 E AndroidRuntime: e.setSafeAreaInsets@1205:2710
07-11 19:10:15.462 4278 4320 E AndroidRuntime: O.value@2483:3131
07-11 19:10:15.462 4278 4320 E AndroidRuntime: Fl@92:76189
07-11 19:10:15.462 4278 4320 E AndroidRuntime: e.unstable_runWithPriority@172:3914
07-11 19:10:15.462 4278 4320 E AndroidRuntime: an@92:24606
07-11 19:10:15.462 4278 4320 E AndroidRuntime: Dl@92:73996
07-11 19:10:15.462 4278 4320 E AndroidRuntime: Pl@92:65221
07-11 19:10:15.462 4278 4320 E AndroidRuntime: <unknown>@92:24877
07-11 19:10:15.462 4278 4320 E AndroidRuntime: e.unstable_runWithPriority@172:3914
07-11 19:10:15.462 4278 4320 E AndroidRuntime: an@92:24606
07-11 19:10:15.462 4278 4320 E AndroidRuntime: sn@92:24823
07-11 19:10:15.462 4278 4320 E AndroidRuntime: cn@92:24758
07-11 19:10:15.462 4278 4320 E AndroidRuntime: _e@92:88067
07-11 19:10:15.462 4278 4320 E AndroidRuntime: Ne@92:13580
07-11 19:10:15.462 4278 4320 E AndroidRuntime: Ue@92:13753
07-11 19:10:15.462 4278 4320 E AndroidRuntime: Object.receiveEvent@92:14162
07-11 19:10:15.462 4278 4320 E AndroidRuntime:
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:71)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225)
07-11 19:10:15.462 4278 4320 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)