コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Assertion failed on expression: 'it != m_SendMap.end()'

概要

AcceleratorClientConnectionCallback - disconnected - 192.168.0.6:10080
Assertion failed on expression: 'it != m_SendMap.end()'

=================================================================
    Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
    Native stacktrace:
=================================================================
    0x1570062fa - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_dump_native_crash_info
    0x156fac5af - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_handle_native_crash
    0x156f288d5 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_sigsegv_signal_handler_debug
    0x7ff81c11fdfd - /usr/lib/system/libsystem_platform.dylib : _sigtramp
    0x10a79832e - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN14StackAllocatorIL13AllocatorMode0EE13TryDeallocateEPv
    0x10c4b33b7 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN4core16mutable_functionIFvvEE9DispatchTIZN9IOService10PostHelperIZN17AcceleratorClient19ScheduleNextRequestEvE4$_15EEvOT_NS4_25WrapCallableInFunctionTagEEUlvE_E8DispatchEv
    0x10c51bee0 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN4asio6detail18completion_handlerIN4core16mutable_functionIFvvEEENS_10io_context19basic_executor_typeINSt3__19allocatorIvEELj0EEEE11do_completeEPvPNS0_19scheduler_operationERKNS8_10error_codeEm
    0x10c500638 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN4asio6detail9scheduler10do_run_oneERNS0_27conditionally_enabled_mutex11scoped_lockERNS0_21scheduler_thread_infoERKNSt3__110error_codeE
    0x10c5000a1 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN4asio6detail9scheduler3runERNSt3__110error_codeE
    0x10c504a3f - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN9IOService3RunEb
    0x10c50404b - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN9IOService4Impl14ThreadFunctionEPv
    0x10ad5decb - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN6Thread16RunThreadWrapperEPv
    0x7ff81c10a4e1 - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
    0x7ff81c105f6b - /usr/lib/system/libsystem_pthread.dylib : thread_start

=================================================================
    Telemetry Dumper:
=================================================================
Thread 0x700004d4f000 may have been prematurely finalized* Assertion at mono-threads.c:702, condition `info' not met, function:mono_thread_info_current, 
Failed to upload metadata for artifact(static dependencies=a3d51d2229f2bf3206d2fa5623286c78) to cacheserver
Obtained 5 stack frames.
Thread 0x700006176000 may have been prematurely finalized#0  0x0000010cceefe3 in MetalSurfaceCallback(__CVDisplayLink*, CVTimeStamp const*, CVTimeStamp const*, unsigned long long, unsigned long long*, void*)
Thread 0x700006176000 may have been prematurely finalized#1  0x007ff8239aa79b in CVDisplayLink::performIO(CVTimeStamp*)
Thread 0x700006176000 may have been prematurely finalized#2  0x007ff8239a9879 in CVDisplayLink::runIOThread()
Thread 0x700006176000 may have been prematurely finalized#3  0x007ff81c10a4e1 in _pthread_start
Thread 0x700006176000 may have been prematurely finalized#4  0x007ff81c105f6b in thread_start
Launching bug reporter
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QObject(0x6000008a0340), parent's thread is QThread(0x600001ff80d0), current thread is Thread(0x6000013a6c40)
Obtained 10 stack frames.
Thread 0x70000f5ce000 may have been prematurely finalized#0  0x0000010fad1a22 in IsMetalSurfaceValid(MetalSurfaceHelper*)
Thread 0x70000f5ce000 may have been prematurely finalized#1  0x0000010fb456f2 in metal::PrepareEndFrame()
Thread 0x70000f5ce000 may have been prematurely finalized#2  0x0000010faf4a59 in MetalWindow::EndRendering(bool)
Thread 0x70000f5ce000 may have been prematurely finalized#3  0x0000010f6e104b in GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)
Thread 0x70000f5ce000 may have been prematurely finalized#4  0x0000010fb2772c in GfxDeviceWorkerAutoreleasePoolProxy
Thread 0x70000f5ce000 may have been prematurely finalized#5  0x0000010f6d8fd3 in GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)
Thread 0x70000f5ce000 may have been prematurely finalized#6  0x0000010f6d8cf8 in GfxDeviceWorker::RunGfxDeviceWorker(void*)
Thread 0x70000f5ce000 may have been prematurely finalized#7  0x0000010db40ecb in Thread::RunThreadWrapper(void*)
Thread 0x70000f5ce000 may have been prematurely finalized#8  0x007ff81c10a4e1 in _pthread_start
Thread 0x70000f5ce000 may have been prematurely finalized#9  0x007ff81c105f6b in thread_start
Obtained 5 stack frames.
Thread 0x700006176000 may have been prematurely finalized#0  0x0000010cceefe3 in MetalSurfaceCallback(__CVDisplayLink*, CVTimeStamp const*, CVTimeStamp const*, unsigned long long, unsigned long long*, void*)
Thread 0x700006176000 may have been prematurely finalized#1  0x007ff8239aa79b in CVDisplayLink::performIO(CVTimeStamp*)
Thread 0x700006176000 may have been prematurely finalized#2  0x007ff8239a9879 in CVDisplayLink::runIOThread()
Thread 0x700006176000 may have been prematurely finalized#3  0x007ff81c10a4e1 in _pthread_start
Thread 0x700006176000 may have been prematurely finalized#4  0x007ff81c105f6b in thread_start

アセットを右クリックして Import した時に上記のエラーが発生して
Unity エディタが終了する現象に遭遇した

Unity Accelerator への接続に失敗していたので接続するように設定を見直したら
アセットを右クリックして Import しても強制終了しなくなった

開発環境

  • macOS Monterey バージョン 12.4
  • Unity 2022.1.11f1