jacobdufault / fullinspector

Full Inspector supercharges Unity's inspector
MIT License
111 stars 27 forks source link

Unity Editor crashes when reloading the assemblies. #202

Open Tagette opened 7 years ago

Tagette commented 7 years ago

Hello,

I am having an issue with Full Inspector where the editor crashes when reloading the assemblies. I have crash reports with stack traces pointing to the insides of unity. When I take Full Inspector out of our project, it no longer crashes.

Here is the stacktrace for the crash that occurs when we leave our editor scripts in the codebase:

========== OUTPUTING STACK TRACE ==================

0x0000000141065A12 (Unity) scripting_field_get_type
0x0000000140E2B59F (Unity) LinearCollectionField::LinearCollectionField
0x0000000140E31D61 (Unity) EmitSerializationCommandsForLinearCollectionField
0x0000000140E3222C (Unity) EmitSerializationCommandsForField
0x0000000140E36B52 (Unity) BuildSerializationCommandQueueFor
0x0000000140E36CAC (Unity) WriteQueueForTransferSignatureIntoCache
0x0000000140E36E48 (Unity) BuildSerializationCacheFor
0x0000000140E37F40 (Unity) TransferScriptingObject<SafeBinaryRead>
0x0000000140E17CCD (Unity) MonoBehaviour::TransferSafeBinaryInstanceOnly
0x0000000140E1A0F1 (Unity) MonoBehaviour::RestoreInstanceStateFromBackup
0x00000001414A65FD (Unity) MonoManager::EndReloadAssembly
0x00000001414A6EE7 (Unity) MonoManager::ReloadAssembly
0x00000001401B5314 (Unity) ReloadAllUsedAssemblies
0x0000000141723342 (Unity) Application::TickTimer
0x00000001417EEA1C (Unity) CrashCallback
0x00000001417F0664 (Unity) WinMain
0x0000000141AD38E4 (Unity) strnlen
0x00000000775759CD (kernel32) BaseThreadInitThunk
0x00000000776AA561 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

We've also submitted a crash report to Unity, however I don't expect them to reply since we don't really have reproduction steps without sending our 50+ GB project to them.

Any help would be appreciated, I've already spent a few days trying to find this crash.

Thanks, Tristan

Tagette commented 7 years ago

We were able to stop the crashing by converting code into dll's. It seems we hit some sort of bug in the compiler when we had so many scripts. Removing Full Inspector was just enough scripts to prevent the crash.

JayArrrgh commented 5 years ago

@Tagette Thanks for the write-up here. I've run into a similar issue - by any chance, do you happen to have any add'l info, record or documentation about that compiler bug?