Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android crash when using sentry-unity #5

Closed
JustinFincher opened this issue Nov 3, 2018 · 2 comments
Closed

Android crash when using sentry-unity #5

JustinFincher opened this issue Nov 3, 2018 · 2 comments
Labels
Bug Something isn't working

Comments

@JustinFincher
Copy link

Hi, I actually don't know if this is related but after switching to Sentry dotnet SDK the crash no longer appears so I think maybe I should report this:
My unity app randomly crashes when I have sentry-unity in my app and I can see logs on Unity Performance Reporting dashboard:

Native StackTrace:

Thread 0 (crashed)
0   [vdso]                             0x00000072dc3d868c <system symbols missing> 
1   /system/lib64/libc.so              0x00000072db064ab8 <system symbols missing> 
2   /system/lib64/libart.so            0x00000072567d0d00 <system symbols missing> 
3   /system/lib64/libbase.so           0x00000072d7652d2c <system symbols missing> 
4   /system/lib64/libart.so            0x00000072565a77e4 <system symbols missing> 
5   /system/lib64/libart.so            0x00000072566556c0 <system symbols missing> 
6   /system/lib64/libart.so            0x0000007256801814 <system symbols missing> 
7   /system/lib64/libart.so            0x00000072567ca278 <system symbols missing> 
8   /system/lib64/libart.so            0x00000072567ca068 <system symbols missing> 
9   /system/lib64/libart.so            0x00000072566c0884 <system symbols missing> 
10  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a8ae880 AndroidJNIBindingsHelpers::CallStaticObjectMethod(void*, void*, dynamic_array<jvalue, 0ul> const&) 
11  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a8b32e0 AndroidJNI_CUSTOM_CallStaticObjectMethod(void*, void*, Il2CppArray*) 
12  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239909328 AndroidJNISafe_CallStaticObjectMethod_m33C8870BC80AB4BF424164063F0329FCED7766AB 
13  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x000000723990d408 AndroidReflection_GetMethodMember_m430592F5B8E03F3CBA18022A63BA266A75E73485 
14  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239d3023c AndroidJNIHelper_GetMethodID_m12B12EB5027675EE985A9FE9634079BDA79709AB 
15  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239b2ea00 AndroidJavaObject__CallStatic_TisRuntimeObject_mC963E0C614C56ACC8AED4DCF52D0D5BAEB800B6E_gshared 
16  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x000000723990aadc AndroidJavaClass__AndroidJavaClass_m0C6D4C8A4A88BFE47C79811D2E10D6C1CF115BD6 
17  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239343f50 Context__ctor_m333F127F47F787C6111AAE206DB1023E5706721F 
18  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239344b4c SentryEvent__ctor_m5AC32D824A064844D50AE772D8295225D163FA99 
19  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239344c14 SentryExceptionEvent__ctor_mB706E68BC3A7A2D6EA7B21768F22E99EF97C71CB 
20  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x00000072393459d0 SentrySdk_DoSendException_mB38AB64AF9221BEEFE18C00D1423F1A239FA049D 
21  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239345860 SentrySdk_ScheduleException_m570C22E21EC14B2EA44D696945F513BC467A9CE9 
22  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239345ad8 SentrySdk_HandleLogCallback_m739D9D39A2481D9D71647FAFDA242B407CF3D9EF 
23  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x000000723990f21c LogCallback_Invoke_mCB0C38C44CBF8BBE88690BE6C0382011C5D5B61F 
24  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x000000723914a22c RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject_RuntimeObject_Int32_t585191389E07734F19F3156FF88FB3EF4800D102_SByte_t9070AEA2966184235653CB9B4D33B149CDA831DF(void (*)(), MethodInfo const*, void*, void**) 
25  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libil2cpp.so0x0000007239d5aca4 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) 
26  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a92a07c scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) 
27  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a91d4a0 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) 
28  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a932614 Application_Bindings::LogCallbackImplementation(DebugStringToFileData const&, LogType, bool) 
29  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a7568f8 CallbackArray3<DebugStringToFileData const&, LogType, bool>::Invoke(DebugStringToFileData const&, LogType, bool) 
30  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a756588 DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&) 
31  /data/app/com.JustZht.Skyline-LdwBGO03w5t0ElzjV4MUlw==/lib/arm64/libunity.so0x000000723a756c20 DebugStringToFile(DebugStringToFileData const&) 

As the stacktrace has some entries about SentrySDK and AndroidJNI, I wonder if there is an unhandled call from AndroidJavaClass.CallStatic in sentry-unity.

My environment:
OS: Android 8.0 / 9.0
Device: Pixel 1 / Essential Phone
Unity Version: 2018.3.0b8
Scripting Runtime: .Net 4.x
Backend: IL2CPP
Compatibility Level: .Net 4.x
Strip Engine Code: yes

Hope this information helps :-)

@bruno-garcia bruno-garcia added the Bug Something isn't working label Nov 5, 2018
@bruno-garcia
Copy link
Member

@JustinFincher thanks for reporting this. We'll investigate this issue.

The .NET SDK is a totally different SDK, code-wise. I've briefly tested it with Unity (Android, iOS, Windows and macOS) but we haven't (yet?) packaged it up since it requires Unity 2018.1 where this package requires 5.6 only.

@bruno-garcia
Copy link
Member

bruno-garcia commented Nov 7, 2018

@JustinFincher I removed that call to the Android API.
On my tests it worked properly but if in the wild it seems brittle, I rather get rid of it and not report the device arch in this case.

0.0.3 is out with the fix.

Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants