Search Issue Tracker

Fixed

Fixed in 2022.3.29f1, 2023.2.20f1, 6000.0.2f1, 7000.0.0a1

Votes

0

Found in

2022.3.21f1

2023.2.20f1

6000.0.0b16

7000.0.0a1

Issue ID

UUM-67247

Regression

Yes

Crash on SystemNative_FcntlSetCloseOnExec when creating a new 3D project

--

-

Reproduction steps:
1. Create a new 3D project
or
1. Create a new 3D project
2. Open “Assets/Scenes/SampleScene.unity” scene
3. Reload scene

Expected results: Project is created and opened, or the scene is reloaded without any issues
Actual results: Editor crashed

Reproduced with: 2022.3.4f1, 2022.3.21f1
Not reproduced with: There were no other bug reports with other Unity Editor versions

Reproduced on: SteamOS, macOS 14.1.1 (M1), macOS 13.4 (M1 Pro), EndeavourOS
Not reproduced on: There were no other bug reports with other environments

First lines of the stack trace:
#5 0x007face6c37697 in __assert_fail
#6 0x007fab87c45478 in SystemNative_FcntlSetCloseOnExec
#7 0x00000041ba1bb8 in (wrapper managed-to-native) Interop/Sys/Fcntl:SetCloseOnExec (System.Runtime.InteropServices.SafeHandle)
#8 0x00000041ba198b in System.IO.Pipes.PipeStream:ConfigureSocket (System.Net.Sockets.Socket,Microsoft.Win32.SafeHandles.SafePipeHandle,System.IO.Pipes.PipeDirection,int,int,System.IO.HandleInheritability)
#9 0x00000041b9c7a3 in System.IO.Pipes.NamedPipeServerStream:HandleAcceptedSocket (System.Net.Sockets.Socket)
#10 0x00000041b8e2d7 in System.IO.Pipes.NamedPipeServerStream/<<WaitForConnectionAsync>g__WaitForConnectionAsyncCore|8_0>d:MoveNext ()

Notes:

* Crash is usually preceded by these logs:
Require frontend run. Library/Bee/2400b0aE.dag couldn't be loaded
Unity: /home/bokken/build/output/Unity-Technologies/mono/external/corefx/src/Native/Unix/Common/pal_utilities.h:159: int ToFileDescriptor(intptr_t): Assertion `0 <= fd && fd < sysconf(_SC_OPEN_MAX)' failed.
* CQA Couldn’t reproduce this crash.

  1. Resolution Note (fix version 6000.0.2f1):

    Made error message more descriptive when Unity process has exceeded the operating system's maximum number of concurrent file descriptors in use.

  2. Resolution Note (fix version 2023.2.20f1):

    Made error message more descriptive when Unity process has exceeded the operating system's maximum number of concurrent file descriptors in use.

  3. Resolution Note (fix version 2022.3.29f1):

    Made error message more descriptive when Unity process has exceeded the operating system's maximum number of concurrent file descriptors in use.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.