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

Playstore error libil2cpp.so (il2cpp::os::Image::GetELFImageBuildID()) #1380

Closed
oddgames-david opened this issue Jun 19, 2023 · 6 comments
Closed
Labels
Bug Something isn't working Waiting for: Product Owner

Comments

@oddgames-david
Copy link

oddgames-david commented Jun 19, 2023

Environment

SaaS
1.41
Git

Which version of Unity?

2022.3.0f1

Steps to Reproduce

Unsure on how to reproduce just receiving these on the play store

 #00  pc 0x000000000110f08c  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (il2cpp::os::Image::GetELFImageBuildID())
  #01  pc 0x000000000116abc0  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (il2cpp_native_stack_trace+132)
  #02  pc 0x0000000003837b60  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (SentryUnityInfo_Il2CppNativeStackTraceShim_mE59D61997E0AF6FAE8EDF2B3CE436AFBC5460080)
  #03  pc 0x0000000001095064  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (Il2CppNativeStackTrace_Invoke_m2EE477F8ED6BD45D1130CCE577984DEA6CF80A01_OpenStatic(Il2CppNativeStackTrace_t9330D3087FB73D515783A139122E588CE5C92C92*, int, int*, int*, String_t**, String_t**, MethodInfo const*))
  #04  pc 0x0000000003e91b0c  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (UnityIl2CppEventExceptionProcessor_GetNativeStackTrace_mBB0ED1998D356AFACF7660200CC22DAC216112E2)
  #05  pc 0x0000000003e9081c  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (UnityIl2CppEventExceptionProcessor_Process_m5FA4F24DA0C01E2EB446EDB1292FD66FB188C407)
  #06  pc 0x0000000003d4d718  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (SentryClient_DoSendEvent_m9741507AB2309CC5A5D884756AF5F1F31202E44C)
  #07  pc 0x0000000003d4cc5c  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (SentryClient_CaptureEvent_mC0AD74C6F6C740860341C0E06A976FFEC71832E0)
  #08  pc 0x0000000003ef2710  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (Hub_Sentry_Internal_IHubEx_CaptureEventInternal_mA56BE6410AA18C60B03AB60399855C2FDD0C42BC)
  #09  pc 0x0000000003d40578  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (HubExtensions_CaptureEventInternal_mAC6EA5676F00A81345C23FFF55B962AAFED47C69)
  #10  pc 0x0000000003d4fb98  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (SentryClientExtensions_CaptureEventInternal_m4DB9DBAA2630BA05029DD73764DD7792FDAFAFE0)
  #11  pc 0x0000000003d4fac0  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (SentryClientExtensions_CaptureException_m86DE8108C63794599A74AF2D508F1B932A6A7835)
  #12  pc 0x0000000003eaa064  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (UnityLogHandlerIntegration_CaptureException_mD5B88C4A6E3FCF9C87C1D9BD062A327E1E7E1DE3)
  #13  pc 0x0000000003ea9bf0  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (UnityLogHandlerIntegration_LogException_m23CB511805A3C839541A9868BC1FD148CF9A9E47)
  #14  pc 0x0000000004696440  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (Debug_CallOverridenDebugHandler_mB78E42B7792823F50830A325BB1CF50C45FEAA8B)
  #15  pc 0x0000000000fd09b4  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (RuntimeInvoker_FalseByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**, void*))
  #16  pc 0x000000000117f184  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**))
  #17  pc 0x000000000117f028  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**))
  #18  pc 0x0000000000506161  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool))
  #19  pc 0x00000000005109bd  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool))
  #20  pc 0x0000000000512d3f  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (bool ScriptingInvocation::Invoke<bool>(ScriptingExceptionPtr*, bool))
  #21  pc 0x000000000058bbdb  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (Scripting::UnityEngine::DebugProxy::CallOverridenDebugHandler(ScriptingObjectPtr, Scripting::UnityEngine::ObjectProxy, ScriptingExceptionPtr*))
  #22  pc 0x000000000051124b  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool))
  #23  pc 0x00000000005109e3  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool))
  #24  pc 0x000000000051a38d  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (MonoBehaviour::CallUpdateMethod(int))
  #25  pc 0x000000000039cdeb  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (void BaseBehaviourManager::CommonUpdate<FixedBehaviourManager>())
  #26  pc 0x00000000004381e7  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*))
  #27  pc 0x0000000000438209  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*))
  #28  pc 0x00000000004383eb  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (PlayerLoop())
  #29  pc 0x0000000000565333  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (UnityPlayerLoop())
  #30  pc 0x0000000000578a17  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*))
  #31  pc 0x0000000000099ffb  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/oat/arm/base.odex (art_jni_trampoline+74)
  #32  pc 0x000000000200c767  /memfd:jit-cache (com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender+38)
  #33  pc 0x000000000010117b  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/oat/arm/base.odex (com.unity3d.player.UnityPlayer$C$a.handleMessage+698)
  #34  pc 0x000000000057740f  /system/framework/arm/boot-framework.oat (android.os.Handler.dispatchMessage+110)
  #35  pc 0x000000000057a02d  /system/framework/arm/boot-framework.oat (android.os.Looper.loop+1908)
  #36  pc 0x00000000000d45d5  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68)
  #37  pc 0x00000000004fb0f1  /apex/com.android.art/lib/libart.so (art_quick_invoke_static_stub+276)
  #38  pc 0x000000000012ccb1  /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160)
  #39  pc 0x000000000024109f  /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+250)
  #40  pc 0x00000000002395a7  /apex/com.android.art/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+746)
  #41  pc 0x00000000004ef0ff  /apex/com.android.art/lib/libart.so (MterpInvokeStatic+478)
  #42  pc 0x00000000000cf194  /apex/com.android.art/lib/libart.so (mterp_op_invoke_static+20)
  #43  pc 0x000000000051fc1c  /data/app/~~aLxjYqlucMJWHprwiOu94Q==/au.com.oddgames.monstertruckdestruction-oAYRX_53CMsdBl3zrhPmSA==/oat/arm/base.vdex (com.unity3d.player.UnityPlayer$C.run+48)
  #44  pc 0x000000000023235f  /apex/com.android.art/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.7763382368730841287)+250)
  #45  pc 0x0000000000238d13  /apex/com.android.art/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+114)
  #46  pc 0x00000000004ddcf9  /apex/com.android.art/lib/libart.so (artQuickToInterpreterBridge+684)
  #47  pc 0x00000000000d9161  /apex/com.android.art/lib/libart.so (art_quick_to_interpreter_bridge+32)
  #48  pc 0x00000000000d45d5  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68)
  #49  pc 0x00000000004fafc1  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+280)
  #50  pc 0x000000000012cc9f  /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+142)
  #51  pc 0x0000000000406eb1  /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+372)
  #52  pc 0x0000000000406fbf  /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+42)
  #53  pc 0x000000000044945f  /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void*)+1090)
  #54  pc 0x00000000000aadbb  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)
  #55  pc 0x0000000000063bcd  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
