Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Unity M1 2022.1.0b5 build fails, empty URP project

Discussion in '2022.1 Beta' started by Deleted User, Jan 31, 2022.

  1. Deleted User

    Deleted User

    Guest

    I thought beta 5 could solve issues; sadly it introduces a "lot" of bugs.
    Anyone seen this too ? If so, I'll submit a bug report.

    Code (CSharp):
    1.  
    2. BuildFailedException: Burst compiler (1.6.0) failed running
    3.  
    4. stdout:
    5. stderr:
    6.  
    7. Unhandled Exception:
    8. System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /Applications/Unity/Hub/Editor/2022.1.0b5/Unity.app/Contents/MonoBleedingEdge/lib/../lib/libmono-native.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
    9.   at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
    10.   at Interop+Sys..cctor () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    11.    --- End of inner exception stack trace ---
    12.   at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    13.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath, Interop+ErrorInfo& errorInfo) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    14.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    15.   at System.IO.Directory.Exists (System.String path) [0x0001e] in <3cc0041a7bf849d5a824197f18576c2b>:0
    16.   at Burst.Backend.UnmanagedLibrary.GetUnmanagedLibraryHandler () [0x00015] in <bfbc7148e2ae410cb20a284c249430f7>:0
    17.   at Burst.Backend.UnmanagedLibrary..cctor () [0x00000] in <bfbc7148e2ae410cb20a284c249430f7>:0
    18.    --- End of inner exception stack trace ---
    19.   at System.Threading.ThreadPoolWorkQueueThreadLocals..ctor (System.Threading.ThreadPoolWorkQueue tpq) [0x0000b] in <3cc0041a7bf849d5a824197f18576c2b>:0
    20.   at System.Threading.ThreadPoolWorkQueue.EnsureCurrentThreadHasQueue () [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    21.   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00016] in <3cc0041a7bf849d5a824197f18576c2b>:0
    22.   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    23.  
    24. Unhandled Exception:
    25. System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /Applications/Unity/Hub/Editor/2022.1.0b5/Unity.app/Contents/MonoBleedingEdge/lib/../lib/libmono-native.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
    26.   at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
    27.   at Interop+Sys..cctor () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    28.    --- End of inner exception stack trace ---
    29.   at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    30.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath, Interop+ErrorInfo& errorInfo) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    31.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    32.   at System.IO.Directory.Exists (System.String path) [0x0001e] in <3cc0041a7bf849d5a824197f18576c2b>:0
    33.   at Burst.Backend.UnmanagedLibrary.GetUnmanagedLibraryHandler () [0x00015] in <bfbc7148e2ae410cb20a284c249430f7>:0
    34.   at Burst.Backend.UnmanagedLibrary..cctor () [0x00000] in <bfbc7148e2ae410cb20a284c249430f7>:0
    35.    --- End of inner exception stack trace ---
    36.   at System.Threading.ThreadPoolWorkQueueThreadLocals..ctor (System.Threading.ThreadPoolWorkQueue tpq) [0x0000b] in <3cc0041a7bf849d5a824197f18576c2b>:0
    37.   at System.Threading.ThreadPoolWorkQueue.EnsureCurrentThreadHasQueue () [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    38.   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00016] in <3cc0041a7bf849d5a824197f18576c2b>:0
    39.   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    40.  
    41. Unhandled Exception:
    42. System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /Applications/Unity/Hub/Editor/2022.1.0b5/Unity.app/Contents/MonoBleedingEdge/lib/../lib/libmono-native.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
    43.   at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
    44.   at Interop+Sys..cctor () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    45.    --- End of inner exception stack trace ---
    46.   at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    47.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath, Interop+ErrorInfo& errorInfo) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    48.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    49.   at System.IO.Directory.Exists (System.String path) [0x0001e] in <3cc0041a7bf849d5a824197f18576c2b>:0
    50.   at Burst.Backend.UnmanagedLibrary.GetUnmanagedLibraryHandler () [0x00015] in <bfbc7148e2ae410cb20a284c249430f7>:0
    51.   at Burst.Backend.UnmanagedLibrary..cctor () [0x00000] in <bfbc7148e2ae410cb20a284c249430f7>:0
    52.    --- End of inner exception stack trace ---
    53.   at System.Threading.ThreadPoolWorkQueueThreadLocals..ctor (System.Threading.ThreadPoolWorkQueue tpq) [0x0000b] in <3cc0041a7bf849d5a824197f18576c2b>:0
    54.   at System.Threading.ThreadPoolWorkQueue.EnsureCurrentThreadHasQueue () [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    55.   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00016] in <3cc0041a7bf849d5a824197f18576c2b>:0
    56.   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    57.  
    58. Unhandled Exception:
    59. System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /Applications/Unity/Hub/Editor/2022.1.0b5/Unity.app/Contents/MonoBleedingEdge/lib/../lib/libmono-native.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
    60.   at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
    61.   at Interop+Sys..cctor () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    62.    --- End of inner exception stack trace ---
    63.   at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    64.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath, Interop+ErrorInfo& errorInfo) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    65.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    66.   at System.IO.Directory.Exists (System.String path) [0x0001e] in <3cc0041a7bf849d5a824197f18576c2b>:0
    67.   at Burst.Backend.UnmanagedLibrary.GetUnmanagedLibraryHandler () [0x00015] in <bfbc7148e2ae410cb20a284c249430f7>:0
    68.   at Burst.Backend.UnmanagedLibrary..cctor () [0x00000] in <bfbc7148e2ae410cb20a284c249430f7>:0
    69.    --- End of inner exception stack trace ---
    70.   at System.Threading.ThreadPoolWorkQueueThreadLocals..ctor (System.Threading.ThreadPoolWorkQueue tpq) [0x0000b] in <3cc0041a7bf849d5a824197f18576c2b>:0
    71.   at System.Threading.ThreadPoolWorkQueue.EnsureCurrentThreadHasQueue () [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    72.   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00016] in <3cc0041a7bf849d5a824197f18576c2b>:0
    73.   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    74.  
    75. Unhandled Exception:
    76. System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /Applications/Unity/Hub/Editor/2022.1.0b5/Unity.app/Contents/MonoBleedingEdge/lib/../lib/libmono-native.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
    77.   at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
    78.   at Interop+Sys..cctor () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    79.    --- End of inner exception stack trace ---
    80.   at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    81.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath, Interop+ErrorInfo& errorInfo) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    82.   at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath) [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    83.   at System.IO.Directory.Exists (System.String path) [0x0001e] in <3cc0041a7bf849d5a824197f18576c2b>:0
    84.   at Burst.Backend.UnmanagedLibrary.GetUnmanagedLibraryHandler () [0x00015] in <bfbc7148e2ae410cb20a284c249430f7>:0
    85.   at Burst.Backend.UnmanagedLibrary..cctor () [0x00000] in <bfbc7148e2ae410cb20a284c249430f7>:0
    86.    --- End of inner exception stack trace ---
    87.   at System.Threading.ThreadPoolWorkQueueThreadLocals..ctor (System.Threading.ThreadPoolWorkQueue tpq) [0x0000b] in <3cc0041a7bf849d5a824197f18576c2b>:0
    88.   at System.Threading.ThreadPoolWorkQueue.EnsureCurrentThreadHasQueue () [0x00007] in <3cc0041a7bf849d5a824197f18576c2b>:0
    89.   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00016] in <3cc0041a7bf849d5a824197f18576c2b>:0
    90.   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    91. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /Applications/Unity/Hub/Editor/2022.1.0b5/Unity.app/Contents/MonoBleedingEdge/lib/../lib/libmono-native.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
    92.   at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
    93.   at Interop+Sys..cctor () [0x00000] in <3cc0041a7bf849d5a824197f18576c2b>:0
    94.    --- End of inner exception stack trace ---
    95.  
     
  2. Havokki

    Havokki

    Joined:
    Jun 28, 2015
    Posts:
    118
    Yeah, I'm getting this too when trying to build our game for Apple Silicon using MB Air 2020 (M1). We're using beta 7.
    EDIT: Happens with an empty URP project as well, as you already pointed out.
     
  3. Petras-Unity

    Petras-Unity

    Unity Technologies

    Joined:
    Oct 7, 2020
    Posts:
    25
    Hey, this looks like a proper bug. Could you register it trough bug reporter?
     
  4. Havokki

    Havokki

    Joined:
    Jun 28, 2015
    Posts:
    118
    Case 1403088. There should be a "failedbuild.log" file in the Assets folder, but I think I added it while I was already writing the bug report, so I'm not sure if it actually was included.
     
    LeonhardP likes this.