Search Unity

Loading a specificscene on IOS with il2cpp causes EXC_BAD_ACCESS but works with Mono

Discussion in 'Scripting' started by zlSimon, Aug 15, 2017.

  1. zlSimon

    zlSimon

    Joined:
    Apr 11, 2013
    Posts:
    31
    My game has one scene which gets loaded at the start of the app. This works on il2cpp as well as with Mono on the device (ipad).
    However when I want to restart the game within the game with
    Code (CSharp):
    1. SceneManager.LoadSceneAsync("MainScene");
    the app crashes on the device with il2cpp.
    This is the stacktrace:
    It works on the device when I use Mono.

    I also tried to have another scene in between and load from there, as well as loading it async. Nothing works on il2cpp.

    Does anyone has an idea how to solve this?
     
  2. zlSimon

    zlSimon

    Joined:
    Apr 11, 2013
    Posts:
    31
    I still have no solution to this.
    Any help would be appreciated.
     
  3. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    374
    Ever solved this?