Unity editor crashes after running the game the second time and onwards. Editor behaves normally after first running of the game. Now if stopped and rerun, it crashes. This is happening after converting scripts to dll. However, no crash happens in the android build of the same. This is the crash report obtained:
Crashed Thread: 0 tid_307 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x20:
→
__TEXT 0000000100000000-0000000104a03000 [ 74.0M] r-x/rwx SM=COW /Volumes/VOLUME/*/Unity_2018_3_5.app/Contents/MacOS/Unity
Application Specific Information:
abort() called
Thread 0 Crashed:: tid_307 Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffe3378d42 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffe3466457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffe32de420 abort + 129
3 com.unity3d.UnityEditor5.x 0x0000000101048f51 HandleSignal(int, __siginfo*, void*) + 81
4 libmonobdwgc-2.0.dylib 0x0000000142429485 mono_chain_signal + 79
5 libmonobdwgc-2.0.dylib 0x00000001422faf13 mono_sigsegv_signal_handler + 414
6 libsystem_platform.dylib 0x00007fffe3459b3a _sigtramp + 26
7 ??? 000000000000000000 0 + 0
8 com.unity3d.UnityEditor5.x 0x0000000101090973 void Transfer_UnityEngineObject<StreamedBinaryRead, true>(SerializationCommandArguments const&, RuntimeSerializationCommandInfo&) + 163
9 com.unity3d.UnityEditor5.x 0x00000001010907d0 void TransferField_LinearCollection(SerializationCommandArguments const&, RuntimeSerializationCommandInfo&) + 160
10 com.unity3d.UnityEditor5.x 0x000000010103b32e void ExecuteSerializationCommands(SerializationCommandProvider&, StreamedBinaryRead&, GeneralMonoObject const&) + 462
11 com.unity3d.UnityEditor5.x 0x000000010103b0d0 void TransferScriptingObject(StreamedBinaryRead&, ScriptingObjectPtr, ScriptingClassPtr, MonoScriptCache const*) + 784
12 com.unity3d.UnityEditor5.x 0x000000010103ef47 SerializableManagedRefTransfer::TransferBinaryInstanceOnly(Object*, SerializableManagedRef&, dynamic_array<unsigned char, 0ul>&, TransferInstructionFlags) + 471
13 com.unity3d.UnityEditor5.x 0x000000010103ed13 void SerializableManagedRefTransfer::RestoreBackupImpl(Object*, SerializableManagedRef&, TransferInstructionFlags) + 371
14 com.unity3d.UnityEditor5.x 0x00000001010303f0 void SerializableManagedRefTransfer::RestoreBackup(Object*, SerializableManagedRef&, IManagedObjectHost::EBackupStage) + 128
15 com.unity3d.UnityEditor5.x 0x00000001010e053b SerializableManagedRefsUtilities::RestoreBackups(DomainReloadingData const&) + 491
16 com.unity3d.UnityEditor5.x 0x0000000101046c17 MonoManager::EndReloadAssembly(DomainReloadingData const&, dynamic_bitset) + 1495
17 com.unity3d.UnityEditor5.x 0x000000010104581d MonoManager::ReloadAssembly(bool) + 269
18 com.unity3d.UnityEditor5.x 0x0000000101386796 ReloadAllUsedAssemblies(bool) + 246
19 com.unity3d.UnityEditor5.x 0x00000001013700f0 EditorSceneManager::RestoreSceneBackups(std::__1::vector<EditorSceneBackup, stl_allocator<EditorSceneBackup, (MemLabelIdentifier)111, 16> >&, EditorSceneManager::PlayModeChange, bool) + 304
20 com.unity3d.UnityEditor5.x 0x00000001019c34ae PlayerLoopController::EnterPlayMode(bool) + 590
21 com.unity3d.UnityEditor5.x 0x00000001019bbe8d PlayerLoopController::SetIsPlaying(bool) + 269
22 com.unity3d.UnityEditor5.x 0x00000001019bac4b Application::TickTimer() + 6875
23 com.unity3d.UnityEditor5.x 0x00000001006fe89e -[EditorApplication TickTimer] + 142
24 com.apple.Foundation 0x00007fffcf55de0f __NSFireTimer + 83
25 com.apple.CoreFoundation 0x00007fffcdad3c54 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20
26 com.apple.CoreFoundation 0x00007fffcdad38df __CFRunLoopDoTimer + 1071
27 com.apple.CoreFoundation 0x00007fffcdad343a __CFRunLoopDoTimers + 298
28 com.apple.CoreFoundation 0x00007fffcdacab81 __CFRunLoopRun + 2065
29 com.apple.CoreFoundation 0x00007fffcdaca114 CFRunLoopRunSpecific + 420
30 com.apple.HIToolbox 0x00007fffcd02aebc RunCurrentEventLoopInMode + 240
31 com.apple.HIToolbox 0x00007fffcd02abf9 ReceiveNextEventCommon + 184
32 com.apple.HIToolbox 0x00007fffcd02ab26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
33 com.apple.AppKit 0x00007fffcb5c3a54 _DPSNextEvent + 1120
34 com.apple.AppKit 0x00007fffcbd3f7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
35 com.apple.AppKit 0x00007fffcb5b83db -[NSApplication run] + 926
36 com.apple.AppKit 0x00007fffcb582e0e NSApplicationMain + 1237
37 com.unity3d.UnityEditor5.x 0x0000000100726bfc EditorMain(int, char const**) + 844
38 com.unity3d.UnityEditor5.x 0x0000000100727079 main + 9
39 libdyld.dylib 0x00007fffe324a235 start + 1