Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. 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 Render Skybox crash on iOS and OSX

Discussion in 'iOS and tvOS' started by s_pikhota, Sep 25, 2023.

  1. s_pikhota

    s_pikhota

    Joined:
    Jun 30, 2023
    Posts:
    2
    Hi! After upgrading to 2023.1.11f1 from 2022 we started getting consistent crashes on apple platforms with the following stack trace:

    upload_2023-9-25_13-26-49.png

    Crashes usually happen within the first minute of the gameplay, without any particular steps to reproduce. I tried to disable Multithreaded rending, but that only made things worse, that is the game started crashing even before the main gameplay started.

    Does anyone also have this issue? Any workarounds?
     
    ETGgames likes this.
  2. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    398
    I have the same issue! It happens on every 2023 version so far, bur not on 2022.
    We use unity build automation.

    I have no workaround so far :(
     
    ETGgames and s_pikhota like this.
  3. XEDORA

    XEDORA

    Joined:
    Jul 8, 2015
    Posts:
    12
    I have the same issue with 2023.1.16f1. Couldn't find any workaround too.
     
    ETGgames likes this.
  4. ETGgames

    ETGgames

    Joined:
    Jul 10, 2015
    Posts:
    104
  5. s_pikhota

    s_pikhota

    Joined:
    Jun 30, 2023
    Posts:
    2
    Yes, disabling multithreaded rendering also crashes immediately in my case. We will try to reproduce it in the test project and file a bug report to Unity, since they don't seem to be aware of this.
     
  6. ETGgames

    ETGgames

    Joined:
    Jul 10, 2015
    Posts:
    104
    This would be incredibly useful, since i'm struggling to make a repro project as it's quite hard since it happens at random times. Please if possible share your repro project with us so we can test it ourselves and file our own bug report to hopefully speed up the process
     
    s_pikhota likes this.
  7. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    398
    When I disable "mulithreaded rendering", it does not crash anymore!
    Tested with Unity 2023.1.10

    I just realized that I made the build with the wrong unity Version (aka 2022.3.10).

    (I use unity build automation and made a configuration error. Very strange that it did not crash since I used 2023.1. in the editor and created addressables there. so the build was with 2022.3 and used addressables made with 2023.1)
     
    Last edited: Nov 2, 2023
  8. ETGgames

    ETGgames

    Joined:
    Jul 10, 2015
    Posts:
    104
    Did you manage to create a repro in the end?
     
  9. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    398
    I just realized that I made the build with the wrong unity Version (aka 2022.3.).

    (I use unity build automation and made a configuration error. Very strange that it did not crash since I used 2023.1. in the editor and created addressables there. so the build was with 2022.3 and used addressables made with 2023.1)
     
  10. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    398
    I made another Test:
    - mulithreaded rendering enabled
    - Unity 2023.1.17
    - Unity Build Automation set to Xcode 14.2.0

    No Crash!
    I think the use of Xcode 14.2.0 did the trick
     
  11. XEDORA

    XEDORA

    Joined:
    Jul 8, 2015
    Posts:
    12
    I tried 2023.2.0b14 and didn't have this issue anymore. 2023.2 beta runtime looks much more stable than 2023.1 for me. It's weird.

    I couldn't understand the nature of this issue, thus couldn't reproduce it with a smaller project. It's more likely to happen while main camera is moving on my project. I'm using Cinemachine for handling the camera movements, but I'm not sure if it's related to this issue. The only thing that I'm sure of is that this happens on iPhone 11 and earlier devices. iPhone 12 and newer ones were fine.
     
    Last edited: Nov 2, 2023
    manuelgoellnitz and ETGgames like this.
  12. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    398
    Fixed some things in my project and made another build. Now it is crashing again after some minutes (not related to the fixes).
    Trying Xcode 14.3. now.
     
    Last edited: Nov 3, 2023
  13. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    398
    I can confirm this. The beta seems more stable.
    I also use Cinemachine for camera movements.
    The Ipad I test the app with is also relative old (6th gen)