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. Dismiss Notice

Unity Crashes Unbelievably Often

Discussion in 'Editor & General Support' started by Ziberian, Aug 13, 2021.

  1. Ziberian

    Ziberian

    Joined:
    Jan 9, 2018
    Posts:
    66
    At this point I'd say about half the time I make a change, save it, and press play unity crashes. Then I go to task manager, kill Unity, and then re-open it, press play and everything works fine.

    Does anyone have any idea why this might be?

    Like if there was a problem with my scripts wouldn't Unity crash again when I open it again? I have tested this quite a lot. I can enter/leave play a bunch of times and it is not a problem. It almost always happens when I make a change (whether in a script, or change a value on a prefab etc.), save the change, and then press play again and it just freezes like that.

    If anybody had an issue like this, any help would be appreciated because this is getting unbearable :(
     
    astechnolabs likes this.
  2. altepTest

    altepTest

    Joined:
    Jul 5, 2012
    Posts:
    1,050
    hard to find help for this. check your scripts maybe you have an infinite loop in the code. unity will crash if the scripts have this bug AND is also attached to a object in the game while having variables that are visible in the properties panel
     
  3. Ziberian

    Ziberian

    Joined:
    Jan 9, 2018
    Posts:
    66
    But then wouldn't Unity crash again when I close it, and open again? Like I am not making any changes. The scene is saved, I just close it and open it again and it works fine.
     
  4. altepTest

    altepTest

    Joined:
    Jul 5, 2012
    Posts:
    1,050
    this was just what I've experienced, I don't know if it applies to you. If you don't have any other idea, try what I've suggested and maybe you get lucky and find the problem.

    now what if the crash happens when you actually select the object with the script and unity needs to show the values in the properties panel?
     
  5. astechnolabs

    astechnolabs

    Joined:
    Jul 11, 2021
    Posts:
    20
    I am facing same, but not found any script issue, even i am submitting bug to UNITY TEAM, it's also taking infinite time. below screenshot is of 10 mins. while I submit bug. if it takes this much time, then Why we send to Unity team. We have to skip and go to our game project, because we don't have that much time @Unity team.


    upload_2023-4-27_10-21-3.png