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

avatar image Hoeloe · Sep 10, 2013 at 09:49 PM 0
Share

@pprnts I don't think that's the issue. I have a dual screen setup, too, and I've never heard of this occurring. I doubt dual screens would be causing a 'too many threads' error, either.

avatar image meat5000 ♦ · Sep 10, 2013 at 10:52 PM 0
Share

I had this on a dodgy netbook with integrated graphics (Intel ofc...only the best).

I read somewhere that Unity 4.2 threw some kind of error when trying to render a material-less object or materials with NoName, or something random like that. Try sticking a texture on your cube in the empty project and see what happens then.

Also, check the crash logs to see exactly what was going on before the CRASH! entry

avatar image Ekator · Sep 11, 2013 at 10:47 AM 0
Share

It only shows up with a second monitor. I can run dual monitors fine with any other programs (including $$anonymous$$aya), but if I try a second screen with U3D 4.2 it crashes every time, guaranteed, always with the graphics card thread issue.

avatar image Hoeloe · Sep 11, 2013 at 10:49 AM 0
Share

Are you running Unity on the second monitor, or the first? Also what graphics card are you using?

avatar image Ekator · Sep 11, 2013 at 11:20 AM 0
Share

Laptop is development machine that has been used for Unity in the past, graphics are unfortunately Intel(R) HD Graphics 3000 integrated. :/ This happens with Unity on either screen, have tried from a cold reboot too, but no matter what with two monitors I can't make it more than three $$anonymous$$utes without the crash. The only thing you notice in Unity beforehand is everything starts to slow down (like resizing a property window, actual window is ghosting behind your movement a bit) and then boom. Does not occur on desktop machine with A$$anonymous$$D 7970 as main graphics card, but this has been the machine I've used since Unity 3.x and this is the first time I've seen this problem (4.2).

avatar image Hoeloe · Sep 11, 2013 at 11:25 AM 0
Share

Ah. I've had issues with Intel(R) HD 4000 with Unity (I actually managed to melt one with it), though not quite as you're describing. I'm really not sure what the problem would be here, it does sound like it's an issue with some of Unity 4's compatibility with the graphics card.

avatar image pojoih · Sep 24, 2013 at 11:14 AM 0
Share

I now have the same problem. Dell XPS 15 with Intel HD3000 and Geforce with Optimus. Laptop and Second $$anonymous$$onitor on Displayport, which is connected to the Intel Graphics Card functions well BUT when I'm connecting my Oculus Rift with HD$$anonymous$$I (connectet to Nvidia Card) as third monitor Unity crashes 5 seconds after start with "too many threats". Seems to have something to do with Nvidia Optimus, when I'm connecting Oculus to Displayport without anything on HD$$anonymous$$I everything is okay again.

8 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by pojoih · Sep 24, 2013 at 11:54 AM

I now have the same problem. Dell XPS 15 with Intel HD3000 and Geforce with Optimus. Laptop and Second Monitor on Displayport, which is connected to the Intel Graphics Card functions well BUT when I'm connecting my Oculus Rift with HDMI (connectet to Nvidia Card) as third monitor Unity crashes 5 seconds after start with "too many threats". Seems to have something to do with Nvidia Optimus, when I'm connecting Oculus to Displayport without anything on HDMI everything is okay 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
avatar image
0

Answer by mndcr · Oct 14, 2013 at 02:16 PM

Same problem here, however, I figured out that it only happens when running Unity on my Non-Primary Monitor. Running it on my primary Monitor works.

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 mihai9323 · Nov 10, 2013 at 01:54 PM

I have the same problem. The " gc: too many threads" error appears every time I try to use Unity with 2 monitors. It happens even on an empty project... On the other hand Unity runs perfectly when I use only one monitor. I installed the latest drivers for my graphic card, but nothing changed. I also reinstalled Unity, but the problem continues. I have a Lenovo w520 Windows 7 x64 laptop with a Nvidia Quadro 1000M graphics card.

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 mndcr · Nov 11, 2013 at 08:23 AM 0
Share

$$anonymous$$ake sure (In Windows Display Screen Settings where you setup multiple monitors) that the screen where you run Unity is the "Primary $$anonymous$$onitor" (and never run Unity on the other screen!). This perfectly solved the problem here.

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