Godot: Mono: System.DllNotFoundException: System.Native assembly

Created on 22 Nov 2019  路  20Comments  路  Source: godotengine/godot

Godot version:
3.2 beta2 mono

OS/device including version:
windows 10

Issue description:

  • Build button missing
  • Editor -> Mono -> Build Tool Dropdown Missing
    &
  • The following spammed in console
Godot Engine v3.2.beta2.mono.official (c) 2007-2019 Juan Linietsky, Ariel Manzur & Godot Contributors.
 modules/mono/mono_gd/gd_mono_utils.cpp:344 - System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
 modules/mono/mono_gd/gd_mono_utils.cpp:344 - System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)

Steps to reproduce:

  1. create new empty project
bug confirmed high priority macos windows regression mono

Most helpful comment

the problem is that mscorlib.dll is no longer portable and needs to be built for each platform. This will also give us some other headaches as well. I'm working on a way to fix this properly but it's not entirely trivial.

All 20 comments

Hey, seeing the same issue (also on Windows 10). Figured I'd augment it with the console output in case it helps as well:

System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Interop+Sys.Stat(byte&,Interop/Sys/FileStatus&)
  at Interop+Sys.Stat (System.ReadOnlySpan`1[T] path, Interop+Sys+FileStatus& output) [0x00028] in <8f01aff69f234b9e90ac7f268e2d8b3e>:0
  at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <8f01aff69f234b9e90ac7f268e2d8b3e>:0
  at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath) [0x00006] in <8f01aff69f234b9e90ac7f268e2d8b3e>:0
  at System.IO.File.Exists (System.String path) [0x00043] in <8f01aff69f234b9e90ac7f268e2d8b3e>:0
  at GodotTools.Utils.File.Exists (System.String path) [0x00006] in <1e6f1e17ed134e50af18018830996912>:0
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <c8566f08bf524447a9022b46338b79f2>:0
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <c8566f08bf524447a9022b46338b79f2>:0
  at GodotTools.Utils.OS.PathWhichWindows (System.String name) [0x000bd] in <1e6f1e17ed134e50af18018830996912>:0
  at GodotTools.Utils.OS.PathWhich (System.String name) [0x0000e] in <1e6f1e17ed134e50af18018830996912>:0
  at GodotTools.Utils.CollectionExtensions.SelectFirstNotNull[T] (System.Collections.Generic.IEnumerable`1[T] enumerable, System.Func`2[T,TResult] predicate, T orElse) [0x00010] in <1e6f1e17ed134e50af18018830996912>:0
  at GodotTools.GodotSharpEditor.OpenInExternalEditor (Godot.Script script, System.Int32 line, System.Int32 col) [0x0008b] in <1e6f1e17ed134e50af18018830996912>:0
  at (wrapper managed-to-native) System.Threading.Monitor.Exit(object)
  at Godot.GodotTaskScheduler.ExecuteQueuedTasks () [0x0004d] in /root/godot/modules/mono/glue/Managed/Generated/GodotSharp/Core/GodotTaskScheduler.cs:79
  at Godot.GodotTaskScheduler.Activate () [0x00001] in /root/godot/modules/mono/glue/Managed/Generated/GodotSharp/Core/GodotTaskScheduler.cs:58
  at (wrapper native-to-managed) Godot.GodotTaskScheduler.Activate(Godot.GodotTaskScheduler,System.Exception&)
ERROR: debug_send_unhandled_exception_error: System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
   At: modules/mono/mono_gd/gd_mono_utils.cpp:344

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at GodotTools.HotReloadAssemblyWatcher.RestartTimer () [0x00000] in <1e6f1e17ed134e50af18018830996912>:0
  at GodotTools.HotReloadAssemblyWatcher._Notification (System.Int32 what) [0x00008] in <1e6f1e17ed134e50af18018830996912>:0
ERROR: debug_send_unhandled_exception_error: System.NullReferenceException: Object reference not set to an instance of an object
   At: modules/mono/mono_gd/gd_mono_utils.cpp:344

mono logs

Config attempting to parse: 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/etc\mono\config'. (in domain Mono, info)
Image addref mscorlib[0000000011C09550] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll[0000000011D394D0]: 2 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll) (in domain Mono, info)
AOT: image 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll.dll' not found: The system cannot find the file specified.
 (in domain Mono, info)
AOT: image 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/aot-cache/amd64/mscorlib.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Assembly mscorlib[0000000011C09550] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
Assembly mscorlib[0000000011C09550] added to domain GodotEngine.Domain.Scripts, ref_count=2 (in domain Mono, info)
Image addref GodotSharp[0000000011C08620] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharp.dll[0000000011D96020]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotSharp' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharp.dll) (in domain Mono, info)
Assembly GodotSharp[0000000011C08620] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Loading reference 0 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharp.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Config attempting to parse: ''. (in domain Mono, info)
Assembly Ref addref GodotSharp[0000000011C08620] -> mscorlib[0000000011C09550]: 3 (in domain Mono, info)
Image addref GodotSharpEditor[0000000011C08E00] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharpEditor.dll[0000000011D93800]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotSharpEditor' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharpEditor.dll) (in domain Mono, info)
Assembly GodotSharpEditor[0000000011C08E00] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Loading reference 0 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharpEditor.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref GodotSharpEditor[0000000011C08E00] -> mscorlib[0000000011C09550]: 4 (in domain Mono, info)
Loading reference 2 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharp.dll asmctx DEFAULT, looking for System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Image addref System[0000000011C088F0] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll[0000000011EBBC10]: 2 (in domain Mono, info)
Prepared to set up assembly 'System' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll) (in domain Mono, info)
Assembly System[0000000011C088F0] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref GodotSharp[0000000011C08620] -> System[0000000011C088F0]: 2 (in domain Mono, info)
Loading reference 0 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System[0000000011C088F0] -> mscorlib[0000000011C09550]: 5 (in domain Mono, info)
Loading reference 2 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll asmctx DEFAULT, looking for System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (in domain Mono, info)
Image addref System.Configuration[0000000011C08590] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll[0000000011F40090]: 2 (in domain Mono, info)
Prepared to set up assembly 'System.Configuration' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll) (in domain Mono, info)
Assembly System.Configuration[0000000011C08590] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref System[0000000011C088F0] -> System.Configuration[0000000011C08590]: 2 (in domain Mono, info)
Loading reference 0 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Configuration[0000000011C08590] -> mscorlib[0000000011C09550]: 6 (in domain Mono, info)
Loading reference 2 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll asmctx DEFAULT, looking for System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Configuration[0000000011C08590] -> System[0000000011C088F0]: 3 (in domain Mono, info)
Loading reference 1 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll asmctx DEFAULT, looking for System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Image addref System.Xml[0000000011C078A0] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll[0000000011F436A0]: 2 (in domain Mono, info)
Prepared to set up assembly 'System.Xml' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll) (in domain Mono, info)
Assembly System.Xml[0000000011C078A0] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref System.Configuration[0000000011C08590] -> System.Xml[0000000011C078A0]: 2 (in domain Mono, info)
Loading reference 0 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Xml[0000000011C078A0] -> mscorlib[0000000011C09550]: 7 (in domain Mono, info)
DllImport attempting to load: 'System.Native'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport unable to load library 'The system cannot find the file specified.
'. (in domain Mono, warning)
DllImport attempting to load: 'System.Native'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport unable to load library 'The system cannot find the file specified.
'. (in domain Mono, warning)
DllImport attempting to load: 'System.Native'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport unable to load library 'The system cannot find the file specified.
'. (in domain Mono, warning)
DllImport attempting to load: 'System.Native'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'System.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5\libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'libSystem.Native': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport unable to load library 'The system cannot find the file specified.
'. (in domain Mono, warning)
Image addref GodotTools[0000000011C07B70] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Tools/GodotTools.dll[0000000011F9B1A0]: 2 (in domain Mono, info)
Prepared to set up assembly 'GodotTools' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Tools/GodotTools.dll) (in domain Mono, info)
Assembly GodotTools[0000000011C07B70] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Image addref GodotTools.ProjectEditor[0000000011C08E90] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Tools/GodotTools.ProjectEditor.dll[0000000011F9B8D0]: 2 (in domain Mono, info)
Prepared to set up assembly 'GodotTools.ProjectEditor' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Tools/GodotTools.ProjectEditor.dll) (in domain Mono, info)
Assembly GodotTools.ProjectEditor[0000000011C08E90] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Loader probing location: 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib\UnnamedProject.dll'. (in domain Mono, info)
Assembly Loader probing location: 'Z:\Downloads\Godot_v3.2-beta2_mono_win64\GodotSharp\Mono\lib\mono\4.5\/Facades\UnnamedProject.dll'. (in domain Mono, info)
Assembly Loader probing location: 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib\UnnamedProject.exe'. (in domain Mono, info)
Assembly Loader probing location: 'Z:\Downloads\Godot_v3.2-beta2_mono_win64\GodotSharp\Mono\lib\mono\4.5\/Facades\UnnamedProject.exe'. (in domain Mono, info)
Loading reference 1 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharp.dll asmctx DEFAULT, looking for System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Image addref System.Core[000000001D17B2D0] (asmctx DEFAULT) -> Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Core.dll[000000001D972020]: 2 (in domain Mono, info)
Prepared to set up assembly 'System.Core' (Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Core.dll) (in domain Mono, info)
Assembly System.Core[000000001D17B2D0] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref GodotSharp[0000000011C08620] -> System.Core[000000001D17B2D0]: 2 (in domain Mono, info)
Loading reference 0 of Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Core.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Core[000000001D17B2D0] -> mscorlib[0000000011C09550]: 8 (in domain Mono, info)
GC_MAJOR: (user request) time 0.45ms, stw 0.47ms los size: 0K in use: 0K (in domain Mono, info)
GC_MAJOR_SWEEP: major size: 592K in use: 13K (in domain Mono, info)
GC_MAJOR: (user request) time 0.19ms, stw 0.20ms los size: 0K in use: 0K (in domain Mono, info)
GC_MAJOR_SWEEP: major size: 608K in use: 13K (in domain Mono, info)
GC_MAJOR: (user request) time 0.12ms, stw 0.40ms los size: 0K in use: 0K (in domain Mono, info)
GC_MAJOR_SWEEP: major size: 608K in use: 14K (in domain Mono, info)
GC_MINOR: (user request) time 0.14ms, stw 0.16ms promoted 0K major size: 608K in use: 14K los size: 0K in use: 0K (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly mscorlib[0000000011C09550], ref_count=8 (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly GodotSharp[0000000011C08620], ref_count=1 (in domain Mono, info)
Unloading assembly GodotSharp [0000000011C08620]. (in domain Mono, info)
Unloading image data-0000000011DCC010 [0000000011D96750]. (in domain Mono, info)
Unloading image Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharp.dll [0000000011D96020]. (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly GodotSharpEditor[0000000011C08E00], ref_count=1 (in domain Mono, info)
Unloading assembly GodotSharpEditor [0000000011C08E00]. (in domain Mono, info)
Unloading image data-0000000011EBE7C0 [0000000011D93F30]. (in domain Mono, info)
Unloading image Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Api/Debug/GodotSharpEditor.dll [0000000011D93800]. (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly System[0000000011C088F0], ref_count=2 (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly System.Configuration[0000000011C08590], ref_count=2 (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly System.Xml[0000000011C078A0], ref_count=2 (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly GodotTools[0000000011C07B70], ref_count=1 (in domain Mono, info)
Unloading assembly GodotTools [0000000011C07B70]. (in domain Mono, info)
Unloading image Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Tools/GodotTools.dll [0000000011F9B1A0]. (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly GodotTools.ProjectEditor[0000000011C08E90], ref_count=1 (in domain Mono, info)
Unloading assembly GodotTools.ProjectEditor [0000000011C08E90]. (in domain Mono, info)
Unloading image Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Tools/GodotTools.ProjectEditor.dll [0000000011F9B8D0]. (in domain Mono, info)
Unloading domain GodotEngine.Domain.Scripts[0000000011D6B260], assembly System.Core[000000001D17B2D0], ref_count=1 (in domain Mono, info)
Unloading assembly System.Core [000000001D17B2D0]. (in domain Mono, info)
Unloading image Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Core.dll [000000001D972020]. (in domain Mono, info)
GC_MAJOR: (user request) time 0.10ms, stw 0.16ms los size: 0K in use: 0K (in domain Mono, info)
GC_MAJOR_SWEEP: major size: 224K in use: 2K (in domain Mono, info)
GC_MAJOR: (user request) time 0.16ms, stw 0.19ms los size: 0K in use: 0K (in domain Mono, info)
GC_MAJOR_SWEEP: major size: 224K in use: 2K (in domain Mono, info)
Unloading domain GodotEngine.RootDomain[0000000011D35240], assembly mscorlib[0000000011C09550], ref_count=4 (in domain Mono, info)
Assembly image 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll' [0000000011F436A0] still loaded at shutdown. (in domain Mono, info)
Assembly image 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll' [0000000011EBBC10] still loaded at shutdown. (in domain Mono, info)
Assembly image 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll' [0000000011D394D0] still loaded at shutdown. (in domain Mono, info)
Assembly image 'Z:\Downloads\Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll' [0000000011F40090] still loaded at shutdown. (in domain Mono, info)

Building the editor from source using 6.6 works fine. I was using vs build tools 2017 + mono 6.6 64b. Too bad i get api mismatch with the templates else i'd just reupload an alternative binary for others to use.

It also fixes the missing "build" button & drop down in the editor menu for build tool. So I'm guessing cross compilation error for windows. System.Native.dll doesn't exist on windows

Can you locate and share the config file for your build?

Here's the diff for the etc/mono/config between 3.2-beta1_mono_win64 and 3.2-beta2_mono_win64:

--- beta1/Godot_v3.2-beta1_mono_win64/GodotSharp/Mono/etc/mono/config   2019-11-05 13:59:36.000000000 +0100
+++ beta2/Godot_v3.2-beta2_mono_win64/GodotSharp/Mono/etc/mono/config   2019-11-22 10:15:49.000000000 +0100
@@ -6,12 +6,14 @@
        <dllmap dll="libintl" name="bind_textdomain_codeset" target="libc.so.6" os="solaris"/>
        <dllmap dll="libintl" target="libc.so.6" os="!windows"/>
        <dllmap dll="i:libxslt.dll" target="libxslt.so" os="!windows"/>
-       <dllmap dll="i:odbc32.dll" target="libodbc.so" os="!windows"/>
+       <dllmap dll="i:odbc32.dll" target="libodbc.so.2" os="!windows"/>
        <dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/>
        <dllmap dll="oci" target="libclntsh.so" os="!windows"/>
        <dllmap dll="db2cli" target="libdb2_36.so" os="!windows"/>
        <dllmap dll="MonoPosixHelper" target="$mono_libdir/libMonoPosixHelper.so" os="!windows" />
-       <dllmap dll="System.Native" target="$mono_libdir/libmono-system-native.so" os="!windows" />
+       <dllmap dll="System.Native" target="$mono_libdir/libmono-native.so" os="!windows" />
+       <dllmap dll="System.Net.Security.Native" target="$mono_libdir/libmono-native.so" os="!windows" />
+       <dllmap dll="System.Security.Cryptography.Native.Apple" target="$mono_libdir/libmono-native.so" os="osx" />
        <dllmap dll="libmono-btls-shared" target="$mono_libdir/libmono-btls-shared.so" os="!windows" />
        <dllmap dll="i:msvcrt" target="libc.so.6" os="!windows"/>
        <dllmap dll="i:msvcrt.dll" target="libc.so.6" os="!windows"/>

There's some change around System.Native as the lib was renamed, but in both cases it's still labelled as os="!windows", so I don't understand why it tries to load it.

BTW the above diff explains why things are failing on OSX, as we're using a custom config file there: https://github.com/godotengine/build-containers/blob/master/files/mono-config-macosx
And I forgot to sync it with those new changes. I'll fix that in the containers.
But that doesn't explain the issue on Windows.

@akien-mga can confirm that macos change looks for the correct dylib now.

I'm also experiencing this issue on Windows 10 x64. I was really looking forward to being able to test out the C# 8.0 features.

mono log

config

mono.zip

Compiling from windows 10/vs build tools 2017 (which works fine) built against mono 6.6.0 (official), that's the GodotSharp/Mono/etc/mono folder with all the configs in there. Maybe there's something in there that isn't in the existing config which is causing the issue?

Edit: Another thing I noticed is my local windows build has the libmono-btls-shared.dll while the one you provided doesn't.

the problem is that mscorlib.dll is no longer portable and needs to be built for each platform. This will also give us some other headaches as well. I'm working on a way to fix this properly but it's not entirely trivial.

This is my mono log for the crashes I got after replacing my mono folder to use your zip, @exts .

@pfthroaway sorry, that wasn't for you lol

Same issue on Windows with a fresh install & mono 6.4.0, or with Visual Studio 2019.

Has any progress been made on this yet? I've tried compiling from source using Mono 6.6.0 by following the directions in the API, and it says compiled successfully, but I can't seem to get the executable to run the editor without errors.

@pfthroaway Are you building on Windows? This problem only happens because we cross-compile the BCL. You should not be experiencing the same issue if you built from Windows. Perhaps it's a different issue?

Anyone else still having this issue in 3.2 beta 4 on MacOs? I am able to create new projects but am still getting this error. Attempting to open existing projects from 3.2 beta 1 just crashes.

@flight714 I had forgotten to update the Mono etc/config file for macOS. Can you test this fixed build to see if it works? https://downloads.tuxfamily.org/godotengine/3.2/beta4/mono/Godot_v3.2-beta4_mono_osx.64.zip

Should now be fixed both for Windows and macOS with current beta4 binaries (as of 2019-12-21 @ 10:00 UTC). See update details on https://godotengine.org/article/dev-snapshot-godot-3-2-beta-4.
I'll wait for confirmation from both Windows and macOS users before closing.

@akien-mga editor runs fine on mac, linux (ubuntu) and windows 10. Just tested all platforms + with the latest editor fix for osx.

Awesome, thanks for testing!

Was this page helpful?
0 / 5 - 0 ratings