Unity 4.0.1f2 and avast 8.0.1482 = "getThreadContextfailed" error

Hi,

Since I upgraded avast to v.8, my unity projects crash randomly with the following error :

Fatal error in CG : “getThreadContextfailed”

The problem is that even the build version crash. How can I fix it ? Without uninstalling any antivirus of course.

Happening for me too. Same combination of tools. Ever since I upgraded Avast. Only happens in Unity.
Very annoying. I tried adding the Unity Program folder to my Global Exclusions. This is listed as having worked for other anti virus programs. It is still happening for me. There might be another setting that needs to be changed.

Yep, same here - this is a very annoying bug and has caused me to lose work several times now.
I tried adding unity folder + the folder of the project I’m working on, I don’t want to uninstall Avast but looks like I might have to if I can’t find a workaround.

Hey guys,

Please file a bug to us and I’ll take a look.

Thanks,
Chris

The Bug thingy wants me to upload my 1GB project, which I’ve been avoiding so far.
I’ll make something more compact and see if I can make it happen in a reasonable manner.
Until then, I tried the same thing as RGravity, and it still crashes. Even added the project folder that I’m working on to exclusions to give that a shot.

Report submitted with a very tiny bit of code.

Yeah this one is nasty - now it crashes a lot
Thanks for submitting akeplinger, hopefully it won’t be too long for a fix.

Can’t work in Unity. THinking that I need to uninstall avast until it’s fixed.

Uninstalling Avast fix it (whitelisting apps or disabling agents doesn’t) . But the problem is that even the windows builds of our applications crash with the same error. It is really problematic for our users.
When I was googling the error, I saw that Unity has already had this issue with other antivirus like Kaspersky or ESET (nod32).
I hope this issue will be fix soon and that there are no other issues with any antivirus in general. I can’t tell the users : if you want to use my game/application, uninstall any antivirus on your computer or install just this one because for now it works.
This is a major issue in my opinion and like RGravity said, hopefully the Unity great team will take this problem seriously and find a solution asap.
Thank you CreativeChris to keep us informed on this fix and possibly on the origin of the problem (network, yield, multi-threaded, loading code…)
Best Regards

Same problem here - yesterday I’ve updated Avast and now I have this error in random places (even in the build). I cannot even replicate it - it pops wherever it wants.

I guess it’s the same bug that was with ESET or Kaspersky.

Same situation for me. Updated Avast to version 8.0.1482, and now working with Unity version 4.0.0f7 has become this terrible game: I could “die” any time…

I tried setting file path exclusions + restarting the computer, without success. I certainly won’t uninstall Avast! for this! so what to do?

I went back to Unity 3.5.7 just to check, if problem exists with the older version - and it is there too.

Like Spis said, we cannot tell the users to uninstall antyvirus - so there is two ways: Unity will have to fix/change something, or Avast.

Hello,

Disable Avast agents for 10 min allowed me to run Unity correctly when I launch the game test. (No “GetThreadContextfailed”)
After 10 min, the agents Avast restarts. Unity does not encounter problems at this time.

No need to uninstall avast to continue to develop, but there really is a conflict with Avast agents (?).
I have not been able to test with a build if avast conflicted.

Yes, a fix would be welcome, thank you to the Unity team and good luck.

Sorry for my english, I’m french.

see you.

I posted in another thread that I had an update from Avast for Google Chrome - and after I installed it the problem hasn’t happened since, it could be a coincidence but I don’t think so as it was happening very frequently before.

Hey all,

Just to let you know, we received the bug submitted by @akeplinger I believe, and this will be investigated ASAP.

I’ll hopefully be able to update you guys here also ASAP.

Thanks,
Chris

I’ve tried disabling Avast agents like Shirown said, but it didn’t help at all. I also have added Unity folder to the exceptions in Avast - it doesn’t solve the problem, but frequency of error is smaller (weird).

I can say, that this error happens on 64-bit operating systems. Those in my team that have 32-bit Windows 7 don’t have this error (version of Avast is everywhere the same). Can someone else confirm this?

Some information that may help to understand the differences in bug (?)

Unity3D => Version 4.0.0f7
Avast Free =>Version 8.0.1482 - Version BDD 130307-0
Win7 Pro 64Bit SP1

The bug is still not reappeared since. So I can not send report now. sorry.

But I also think a coincidence about the bug and agents Avast

I posted the issue to the Avast Forum and was told to update to 8.0.1483, but Unity still crashes with the error.

Yeah I spoke too soon too, just got the error again, not doing anything special with either Unity or Avast, just working as usual - what the hell is causing this?

Same problem here. New Avast seems to crash Unity randomly.

I just put the Program Files AND the Documents Folder into global exclusions and it hasn’t crashed since. Although, this could be due to the randomness of the crashes.