Assertion error when importing plugins and packages.

Beginning with 5.6 betas, I noticed whenever I imported some plugin or assets from the asset store I have a compile error and the asset doesn’t load.
This is what I have:

  • Assertion at …\mono\mini\unwind.c:620, condition `cfa_reg != -1’ not met

Just one line, no info on any line, column or file. Just this, the asset files are there but it’s nor loaded.
This happened when importing the Standard Assets, post-pocess stack, Anima2D, AssetBundle Graph tool and all other asset store packages.

I filed a bug (Case 875075) but I want to make sure it is reproducible and if others have it too.

Bump

EDIT: this happens whenever I create a C# script actually.
The editor log is attached.

2949121–218603–Editor.txt (97.9 KB)

THIS BUG IS SO ANNOYING! i can’t continue making my game due to this it started to happen to me only when i started using 5.6.x betas!

Could you please file a bug report with a reproduction case as well and reply with the case #? More information on the matter will help resolving it faster.

I filed a bug (Case 894721) Consistent mono compiler assertion error with all C# scripts
And there is also (Case 875075) that I’m following with Audrius from QA Team from time to time.
But both cases cannot be found on fogbugz for some reason (No case was found associated with the ticket).

  1. What happened

Create an empty project, add a C# script, assertion error occurs apparently in Mono and file is unable to be compiled and can’t enter playmode or clear the error from the console until I delete all C# files.
This only happens with C# scripts and not with Unity scripts.
This has been happening since the first beta of Unity 5.6, it’s completely absent from previous versions.

  1. How we can reproduce it using the example you attached

Apparently this depends on the user and machine, for me this occurs consistently across projects, I tried both 32 and 64 bit editors, safe mode, with administrator privilege, reinstalled many times, replaced script with an empty class, without success.

Windows 10 14393.0 64 bit, all betas of 5.6 including release candidate.

@WinterboltGames I bumped into your entry at Unity Answers, Error : * Assertion at ..\mono\mini\unwind.c:616, condition `cfa_reg != -1' not met - Questions & Answers - Unity Discussions
Please PM me to cross compare our systems.
This is a serious bug.

1 Like

okay my pc specs. is

NVIDIA GTX 1080
128 GB Of Ram
4 Teras of storage
Windows 10, version 1607 64 Bit

and also i downgraded to 5.5.0f3 which works better with out any bugs but still hopping to use the new features in 5.6.x releases!

D

Yes 5.5 works fine, do you have Visual Studio installed?

No i use visual studio code

And Sorry yeah i have visual studio and it works fine but i love to use visual studio code but i get the same bug in 5.6.x when i use do anything!

Hey guys,

Developers are already looking into this issue. You can track status of this issue here: Unity Issue Tracker - Compile error each time I load a custom package or plugin

Regards,
Audrius
QA Team

Yes, it’s because Unity is using the Mono bleeding edge version (4.8) to compile C# scripts instead of standard Mono, I need to reset this.
Can someone confirm if there was a .Net 4.6 scripting back-end player setting in previous 5.6 beta that is no longer exposed?
I think I may have changed it a while ago.

Finally Someone is looking in this!