• 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 pprnts · Jul 30, 2013 at 06:58 PM · errorcrashunity 4.2fatal errorgc

gc: too many threads, crash using Unity 4.2

When I work in the editor of the new Unity 4.2, the editor crashes pretty quickly with the error gc: too many threads. I can't find a specific action that causes this nor do I know what is actually the cause of this. I've never had any problems before (actually, in 3.5 Unity would crash frequently due to memory leaks, but not nearly as often as this). My system should be powerful enough and I don't notice Unity taking up an extreme amount of memory when this happens.

I have already tried removing and reinstalling Unity, but it did not help. Working on a different project also did not help.

I searched around a bit, but it does not seem like are many people suffering from this same problem.

Any suggestions?

Additional Information: Lenovo w520 Windows 7 x64

Comment
Add comment · Show 12
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 · Jul 30, 2013 at 07:16 PM 0
Share

To be honest i've worked with a lot of different Unity versions (started with 2.6 i guess) and even on different hardware and OS and i never had an "unexpected" crash. Here at home i still have a quite old WinXP 32Bit dual core with 3GB memory and i've run all Unity versions (even at the same time) without any problems. At work i have a Win7 machine and never had a crash.

Too many threads sounds suspicious. Do you use any kind of threads in your game (explicit or implicit!)? A lot people are not aware of the fact that almost all "async" callbacks in .NET are implemented via a seperate thread.

You gave not much information about your project / system / ...

Does this also happen when you work in an "empty" project? Empty means really empty. No frameworks like NGUI, .... since they implement a lot editor features. It's difficult to track down such problems especially when you can't nail it down to a certain action / script / asset / component.

ps. I never experianced a crash due to a memory leak in Unity. Are you sure that it's not you that causes the memory leak due to misusing the API like duplicating materials meshes at edit mode, ....?

avatar image pprnts · Jul 30, 2013 at 07:58 PM 0
Share

Yes, I can confirm that it happens in an empty project. I created a new project, added only a cube GameObject, moved the x-position slider back and forth a few times, and then I got the error and Unity shutdown. The editor was still in scene view, I did not press Play or anything, so I am pretty sure it does not have anything to with my own code/projects. This of course, leaves me clueless, since I did not find a solution yet. I will update my graphics card drivers now, because you never know. (Edit: That didn't help) Thanks for your comment.

avatar image Ekator · Aug 12, 2013 at 05:22 PM 0
Share

I am facing the same scenario, except Win8 x64. It's a development machine so RA$$anonymous$$/CPU/GPU are all very up to date and I've never experienced this issue on a build before 4.2. Right now 4.2 is unusable on my system because it'll crash within two $$anonymous$$utes of being launched. Any info would help greatly if someone figures this out.

avatar image Benproductions1 · Aug 13, 2013 at 04:27 AM 0
Share

Report it as a bug

avatar image pprnts · Sep 10, 2013 at 09:41 PM 0
Share

It seems very much like the problem exists only with a second monitor attached.

Show more comments

8 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Christoc · Dec 17, 2014 at 10:06 PM

The problem goes away if you are running Unity on the integrated graphics card instead of the dedicated GPU - but of course you may want that additional graphics power!

Dell XPS L502x with Geforce GT 540M GPU

Comment
Add comment · 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
0

Answer by ccharles · Jul 06, 2014 at 12:26 AM

Having same problem. Empty project crashing as soon as you try and do anything when running two monitors. Works fine of either monitor as long as its the only one enabled.

Running GeForce 650M

Comment
Add comment · 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
0

Answer by spot1984 · Mar 18, 2014 at 07:59 PM

I'm getting this too. Fast. I have 2 monitors plus the laptop display, always happens on the monitors :(

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 pojoih · Mar 25, 2014 at 06:49 PM 0
Share

still not fixed on my Dell XPS 15! Running Unity 4.3.2.

Internal Display + Oculus Rift on HD$$anonymous$$I (Geforce 540$$anonymous$$ with Optimus) - Crash after a few seconds Internal Display + Oculus Rift on $$anonymous$$ini Displayport (Intel internal Graphics) - everything works fine

Please do something!! :(

avatar image
0

Answer by tyoungjr · Jan 07, 2014 at 03:15 AM

Yep yep same problem here. Running a GeForce GT 555m, I'm connecting with an HDMI to an LED TV.

Comment
Add comment · 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
0

Answer by stealann · Nov 17, 2013 at 03:09 AM

In my case, I use Quadro 2000M as GC and double-screened with a cintiq screen. Even I run Unity on the primary screen which I set it to the laptop screen. The error happens continuously when I found that in "Set PhysX Configuration" in NVidia Control Panel, the quadro seems is in charge of the attended screen while the integrated graphics card is in charge of the laptop screen. So after I set the attend screen the primary one and run unity on that, the error never happened again!

Comment
Add comment · 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
  • 1
  • 2
  • ›

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

28 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

Related Questions

Unity crashes when opening a project. 1 Answer

Fatal Error, Unity crashes when opening project. 0 Answers

Unity Crashes on Startup After Importing Old .unitypackage 3 Answers

Fatal Error in GC 0 Answers

Unity3d Crash error (Mono.dll) with NetworkView 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