react-native-unity icon indicating copy to clipboard operation
react-native-unity copied to clipboard

Android app getting crashed

Open khushaldogpack opened this issue 3 months ago • 2 comments

@azesmway I am using unity (ARCore and ARKit) which I have embedded inside react native. I am using unity's camera (specifically AR Camera). On iOS everything is working fine but on Android I keep getting this crashes Version '6000.0.35f1 (9a3bc604008a)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Disabled' 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E Build fingerprint: 'samsung/dm3qcsx/dm3q:15/AP3A.240905.015.A2/S918WVLS6DYF1:user/release-keys' 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E Revision: '13' 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E ABI: 'arm64' 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E Timestamp: 2025-09-11 21:50:25.511579130-0400 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E pid: 22377, tid: 22377, name: com.dogpack >>> com.dogpack <<< 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E uid: 10892 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr -------- 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E Cause: null pointer dereference 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x0 0000000000000000 x1 cb32b910564776d2 x2 0000000000000000 x3 0000000000000000 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x4 000000000000000e x5 0000000000000000 x6 0000007fd90f8fc0 x7 00000075d4554254 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x8 0000000000000001 x9 df042dd64ca42bde x10 0000007fd90fa2b0 x11 0000000000000001 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x12 7f416d0ba634aac3 x13 0000000000000000 x14 000000003892381c x15 0000000000000002 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x16 000000767c1b12a8 x17 000000765a527f5c x18 000000768d8c8000 x19 b4000075a0d72000 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x20 b4000075a0d72000 x21 b4000075d566ecc0 x22 0000000000000001 x23 0000007fd90fa410 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x24 00000075008fd070 x25 0000000000000001 x26 00000075008fdc70 x27 0000000000000001 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E x28 0000007fd90fa2e0 x29 0000007fd90fa3d0 2025-09-11 21:50:25.511 22377-22377 CRASH com.dogpack E lr 0000006fa515294c sp 0000007fd90fa2b0 pc 0000006fa5152950 pst 0000000060001000

I do not know what these crash means but only occurs when I embed it inside react native.

what I am doing is I'm calling Application.unload() from unity when I do not want to show unity. And a lot of times I get this crash. Is there anything you can help me out here? If you want I share my react native side code as well

khushaldogpack avatar Sep 12 '25 02:09 khushaldogpack

@azesmway one more thing what I noticed is that, when I open the unity view and then close the unity view ( meaning going back to react native), and when the react native app asks for any system level permissions like allow notifications or ask for location popup, the app crashes with the same above error null pointer dereference

khushaldogpack avatar Sep 26 '25 16:09 khushaldogpack

@azesmway Anything? Did you face any such problem?

khushaldogpack avatar Oct 01 '25 13:10 khushaldogpack