コガネブログ

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

【Unity】BuildOptions.DetailedBuildReport を使用するとビルド時に Unity エディタが強制終了するようになった

概要

BuildOptions.DetailedBuildReport を使用すると
ビルド時に Unity エディタが強制終了するようになった
Editor.log を見ると以下のログが出力されていた

Calling OnPostBuildPlayerScriptDLLs callbacks. For faster build speeds, consider not using this callback, as we don't need to copy assemblies to the staging area for the incremental player build otherwise.

=================================================================
    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:
=================================================================
    0x16e8874f8 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_dump_native_crash_info
    0x16e849a7c - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_handle_native_crash
    0x16e7d22e0 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_sigsegv_signal_handler_debug
    0x19e97b4a4 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
    0x10644acd4 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZNSt3__16__treeIN4core12basic_stringIcNS1_20StringStorageDefaultIcEEEENS_4lessIS5_EENS_9allocatorIS5_EEE25__emplace_unique_key_argsIS5_JS5_EEENS_4pairINS_15__tree_iteratorIS5_PNS_11__tree_nodeIS5_PvEElEEbEERKT_DpOT0_
    0x106fa25a8 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN14BuildReporting11BuildReport13UpdateSummaryEv
    0x1052c53d0 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z39BuildReport_CUSTOM_get_summary_InjectedP37ScriptingBackendNativeObjectPtrOpaqueR14BuildSummary__
    0x33e7fdda0 - Unknown
    0x33e7fdc7c - Unknown
    0x353cb4498 - Unknown
    0x353cb3f14 - Unknown
    0x353cb3bc4 - Unknown
    0x14c7ae5d0 - Unknown
    0x16e7d55a0 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_jit_runtime_invoke
    0x16e95b4c4 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : do_runtime_invoke
    0x16e95b3e4 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_runtime_invoke
    0x105aa14fc - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb
    0x105a7f284 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb
    0x105b8f6dc - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN9Scripting11UnityEditor5Build28BuildPipelineInterfacesProxy27OnPostBuildPlayerScriptDLLsE18ScriptingObjectPtrP21ScriptingExceptionPtr
    0x1076d7288 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z21BuildPlayerScriptDLLs24BuildTargetPlatformGroup19BuildTargetPlatformRN14BuildReporting11BuildReportE18ScriptingObjectPtr18BuildPlayerOptionsbR19ScriptingAssembliesRKN4core12basic_stringIcNS8_20StringStorageDefaultIcEEEE13dynamic_arrayISC_Lm0EE
    0x1076e9fb0 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZL15BuildPlayerData24BuildTargetPlatformGroup19BuildTargetPlatformi18BuildPlayerOptionsRK16BuildCompressionRK13dynamic_arrayIN4core12basic_stringIcNS6_20StringStorageDefaultIcEEEELm0EEP20AssetBundleBuildDataRS5_I17EditorSceneBackupLm0EE18ScriptingObjectP
    0x1076e0260 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZL19DoBuildPlayer_BuildRK16BuildPlayerSetupR13dynamic_arrayI17EditorSceneBackupLm0EE18BuildPlayerOptions24BuildTargetPlatformGroup19BuildTargetPlatformRKS2_IN4core12basic_stringIcNS9_20StringStorageDefaultIcEEEELm0EEbR18ScriptingObjectPtrRN14BuildReporti
    0x1076deab8 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z13DoBuildPlayerRK16BuildPlayerSetupR13dynamic_arrayI17EditorSceneBackupLm0EEN4core12basic_stringIcNS6_20StringStorageDefaultIcEEEERKS2_ISA_Lm0EEbRN14BuildReporting11BuildReportEPNSE_20BuiltAssetBundleInfoERKSA_
    0x1076e4364 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z11BuildPlayerRK16BuildPlayerSetupRN14BuildReporting11BuildReportE
    0x10516b9ac - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z47BuildPipeline_CUSTOM_BuildPlayerInternalNoCheckP36ScriptingBackendNativeArrayPtrOpaqueP37ScriptingBackendNativeStringPtrOpaqueS2_24BuildTargetPlatformGroup19BuildTargetPlatformi18BuildPlayerOptionsS0_h
    0x33e7f6c00 - Unknown
    0x33e7f51ac - Unknown
    0x33e7f482c - Unknown
    0x33e7f45c8 - Unknown
    0x336f7fca4 - Unknown
    0x336f7fa50 - Unknown
    0x336f7f9d0 - Unknown
    0x336f7f950 - Unknown
    0x2cf77e308 - Unknown
    0x16e7d55a0 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_jit_runtime_invoke
    0x16e95b4c4 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : do_runtime_invoke
    0x16e95b3e4 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_runtime_invoke
    0x105aa14fc - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb
    0x105a7f284 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb
    0x105a7f10c - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN19ScriptingInvocation13InvokeCheckedEP21ScriptingExceptionPtr
    0x10694313c - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN14ScriptCommands25InvokeMenuItemWithContextE17ScriptingClassPtr18ScriptingMethodPtr18ScriptingObjectPtriPKc
    0x106942b38 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN14ScriptCommands7ExecuteERK8MenuItem
    0x10641cb0c - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _ZN14MenuController15ExecuteMenuItemER8MenuItemNS_14ExecutionCauseE
    0x1077196bc - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : -[CocoaMainMenu executeStandard:]
    0x1a179a5c8 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSResponder) sendAction:to:from:]
    0x1a18902ec - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSMenuItem _corePerformAction]
    0x1a188ffe0 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
    0x1a18d8bd8 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSMenu performActionForItemAtIndex:]
    0x1a18d8af8 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSMenu _internalPerformActionForItemAtIndex:]
    0x1a18d8904 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:]
    0x1a1873e70 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : NSSLMMenuEventHandler
    0x1a76466c8 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec
    0x1a7645b4c - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
    0x1a765be50 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : SendEventToEventTarget
    0x1a76bc870 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef
    0x1a76e19ac - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : SendMenuCommandWithContextAndModifiers
    0x1a76e193c - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : SendMenuItemSelectedEvent
    0x1a76e1768 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_
    0x1a76e2128 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt
    0x1a76e1e48 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _HandleMenuSelection2
    0x1a17336f0 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _NSHandleCarbonMenuEvent
    0x1a17334d0 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _DPSEventHandledByCarbon
    0x1a15955b4 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    0x107734090 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : -[EditorApplication TickTimer]
    0x19f956920 - /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation : __NSFireTimer
    0x19ea4b964 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
    0x19ea4b54c - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoTimer
    0x19ea4afd4 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoTimers
    0x19ea2fa64 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopRun
    0x19ea2eb34 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : CFRunLoopRunSpecific
    0x1a766e338 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : RunCurrentEventLoopInMode
    0x1a766e0b4 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : ReceiveNextEventCommon
    0x1a766de68 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _BlockUntilNextEventMatchingListInModeWithFilter
    0x1a159651c - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _DPSNextEvent
    0x1a1594e14 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    0x1a1586fe0 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication run]
    0x1a15586fc - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : NSApplicationMain
    0x107731508 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : _Z10EditorMainiPPKc
    0x107731840 - /Applications/Unity/Hub/Editor/2022.1.11f1/Unity.app/Contents/MacOS/Unity : main
    0x10accd08c - Unknown