@bitsandfoxes
Copy link
Contributor

Thanks for raising this. Looks like something changed with the IL2CPP backend. I will look into this.

@bitsandfoxes bitsandfoxes added Bug Something isn't working and removed Status: Untriaged labels Jun 19, 2023
@oddgames-david
Copy link
Author

Any update on this? I disabled IL2CPP thinking it would fix it but my crashes are now over 1%, i have to remove sentry entirely.

@bitsandfoxes
Copy link
Contributor

Hey, I tried reproducing this without luck so far. I found virtually no difference between the IL2CPP backend of 2021.3.26f1 and 2022.3.0f1.
Disabling IL2CPP takes care of this for sure. The whole #ifdef in SentryInitialization.cs ensures that if you're not on IL2CPP, that part does not even get compiled with your game.
Is there any error message associated with this callstack?

@oddgames-david
Copy link
Author

Don't have access to any other info other than the many stack traces that all look similar. I've removed sentry from our latest build so I'll see how that goes.

This is the reports and our sentry options asset that is on the build where I disabled IL2CPP.

image

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 0}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: -668357930, guid: 43ec428a58422470fa764bdba9d9bc19, type: 3}
  m_Name: SentryOptions
  m_EditorClassIdentifier: 
  <Enabled>k__BackingField: 1
  <Dsn>k__BackingField: XXX
  <CaptureInEditor>k__BackingField: 0
  <EnableLogDebouncing>k__BackingField: 1
  <DebounceTimeLog>k__BackingField: 1000
  <DebounceTimeWarning>k__BackingField: 1000
  <DebounceTimeError>k__BackingField: 1000
  <TracesSampleRate>k__BackingField: 0
  <AutoStartupTraces>k__BackingField: 1
  <AutoSceneLoadTraces>k__BackingField: 1
  <AutoAwakeTraces>k__BackingField: 0
  <AutoSessionTracking>k__BackingField: 1
  <AutoSessionTrackingInterval>k__BackingField: 30000
  <ReleaseOverride>k__BackingField: 
  <EnvironmentOverride>k__BackingField: 
  <AttachStacktrace>k__BackingField: 0
  <AttachScreenshot>k__BackingField: 1
  <ScreenshotQuality>k__BackingField: 3
  <ScreenshotCompression>k__BackingField: 75
  <AttachViewHierarchy>k__BackingField: 1
  <MaxViewHierarchyRootObjects>k__BackingField: 100
  <MaxViewHierarchyObjectChildCount>k__BackingField: 20
  <MaxViewHierarchyDepth>k__BackingField: 10
  <BreadcrumbsForLogs>k__BackingField: 1
  <BreadcrumbsForWarnings>k__BackingField: 1
  <BreadcrumbsForAsserts>k__BackingField: 1
  <BreadcrumbsForErrors>k__BackingField: 1
  <BreadcrumbsForExceptions>k__BackingField: 1
  <MaxBreadcrumbs>k__BackingField: 100
  <ReportAssembliesMode>k__BackingField: 1
  <SendDefaultPii>k__BackingField: 0
  <IsEnvironmentUser>k__BackingField: 0
  <EnableOfflineCaching>k__BackingField: 1
  <MaxCacheItems>k__BackingField: 30
  <InitCacheFlushTimeout>k__BackingField: 0
  <SampleRate>k__BackingField: 1
  <ShutdownTimeout>k__BackingField: 2000
  <MaxQueueItems>k__BackingField: 30
  <AnrDetectionEnabled>k__BackingField: 0
  <AnrTimeout>k__BackingField: 5000
  <FilterBadGatewayExceptions>k__BackingField: 1
  <FilterWebExceptions>k__BackingField: 1
  <FilterSocketExceptions>k__BackingField: 1
  <IosNativeSupportEnabled>k__BackingField: 1
  <AndroidNativeSupportEnabled>k__BackingField: 1
  <WindowsNativeSupportEnabled>k__BackingField: 1
  <MacosNativeSupportEnabled>k__BackingField: 1
  <LinuxNativeSupportEnabled>k__BackingField: 1
  <Il2CppLineNumberSupportEnabled>k__BackingField: 0
  <RuntimeOptionsConfiguration>k__BackingField: {fileID: 11400000, guid: b5a6b19c1df58f94ab1c3fdb13e900c5,
    type: 2}
  <BuildTimeOptionsConfiguration>k__BackingField: {fileID: 0}
  <Debug>k__BackingField: 1
  <DebugOnlyInEditor>k__BackingField: 1
  <DiagnosticLevel>k__BackingField: 2

@oddgames-david
Copy link
Author

You can close this issue, removing sentry didn't fix it, still get the same errors.

@bitsandfoxes
Copy link
Contributor

I'm sad to see this closed without a resolution. Please, let me know if you find out more. I'd be more than happy to revisit and fix this.

@github-project-automation github-project-automation bot moved this from Needs Investigation to Done in Mobile & Cross Platform SDK Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Waiting for: Product Owner
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants