Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by DavidJCole · Nov 11, 2019 at 03:22 AM · crashingplay mode

Every time i hit play Unity crashes

I have lost hours of work at this point to this issue and i don't know why. I'm using the latest version of unity with every package up to date and i still lose all my work to this unfix-able bug. At this point i'm constantly saving after every edit i do and making sure I have backups, but I cant play my game because if i try all that work is gone. Which means that backing up and saving, as well as UNITY ITSELF, is flat out useless.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bonfire-Boy · Nov 11, 2019 at 11:35 AM 0
Share

Have you looked at the editor log?

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by dacarrera · Nov 11, 2019 at 04:22 AM

There could be lots of things at play here. More information could help pinpoint a cause.

When did the crashing start happening? If you're doing 'big bang' programming this could be hard to know (i.e. not testing often and adding a lot of new code/functionality at a time).

How are you certain this is a Unity bug? If you've ruled out self-error, then you'd have to switch to a different version of Unity and try again (though I'm not aware of this kind of development-breaking bug atm).

Without more information, the most likely culprit is likely an infinite loop. Do you have anything in an Update() call or like a while loop that could be looping forever? The best place to start looking is in your Start(), Awake(), and Update() methods as this is where everything is kicking off especially if the crash happens right away. Start editing out method calls, adding in Debug.Log() lines anywhere you're suspicious and try to pinpoint a cause.

Dealing with crashing is super frustrating and can be very time consuming. I'd start with a bottom-up approach (lots of commenting out, and slowly adding things back until you find the crash) as opposed to working down (unless you already have some suspicions of the cause).

Good luck, and if you still have issues please add some more details with what you find and I'm sure you can reach a resolution!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheAnimatedKiddo · Oct 19, 2020 at 11:09 AM 0
Share

Hey @dacarrera! Thanks for your response. I found out that I put a for loop in my update, therefore causing the problems in play. Thanks again!

avatar image
1

Answer by TH3DUK3 · Jan 15 at 01:32 AM

Check for infinite loops

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

120 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Crashing and Odd Script Behavior Permanently Afterwards 2 Answers

Unity Crashes when Loading New Asset 1 Answer

Unity 5 project crashes on first scene load 0 Answers

Unity Editor has stopped working" in Windows 8 0 Answers

Unity (5.5.0p3) debugger crashes when stepping through code (repro available) 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges