• 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 terminates 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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Unity game crashes when build but not in editor 0 Answers

Problem| Unity3d start to crashing all the time 1 Answer

Stuck on splash screen android 0 Answers

Error: Default Scene Not Set - Please Run Wizard 1 Answer

I'm experiencing constant crashes when the multiple game windows are open. 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges