LoGaCulture / LUTE

LUTE stands for LoGaCulture Unity Toolkit/Engine. A Unity based tool to create narrative rich location-based games for the purposes of heritage preservation.
MIT License
0 stars 0 forks source link

Adding the newest release as a unity package (1.0.0 Alpha) causes Unity to crash with no option to even get in the engine. #7

Closed IoIoToTM closed 2 months ago

IoIoToTM commented 2 months ago

Describe the bug Pretty much what the title says, using Unity 2022.3.10f1.

To Reproduce Steps to reproduce the behavior:

  1. Creating a new project in Unity 2022.3.10f1.
  2. Go to Asstets->Import Package->Custom Package and select LUTE.unitypackage from where I downloaded it
  3. When prompted that importing this will overwrite the current project settings, select Import
  4. Import everything, as well as the Project Settings
  5. Wait for it to Import Package, but it crashes after a bit and then reopening Unity causes a crash before the engine even opens

Desktop:

Additional context At the end of the Editor.log file that is created after a crash (I just replaced the path on the first line). It looks like maybe it's something with the Burst compiler:

Unable to initialize the burst JIT compiler. The folder `path-to-project\Packages\com.unity.burst\.Runtime` does not exist
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:LogError (object)
Unity.Burst.LowLevel.BurstCompilerService:Initialize (string,Unity.Burst.LowLevel.BurstCompilerService/ExtractCompilerFlags)
Unity.Burst.Editor.BurstLoader:.cctor () (at ./Packages/com.unity.burst/Runtime/Editor/BurstLoader.cs:132)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor (System.RuntimeTypeHandle)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

(Filename: ./Packages/com.unity.burst/Runtime/Editor/BurstLoader.cs Line: 132)

=================================================================
    Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at Unity.Burst.LowLevel.BurstCompilerService:CompileAsyncDelegateMethod <0x00094>
      at Unity.Burst.BurstCompiler:Compile <0x0031a>
      at Unity.Burst.BurstCompiler:CompileILPPMethod2 <0x000ea>
      at Add2Numbers_00000007$BurstDirectCall:Constructor <0x00032>
      at Add2Numbers_00000007$BurstDirectCall:.cctor <0x00032>
      at System.Object:runtime_invoke_void <0x00084>
      at <unknown> <0xffffffff>
      at $BurstDirectCallInitializer:Initialize <0x0001a>
      at System.Object:runtime_invoke_void <0x000d2>
      at <unknown> <0xffffffff>
      at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x000af>
      at System.Reflection.RuntimeMethodInfo:Invoke <0x0011a>
      at System.Reflection.MethodBase:Invoke <0x0003d>
      at UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes <0x006da>
      at System.Object:runtime_invoke_void <0x00084>
