UnityGLTF Failed to run on windows runtime.
Log data:
Setting up 2 worker threads for Enlighten.
Thread -> id: 3484 -> priority: 1
Thread -> id: 4938 -> priority: 1
TypeLoadException: Could not load type 'System.ComponentModel.INotifyPropertyChanging' from assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at GLTF.Schema.GLTFProperty.DefaultPropertyDeserializer (GLTF.Schema.GLTFRoot root, Newtonsoft.Json.JsonReader reader) [0x00028] in D:\work\study\UnityGLTF\GLTFSerialization\GLTFSerialization\Schema\GLTFProperty.cs:52
at GLTF.Schema.GLTFChildOfRootProperty.DefaultPropertyDeserializer (GLTF.Schema.GLTFRoot root, Newtonsoft.Json.JsonReader reader) [0x00026] in D:\work\study\UnityGLTF\GLTFSerialization\GLTFSerialization\Schema\GLTFChildOfRootProperty.cs:33
at GLTF.Schema.Material.Deserialize (GLTF.Schema.GLTFRoot root, Newtonsoft.Json.JsonReader reader) [0x001f2] in D:\work\study\UnityGLTF\GLTFSerialization\GLTFSerialization\Schema\Material.cs:159
at GLTF.Schema.GLTFRoot+<>c__DisplayClass20_0.
(Filename: D:/work/study/UnityGLTF/GLTFSerialization/GLTFSerialization/Schema/GLTFProperty.cs Line: 52)
Anybody knows why?
Got the same issue.. Any fixes???
Looks like it had trouble with loading an extension.
Which extensions did the model have?
I fixed this issue for myself by changing the "Api Compatibility Level" from ".NET 2.0 subset" to ".NET 2.0" in Edit->Project Settings->Player->Other Settings->Configuration. @tufeixp @taharaza16 @StephenHodgson Please test it and tell me if it works! Thanks.
Please reopen this issue. It will happen when running on window7 pc with multithread enabled. I have to use api from .NET 4.x with untiy 2018.3.0f2, so unable to switch to .NET standard 2.0.
Looks like this has something to do with windows 7's GC thread sleep time protection, no problem with windows 10. And it only happen when importing large models in runtime.
crash logs: No mono DLL path set. This app is either running IL2CPP, or the crash occurred before mono was initialized.
Stack Trace of Crashed Thread 10708: 0x000007FEE73084B5 (GameAssembly) WriteZStream 0x000007FEE72FCEBC (GameAssembly) WriteZStream 0x000007FEE72EEB88 (GameAssembly) il2cpp_unity_liveness_calculation_from_statics 0x000007FEE730575A (GameAssembly) WriteZStream 0x000007FEE7305639 (GameAssembly) WriteZStream 0x000007FEE730A9AD (GameAssembly) WriteZStream 0x000007FEE730ADEE (GameAssembly) WriteZStream 0x000007FEE72FF263 (GameAssembly) WriteZStream 0x000007FEE72FDB6E (GameAssembly) WriteZStream 0x000007FEE730277F (GameAssembly) WriteZStream 0x000007FEE7304AF3 (GameAssembly) WriteZStream 0x000007FEE72E5C4E (GameAssembly) il2cpp_unity_liveness_calculation_from_statics 0x000007FEE72EE432 (GameAssembly) il2cpp_unity_liveness_calculation_from_statics 0x000007FEE798E268 (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE798D5F4 (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE752657B (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE7526998 (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE7523FA8 (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE765655A (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE768558F (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE7C06AC4 (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE7685475 (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE768513E (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE768B601 (GameAssembly) UseUnityPalForTimeZoneInformation 0x000007FEE71FDBF1 (GameAssembly) il2cpp_value_box 0x000007FEE72ED757 (GameAssembly) il2cpp_unity_liveness_calculation_from_statics 0x000007FEE72CCBE5 (GameAssembly) il2cpp_unity_liveness_calculation_from_statics 0x000007FEE72EFC7D (GameAssembly) il2cpp_unity_liveness_calculation_from_statics 0x000007FEE72E55E3 (GameAssembly) il2cpp_unity_liveness_calculation_from_statics 0x0000000076E259CD (kernel32) BaseThreadInitThunk 0x0000000076F8385D (ntdll) RtlUserThreadStart
Please update to the latest version and open a new issue if the problem persists. Thanks!