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 WHY DEOS MY GAME CRASH MID GAME

Discussion in 'iOS and tvOS' started by vybsta26, Dec 21, 2021.

  1. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    I have built a game and (build and run) from Unity into Xcode on to my iPhone and the game works fine but mid game it crashes after I enter a door … WHY WOULD SOMTHING LIKE THIS HAPPEN? if you need more Info please let me kno
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    What does XCode say?
     
  3. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    I am definitely trying to do a full run while the debugger is active but unity is also not responding during build and the it fires this error in unity
     

    Attached Files:

  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    You don't need Unity. While running the game on the device from XCode, keep XCode connected to the device and see what its output says when it crashes.
     
  5. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    Oh SHID I already disconnected it. While doing the phone test I SOMTIMES restart the game
     
  6. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    OK. I did the test on Xcode and this happens HERES the images of Xcode and debugger and what it Fired
     

    Attached Files:

  7. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    505
    upload_2021-12-22_9-54-42.png
    upload_2021-12-22_9-54-57.png

    You ran out of RAM. 2GB+ is a lot.
     
  8. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
  9. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
  10. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
  11. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    505
    Uh... the crash is because of the RAM usage, not Disk Space.

    Basically, you need to check if you are allocating a lot of memory at once, like lots of game objects, big assets like high resolution textures and models, and big arrays or objects in your C# code.
     
  12. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    ok thank you... i was waiting for a response because my next step was going to be compressing the backgrounds on all the level and deleting assets that are not being used thats in active so the draw space isnt recognizing random tthings.. so yes you answer was confirmation thank you brother happy holidays