=================================================================
Received signal SIGSEGV
Obtained 53 stack frames
0x00007ff70338aec9 (Unity) BurstCompilerService::CompileAsync
0x00007ff70338b45e (Unity) BurstCompilerService::CompileAsync
0x00007ff70338b535 (Unity) CompileAsyncDelegateMethod
0x00007ff702a41ad5 (Unity) BurstCompilerService_CUSTOM_CompileAsyncDelegateMethod
0x0000020dc6f76115 (Mono JIT Code) (wrapper managed-to-native) Unity.Burst.LowLevel.BurstCompilerService:CompileAsyncDelegateMethod (object,string)
0x0000020dc6f74cfb (Mono JIT Code) Unity.Burst.BurstCompiler:Compile (object,System.Reflection.MethodInfo,bool,bool) (at ./Packages/com.unity.burst/Runtime/BurstCompiler.cs:417)
0x0000020dc6f746cb (Mono JIT Code) Unity.Burst.BurstCompiler:CompileILPPMethod2 (System.RuntimeMethodHandle) (at ./Packages/com.unity.burst/Runtime/BurstCompiler.cs:226)
0x0000020dc6f74583 (Mono JIT Code) BurstJobTester2/Add2Numbers_00000007$BurstDirectCall:Constructor ()
0x0000020dc6f744e3 (Mono JIT Code) BurstJobTester2/Add2Numbers_00000007$BurstDirectCall:.cctor ()
0x0000020dc6f743e5 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007ffcdafce274 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffcdaf0eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffcdaf09c20 (mono-2.0-bdwgc) mono_runtime_class_init_full (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:563)
0x00007ffcdafc59fe (mono-2.0-bdwgc) mono_jit_compile_method_inner (at C:/build/output/Unity-Technologies/mono/mono/mini/mini.c:4222)
0x00007ffcdafcc19c (mono-2.0-bdwgc) mono_jit_compile_method_with_opt (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:2700)
0x00007ffcdb0bf78f (mono-2.0-bdwgc) common_call_trampoline (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-trampolines.c:641)
0x00007ffcdb0c0358 (mono-2.0-bdwgc) mono_magic_trampoline (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-trampolines.c:781)
0x0000020faf2603a6 ((<unknown>)) 
0x0000020dc6f73fcb (Mono JIT Code) $BurstDirectCallInitializer:Initialize ()
0x0000020dc6f74433 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007ffcdafce274 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffcdaf0eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffcdaf157bf (mono-2.0-bdwgc) mono_runtime_try_invoke_array (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:5768)
0x00007ffcdae4ced0 (mono-2.0-bdwgc) ves_icall_InternalInvoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/icall.c:4041)
0x00007ffcdae716c1 (mono-2.0-bdwgc) ves_icall_InternalInvoke_raw (at C:/build/output/Unity-Technologies/mono/mono/metadata/icall-def.h:692)
0x0000020dc2354aa0 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo:InternalInvoke (System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
0x0000020dc2353a6b (Mono JIT Code) System.Reflection.RuntimeMethodInfo:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000020dc235392e (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x0000020dc6f72d6b (Mono JIT Code) UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes ()
0x0000020dd118b0d5 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007ffcdafce274 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffcdaf0eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffcdaf0ed0c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff703a49d14 (Unity) scripting_method_invoke
0x00007ff703a27e34 (Unity) ScriptingInvocation::Invoke
0x00007ff703a22a85 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff703b7514b (Unity) Scripting::UnityEditor::EditorAssembliesProxy::ProcessInitializeOnLoadMethodAttributes
0x00007ff703a1cc39 (Unity) MonoManager::SetupLoadedEditorAssemblies
0x00007ff703a125c9 (Unity) MonoManager::FinalizeReload
0x00007ff704e039ca (Unity) ScriptingInitializer::FinalizeReload
0x00007ff704e796f4 (Unity) ImportOutOfDateAssets
0x00007ff704e84709 (Unity) RefreshInternalV2
0x00007ff704e8bfdf (Unity) StopAssetImportingV2Internal
0x00007ff704e85a3c (Unity) RefreshV2
0x00007ff704df9b70 (Unity) AssetDatabase::Refresh
0x00007ff7045594b3 (Unity) ImportPackageAssets
0x00007ff704573dd3 (Unity) TickPackageImport
0x00007ff7046972a9 (Unity) Application::TickTimer
0x00007ff704b0e16a (Unity) MainMessageLoop
0x00007ff704b139d0 (Unity) WinMain
0x00007ff705ef7dbe (Unity) __scrt_common_main_seh
0x00007ffd7585257d (KERNEL32) BaseThreadInitThunk
0x00007ffd76bcaa48 (ntdll) RtlUserThreadStart
Jacki3 commented 2 months ago

Heya, thank you for a detailed report!

I have just tried reproducing this and cannot - I downloaded the package, created a new 2D Unity project and then double-clicked the package that was downloaded (same as importing using context menus) and all files were imported without errors and the sample scenes/Flow Engine and Window all opening and working as expected.

I will try to reproduce this again and then try another machine to ensure it works across devices!

Thank you for your patience.

IoIoToTM commented 2 months ago

After some back and forth, and a lot of testing, it turns out that the basic new project in my version of Unity doesn't install Burst automatically, and somehow, the dependencies didn't take care of that when importing the package. Basically, to fix the issue, I installed Burst, and then imported the package, and it worked.