Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 azupko · Feb 09, 2010 at 05:13 PM · erroreditorbugcrash

Stop Editor From Crashing

Is there any possible way to stop the editor from crashing anytime it receives an exception? It would be useful to just have the "game" crash - instead of having everything go down in flames. It makes debugging very difficult, since these errors are only thrown in unity and not in other test environments. Any ideas would be very helpful.

Comment
Add comment · Show 4
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 Nicolaj Schweitz · Feb 09, 2010 at 06:56 PM 1
Share

can you be a bit more specific on what kind of exceptions you are getting? Perhaps even throw in a few lines of stacktrace?

avatar image Nicolaj Schweitz · Feb 15, 2010 at 09:35 AM 2
Share

if you're in doubt how to find a stacktrace, look at this answer: http://answers.unity3d.com/questions/2252/how-can-i-find-editor-log-file. If Unity crashes, the Editor.log ends with a Stacktrace followed by some lines starting with "at". The stacktrace can help identify a problem in some cases.

avatar image yoyo · Mar 03, 2011 at 09:01 PM 1
Share

You can also display a stack trace from your own code by using System.Environment.StackTrace (doesn't help on a crash, but might help in the process of narrowing down where the crash is occurring.)

avatar image sp00ks · Aug 25, 2011 at 12:27 PM 0
Share

@Nicolaj I noticed your link is now dead, that is the problem with linking to older questions/answer, they don't stay around for as long as the newer question

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Wolfram · Jun 19, 2012 at 11:22 AM

Do you get this message in the Console after starting Unity? If so, do what it suggests!

 Your 64 bit Windows installation is missing an imporant service pack patch.
 Please apply http://support.microsoft.com/kb/976038 to ensure stability.  
Comment
Add comment · Show 3 · 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 Bunny83 · Jun 19, 2012 at 12:03 PM 0
Share

No, i guess he's "producing" an exception that isn't handled in his game and that ter$$anonymous$$ates the Unity editor when you test in the editor.

Usually all exceptions related to the Unity API are caught by Unity itself and displaying an error in the console. I guess he's using something from the .NET / $$anonymous$$ono library that is quite sensitive against misuse like: Threads, FileIO, Networking / Sockets, other OS native code related things.

There is a small chance of a bug in Unity, but most the time it's a fault by the user ;)

Btw, this question is 2 years old and the OP wasn't online since then ... ^^

avatar image Wolfram · Jun 19, 2012 at 12:13 PM 0
Share

Umh, must have clicked it in the "Related Questions" suggestions and then answered by instinct, sorry. It's confusing (but obviously intentional), that these usually refer to ancient questions.

avatar image Bunny83 · Jun 19, 2012 at 06:10 PM 0
Share

:) Well, unanswered, buried questions also deserve an answer ;) Otherwise it would make more sense to delete the whole question...

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Updating bug, script crash, cant compile script 0 Answers

Unity Editor silently crashes straight away no error logs 1 Answer

Unity 2018.2.0f2 Crashing to Desktop with "Object is already loaded" errors. 2 Answers

After Unity Crash Camera RenderTexture 0 Alpha 0 Answers

Unity game crashes when build but not in editor 0 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