Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Unity build crashes when running on some devices

Discussion in 'Windows' started by helloio, Jul 21, 2022.

  1. helloio

    helloio

    Joined:
    Apr 3, 2015
    Posts:
    5
    After transferring the project from Unity 2020.3.22f1 for 2021.3.6f1 on some devices, the app crashes at the time of launch. On some devices, the problem is solved if you run the application as an administrator, but this only helps on some computers. The application uses FMOD, but when the plugin is removed, the error repeats.
    Here is the result of crash.dump debugging:

    0xC0000005
    The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

    > > UnityPlayer.dll!audio::mixer::ApplyBlendedSnapshots(FMOD::System * system, const audio::mixer::Audio Mixer Constant & constant, audio::mixer::AudioMixerMemory & memory, float deltaTime) Line 876 C++


    I tried changing the security policy, disabling the firewall and antivirus, but nothing helps.
    What else can be done to fix this error?
     

    Attached Files:

    • Logs.zip
      File size:
      85.1 KB
      Views:
      147
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,526
    Are you able to reproduce this yourself? Or have you only received crash reports from people in the wild?
     
  3. helloio

    helloio

    Joined:
    Apr 3, 2015
    Posts:
    5
    Yes, I can. I have a computer where everything starts, and where the application does not work.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,526
  5. helloio

    helloio

    Joined:
    Apr 3, 2015
    Posts:
    5
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,526
    So, this crash is happening when initializing an "AudioMixer" object in your scene. The name of this object is "GlobalEffectAudioMixer". It seems that the group connections inside this objects aren't valid.

    Now, this is clearly a bug in Unity and we should be crashing on that. However, the audio team is currently on vacation and I don't know exactly how that code works. Could you try finding this audio mixer in your project and seeing if tinkering with it helps at all?
     
  7. helloio

    helloio

    Joined:
    Apr 3, 2015
    Posts:
    5
    I checked the Audio Mixer, then reassembled the logic asset bundle and it helped! Thanks for the hint where to look for the problem!