Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug [libunity.so] AmbientProbeBaker::BakeAmbientProbe(Material*, SphericalHarmonicsL2&)

Discussion in 'Editor & General Support' started by YoucefB, Jan 3, 2023.

  1. YoucefB

    YoucefB

    Joined:
    Nov 8, 2016
    Posts:
    8
    This error keeps poping up and casuing a crash on some android devices no matter what i try as a fix, please if there is a solution let me know

    Unity version: 2021.3.16f1 (LTS)


    backtrace:

    Code (CSharp):
    1. #00  pc 0x0000000000221a64  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (AmbientProbeBaker::BakeAmbientProbe(Material*, SphericalHarmonicsL2&))
    2.   #01  pc 0x0000000000740a54  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (RenderSettings::CalculateAmbientProbeFromSkybox())
    3.   #02  pc 0x0000000000337f9b  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (DynamicGI::UpdateEnvironment())
    4.   #03  pc 0x00000000006c7310  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libil2cpp.so (Environment_update_material_m8410F986FB6B9D0636D4445E14F1D32C71233B0A)
    5.   #04  pc 0x00000000006c7b58  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libil2cpp.so (Environment_Update_m62741BFF89EB84FB31286EA205ED92F7247C750E)
    6.   #05  pc 0x000000000063c53c  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**))
    7.   #06  pc 0x000000000063c398  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**))
    8.   #07  pc 0x000000000034479d  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool))
    9.   #08  pc 0x000000000034e271  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool))
    10.   #09  pc 0x0000000000357999  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (MonoBehaviour::CallUpdateMethod(int))
    11.   #10  pc 0x00000000001f1b09  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (void BaseBehaviourManager::CommonUpdate<BehaviourManager>())
    12.   #11  pc 0x000000000028bac7  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*))
    13.   #12  pc 0x000000000028bae9  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*))
    14.   #13  pc 0x000000000028bc7b  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (PlayerLoop())
    15.   #14  pc 0x00000000003a5769  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (UnityPlayerLoop())
    16.   #15  pc 0x00000000003b54bd  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*))
    17.   #16  pc 0x0000000000044033  /data/app/com.comp.appname-AzhPuwyx_n_vBj2DrPRC5g==/oat/arm/base.odex

    I think it's happening when i call:

    Code (CSharp):
    1. reflectionProbe.RenderProbe();
    2. DynamicGI.UpdateEnvironment();