Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
MarcoGuy1

Unity crashes when I hit play!

Question

I installed version 5.5, 5.6, 5.6.1, 5.6.2, and it still keeps crashing!

I need help, PLEASE

If this continues, I won't be able to work and finish my game :(

Just at least give me some sort of idea!

 

Thanks,

VitalFight Dev

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 1

Does it crash even with an empty scene? If not, you have a script attached to some object in the scene your trying to load/play that's crashing it. I.e never ending while loops, for(,,) loop, recursive function that never ends, etc...

 

if it does crash with an empty scene, I'm afraid it's most likely a hardware issue, not software

  • Like 1

Share this post


Link to post
Share on other sites

  • 0
Please login or register to see this quote.

The moment I read the thread title I automatically whispered to myself: "The infinite loops have struck again..." lmao

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Does it crash every time you hit the play button? 50% of the time? I would take a look at your Unity log after it crashes and scroll all the way down. This should be able to tell you more information.

 

The files are located at:

Please login or register to see this code.

 

Share this post


Link to post
Share on other sites
  • 0

Here comes the problem with downloaded scripts right?

I'm sure you hit play every time you added new scripts, so it is possibly the last new script?

Share this post


Link to post
Share on other sites
  • 0

turn off gameobjects in the scene that is using one of your scripts. Then turn one on and press play. If it works, repeat the process with another gameobject until unity crashes. Then you know which object has a script attached that's causing it. Then you can turn off all the components on that object and turn one on at a time until it crashes and that's the script that's doing it. Then you have to scour the script and find whatever it is that's causing it.

 

if it's was working before and it didn't crash til you changed something, as Roland stated, whatever you added just before it started crashing is the code that's doing it.

 

things that cause such behavior are:

 

while(true)

{

//not putting a yield statement

//or the yield is never reached

}

 

for(,,)

{

//never putting a break statement

//or the break statement is never reached

}

 

function Recursive()

{

//Using recursive functions

Recursive();

 

//Without eventually returning to close all the calls

}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...