=================================================================
    Telemetry Dumper:
=================================================================
Pkilling 0x12179877888x from 0x4476634496x
Pkilling 0x12184170496x from 0x4476634496x
Pkilling 0x13598109696x from 0x4476634496x
Pkilling 0x12188463104x from 0x4476634496x
Pkilling 0x12192755712x from 0x4476634496x
Pkilling 0x12112670720x from 0x4476634496x
Pkilling 0x13950726144x from 0x4476634496x
Pkilling 0x6159839232x from 0x4476634496x
Pkilling 0x12106887168x from 0x4476634496x
Pkilling 0x12070039552x from 0x4476634496x
Pkilling 0x6332035072x from 0x4476634496x
Pkilling 0x12067631104x from 0x4476634496x
Pkilling 0x14283829248x from 0x4476634496x
Pkilling 0x6346059776x from 0x4476634496x
Pkilling 0x12059652096x from 0x4476634496x
Pkilling 0x12177731584x from 0x4476634496x
Pkilling 0x12182024192x from 0x4476634496x
Pkilling 0x12186316800x from 0x4476634496x
Pkilling 0x12190609408x from 0x4476634496x
Pkilling 0x12194902016x from 0x4476634496x
Pkilling 0x6157692928x from 0x4476634496x
Pkilling 0x13952872448x from 0x4476634496x
Pkilling 0x13956657152x from 0x4476634496x
Pkilling 0x12109033472x from 0x4476634496x
Pkilling 0x12213317632x from 0x4476634496x
Pkilling 0x14281682944x from 0x4476634496x
Pkilling 0x6343913472x from 0x4476634496x
Pkilling 0x12057505792x from 0x4476634496x
Pkilling 0x14285975552x from 0x4476634496x
Pkilling 0x12061798400x from 0x4476634496x
Pkilling 0x12175585280x from 0x4476634496x
Entering thread summarizer pause from 0x4476634496x
Finished thread summarizer pause from 0x4476634496x.
Failed to create breadcrumb file (null)/crash_hash_0x138cd0132e
debugger-agent: Unable to listen on 91

Waiting for dumping threads to resume

=================================================================
    External Debugger Dump:
=================================================================

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1052f4ff8):0x1052f4fe8  0c fe ff 34 19 00 00 14 0b 05 40 f9 6b 00 00 b4  [email protected]...
0x1052f4ff8  6c 8d 41 38 6c fd ff 34 2a 01 40 f9 5f 01 01 eb  l.A8l..4*.@._...
0x1052f5008  e0 06 00 54 2a 05 40 f9 4b 01 40 f9 2b 05 00 f9  ...T*[email protected].@.+...
0x1052f5018  6b 00 00 b4 69 09 00 f9 28 09 40 f9 48 09 00 f9  k...i...([email protected]...

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at UnityEditor.Build.Reporting.BuildReport:get_summary_Injected <0x00007>
      at UnityEditor.Build.Reporting.BuildReport:get_summary <0x0002b>
      at Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLsImpl <0x00147>
      at Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs <0x00043>
      at UnityEditor.Build.BuildPipelineInterfaces:OnPostBuildPlayerScriptDLLs <0x000b3>
      at <Module>:runtime_invoke_void_object <0x0006f>
      at <unknown> <0xffffffff>
      at UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck <0x00017>
      at UnityEditor.BuildPipeline:BuildPlayerInternal <0x0007b>
      at UnityEditor.BuildPipeline:BuildPlayer <0x00203>
      at UnityEditor.BuildPipeline:BuildPlayer <0x0004f>
      at MyProject.BatchBuildCore:Build <0x001f3>
      at MyProject.BatchBuildAndroid:Build <0x0001f>
      at MyProject.BatchBuildAndroid:BuildFromMenuItem <0x0001f>
      at MyProject.BatchBuildAndroid:BuildDebug <0x0000f>
      at System.Object:runtime_invoke_void <0x00067>
=================================================================

Project Settings の左メニューで「Burst AOT Settings」を選択して
「Enable Burst Compilation」をオフにしてからビルドしたら
正常にビルドできるようになった

参考サイト様