Search Issue Tracker
Fixed
Fixed in 2022.3.32f1, 6000.0.0f1, 7000.0.0a1
Votes
2
Found in
2021.3.36f1
2022.3.22f1
6000.0.0b13
7000.0.0a1
Issue ID
UUM-68288
Regression
Yes
Crash on RevealInFinder when building a project in headless mode
Reproduction steps:
1. Setup a headless Windows machine
2. Setup the “repro” project
3. Run the Editor with: "C:\Program Files\Unity\Hub\Editor\<version>\Editor\Unity.exe" -batchmode -buildTarget StandaloneWindows64 -quit -projectPath </path/to/repro/project> -executeMethod BuildScript.BuildWindows
Expected results: Project is built
Actual results: Unity Editor crashes
Reproducible with: 2021.3.27f1, 2021.3.34f1, 2022.3.21f1
Not reproducible with: 2021.3.24f1
Reproduced on: Windows 10
Not reproduced on: No other environment tested
First lines of the stack trace from crash.dmp:
Unity.exe!RevealInFinder(struct dynamic_array<class core::basic_string<char,class core::StringStorageDefault<char> >,0> const &) Unknown
Unity.exe!RevealInFinder(class core::basic_string_ref<char>) Unknown
Unity.exe!EditorUtility_CUSTOM_RevealInFinder(class ScriptingBackendNativeStringPtrOpaque *) Unknown
mono-2.0-bdwgc.dll!00007ff977434b6e() Unknown
mono-2.0-bdwgc.dll!00007ff97736d204() Unknown
Notes:
* CQA did not reproduce this issue, as we didn’t set up a headless machine for this bug report
* All the bug information was provided by the bug reporters
* As per the bug reporter, this issue didn’t happen in 2021.3.24f1, so a regression happened somewhere between it and 2021.3.27f1
-
redwyre
Mar 31, 2024 14:16
I assumed my case was caused by other environment changes at the same time, but I did upgrade from 2022.3.11 to 2022.3.21 if that helps narrow it down
Also the title says headless but from what I've read "-batchmode" doesn't assume headless and only suppress windows that require _interaction_, but when Unity is running in a service context (on windows) the OS is going to block some more stuff.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note (fix version 6000.0.0f1):
Fixed so that Finder/Explorer will no longer open in batch mode. Please ensure that -batchmode is provided on the command line when running batch mode, especially on headless systems.