Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

libunity.so crashing on Android, Unity 2019.3.7f1

Discussion in 'Editor & General Support' started by darkguy2008, Mar 28, 2020.

  1. darkguy2008

    darkguy2008

    Joined:
    Mar 26, 2020
    Posts:
    8
    Hey! long-time lurker, first-time poster here:

    So I'm facing this issue: I'm using VS2019 to debug my app. Sometimes it works, sometimes it just doesn't.

    Weirdly, when I attach the Unity debugger to the app running in the device, I have a breakpoint and it says it's not going to be hit (which is weird, because the app built, so how come the assemblies have desynchronized?) In any case, the app runs, and when I reach the scene where the breakpoint is set, I get this:


    3-28 00:57:44.918 4310 4374 E mono-rt : 04000000-056bc000 r-xp 00000000 08:12 131336 /data/app/com.appname-2/lib/arm/libunity.so
    03-28 00:57:44.918 4310 4374 E mono-rt : 056bd000-05713000 r-xp 016bc000 08:12 131336 /data/app/com.appname-2/lib/arm/libunity.so
    03-28 00:57:44.918 4310 4374 E mono-rt : 05713000-05730000 rwxp 01712000 08:12 131336 /data/app/com.appname-2/lib/arm/libunity.so
    03-28 00:57:44.963 4310 4328 E Unity : NullReferenceException: Object reference not set to an instance of an object
    03-28 00:57:44.963 4310 4328 E Unity : at UnityEngine.Rendering.OnDemandRendering.GetRenderFrameInterval (System.Int32& frameInterval) [0x00001] in /Users/builduser/buildslave/unity/build/Runtime/Export/Graphics/OnDemandRendering.bindings.cs:28
    03-28 00:57:44.963 4310 4328 E Unity : UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    03-28 00:57:44.963 4310 4328 E Unity : UnityEngine.DebugLogHandler:LogException(Exception, Object)
    03-28 00:57:44.963 4310 4328 E Unity : UnityEngine.Logger:LogException(Exception, Object)
    03-28 00:57:44.963 4310 4328 E Unity : UnityEngine.Debug:LogException(Exception)
    03-28 00:57:44.963 4310 4328 E Unity : UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/UnhandledExceptionHandler.bindings.cs:46)
    03-28 00:57:44.963 4310 4328 E Unity :
    03-28 00:57:44.963 4310 4328 E Unity : (Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Graphics/OnDemandRendering.bindings.cs Line: 28)
    03-28 00:57:44.963 4310 4328 E Unity :
    03-28 00:57:45.064 1452 1498 W InputDispatcher: channel '966ae22 com.appname/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
    03-28 00:57:45.064 1452 1498 E InputDispatcher: channel '966ae22 com.appname/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    03-28 00:57:45.065 1452 3287 I WindowManager: WIN DEATH: Window{966ae22 u0 com.appname/com.unity3d.player.UnityPlayerActivity}


    Unfortunately the code is propietary so I can't share it, but I hope this logcat helps to shed light to the issue. Note this is NOT my code, it's in Unity:


    at UnityEngine.Rendering.OnDemandRendering.GetRenderFrameInterval (System.Int32& frameInterval) [0x00001] in /Users/builduser/buildslave/unity/build/Runtime/Export/Graphics/OnDemandRendering.bindings.cs:28

    UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/UnhandledExceptionHandler.bindings.cs:46)

    (Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Graphics/OnDemandRendering.bindings.cs Line: 28)


    So this is something I can't fix. What should I do, downgrade? If so, how do you determine what is a STABLE version of Unity to use instead?

    Thanks!