Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

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:
    253
    Ever solved this?
     
unityunity