Search Issue Tracker
Fixed in 2019.2.X
Fixed in 2018.3.X, 2019.1.X
Votes
4
Found in
2018.2.14f1
2018.3.0a1
Issue ID
1114571
Regression
Yes
[Android] App in CrashReporting::CrashReport::CaptureMetadata when handling a managed exception.
To reproduce:
1. Open the attached project
2. Open 201830f2 scene
3. Build a Gradle build
4. Run on Android device
Backtrace (see attached log for full info):
01-08 07:04:08.945 13053 13053 E CRASH   : backtrace:
01-08 07:04:08.948 13053 13053 E CRASH   : 	#00  pc 003c90e8  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (UnityEngine::PlatformWrapper::GetRendererAPI()+28)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#01  pc 003f4680  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (CrashReporting::CrashReport::CaptureMetadata()+852)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#02  pc 003f79f4  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (CrashReporting::CrashReporter::PopulateReportSharedData(CrashReporting::CrashReport&, bool)+40)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#03  pc 003f7598  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (CrashReporting::CrashReporter::SendReport(CrashReporting::CrashReport&, bool)+36)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#04  pc 003f74d8  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (CrashReporting::CrashReporter::HandleLog(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, LogType)+468)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#05  pc 003f71e4  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (CrashReporting::CrashReporter::OnLogCallbackStatic(DebugStringToFileData const&, LogType, bool)+252)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#06  pc 003c7800  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (CallbackArray3<DebugStringToFileData const&, LogType, bool>::Invoke(DebugStringToFileData const&, LogType, bool)+104)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#07  pc 011bef84  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&)+192)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#08  pc 011bf694  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (DebugStringToFile(DebugStringToFileData const&)+488)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#09  pc 00c18328  /data/app/com.jasmine.sample-PBoKPIEDIRWlsInKT3LH3w==/lib/arm/libunity.so (Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool)+428)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#10  pc 0000716c   ( (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_LogException (System.Exception,UnityEngine.Object) {0xbab8ccf8} + 0x44 (0xca1c7128 0xca1c71bc) [0xd986ef00 - Unity Root Domain]+29036)
01-08 07:04:08.948 13053 13053 E CRASH   : 	#11  il 0000003b  at (wrapper managed-to-native) UnityEngine.DebugLogHandler.Internal_LogException (System.Exception,UnityEngine.Object) <0x0003b>
01-08 07:04:08.948 13053 13053 E CRASH   : 	#12  il 0000002b  at UnityEngine.DebugLogHandler.LogException (System.Exception,UnityEngine.Object) [0x00014] in <004fc436a9154f7fab4df9679445af6c>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#13  il 0000004f  at UnityEngine.Logger.LogException (System.Exception,UnityEngine.Object) [0x00014] in <004fc436a9154f7fab4df9679445af6c>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#14  il 0000002f  at UnityEngine.Debug.LogException (System.Exception) [0x00008] in <004fc436a9154f7fab4df9679445af6c>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#15  il 0000014b  at UnityEngine.Advertisements.Purchasing.Initialize (IPurchasingEventSender) [0x00070] in <2a095cd4bec246c295780cb64ddeb6c7>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#16  il 0000001f  at UnityEngine.Advertisements.Android.Purchase.onInitializePurchasing () [0x00006] in <a44a31ab14ac4352bb93cc9aa9272aac>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#17  il 000000bb  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004f] in <ac823e2bb42b41bda67924a45a0173c3>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#18  il 00000043  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0x00043>
01-08 07:04:08.949 13053 13053 E CRASH   : 	#19  il 000000a3  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00038] in <ac823e2bb42b41bda67924a45a0173c3>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#20  il 00000047  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00006] in <ac823e2bb42b41bda67924a45a0173c3>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#21  il 0000016b  at UnityEngine.AndroidJavaProxy.Invoke (string,object[]) [0x00063] in <004fc436a9154f7fab4df9679445af6c>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#22  il 0000013b  at UnityEngine.AndroidJavaProxy.Invoke (string,UnityEngine.AndroidJavaObject[]) [0x0004d] in <004fc436a9154f7fab4df9679445af6c>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#23  il 000000ff  at UnityEngine._AndroidJNIHelper.InvokeJavaProxyMethod (UnityEngine.AndroidJavaProxy,intptr,intptr) [0x00066] in <004fc436a9154f7fab4df9679445af6c>:0
01-08 07:04:08.949 13053 13053 E CRASH   : 	#24  il 0000008b  at (wrapper runtime-invoke) <Module>.runtime_invoke_intptr_object_intptr_intptr (object,intptr,intptr,intptr) [0x0002c] in <004fc436a9154f7fab4df9679445af6c>:0
Actual result: Application crashes.
Expected result: It should not crash.
Not reproducible with crash reporter turned off.
Reproduced in: 2018.3.1f1; 2019.1.0a13;
Can't reproduce in : 2018.2.20f1
Can't build in 2017.4.18f1
Tested on : VLNQA00229, Oneplus OnePlus6T (ONEPLUS A6013), Android 9, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
Note: logcat attached
Comments (5)
- 
        IgorAherne Feb 29, 2020 03:27 To disable crash reporting, look for the "Crashes and Exceptions" category in Services --> Cloud Diagnostics tab. 
- 
        Zoryth Mar 08, 2019 02:08 How do I disable crashreporter? I checked all services window, I didnt find it 
- 
        Bastian_Armada Feb 21, 2019 16:07 Hi, We also are affected by this as a regression from 2018.2.5 to 2018.3.6. Is there an eta on when a fix for this is available in a 2018.x release? Or are there workarounds available? Thanks in advance. Greetings, 
 Bastian Blokland
 Armada Interactive
- 
        cihankarsak Feb 20, 2019 08:21 I have same problem. Unity 2018.3.4f1 (64-bit) 
 GooglePlayGamesPlugin-0.9.61After I imported the "GooglePlayGamesPlugin-0.9.61" plugin, I build apk. I can not start my game on Android. It crashes right after start. 
- 
        R-Apps Feb 04, 2019 15:42 I have the exact same problem in Unity 2019.3.4f1! 
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
- Previously deleted “DefaultLookDevProfile“ is present when upgrading the Editor version
- [Ubuntu] UI text and buttons are missing spaces in Unity Version Control > New Workspace window
- "Inherit attribute is not supported" warning is shown but attributes are available in VFX Graph Output and Update blocks
Resolution Note (fix version 2018.3):
Verified fixed in Version 2018.3.8f1 (fc0fe30d6d91).