Describe the bug
Environment:
Unity Version: 2022.3.34
Plugin: LLMUnity
Hardware: AMD Radeon RX 7700 XT / Cpu" 12490f
OS: Windows 11
The Unity Editor crashes immediately (SIGSEGV) whenever I select a model or try to load it. If no model is selected, the project runs fine. I have checked various community posts but haven't found a working solution for this specific crash.
The stack trace consistently points to a segmentation fault in the native library:
0x00007ffa09da5377 (llamalib_win-x64_avx2) LLM::embeddings
Steps to reproduce
=================================================================
Received signal SIGSEGV
Obtained 39 stack frames
0x00007ffa09da5377 (llamalib_win-x64_avx2) LLM::embeddings
0x00007ffa09da8c1b (llamalib_win-x64_avx2) LLM_Debug
0x0000022ffcdc23ba (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_00007FFA09DA8BF0 (int)
0x0000022ffcdad6c3 (Mono JIT Code) UndreamAI.LlamaLib.LlamaLib:.ctor (bool) (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LlamaLib/LlamaLib.cs:700)
0x0000022ffcdad26b (Mono JIT Code) LLMUnity.LLM:CreateLib () (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LLM.cs:465)
0x0000022ffcdabdeb (Mono JIT Code) LLMUnity.LLM/d__107:MoveNext () (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LLM.cs:429)
0x0000022ffcdabc6b (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<LLMUnity.LLM/d__107> (LLMUnity.LLM/d__107&)
0x0000022ffcdabb53 (Mono JIT Code) LLMUnity.LLM:StartServiceAsync ()
0x0000022ffcdab82b (Mono JIT Code) LLMUnity.LLM/d__102:MoveNext () (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LLM.cs:363)
0x0000022ffcdab713 (Mono JIT Code) System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<LLMUnity.LLM/d__102> (LLMUnity.LLM/d__102&)
0x0000022ffcdab613 (Mono JIT Code) LLMUnity.LLM:Awake ()
0x0000022ffb33b248 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffa414c4c1e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffa413fd254 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffa413fd3cc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff7536b6174 (Unity) scripting_method_invoke
0x00007ff753693e64 (Unity) ScriptingInvocation::Invoke
0x00007ff753693f4e (Unity) ScriptingInvocation::InvokeChecked
0x00007ff753736d86 (Unity) SerializableManagedRef::CallMethod
0x00007ff75367b3bb (Unity) MonoBehaviour::CallAwake
0x00007ff753679855 (Unity) MonoBehaviour::AddToManager
0x00007ff75367a59a (Unity) MonoBehaviour::AwakeFromLoad
0x00007ff7537795bd (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
0x00007ff75377a591 (Unity) AwakeFromLoadQueue::PersistentManagerSingleQueueAwakeFromLoad
0x00007ff75377a200 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad_NoChecks
0x00007ff753372d25 (Unity) LoadSceneOperation::CompleteAwakeSequence
0x00007ff7533738a0 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
0x00007ff75337458e (Unity) LoadSceneOperation::IntegrateMainThread
0x00007ff753377bae (Unity) PreloadManager::UpdatePreloadingSingleStep
0x00007ff7533782cf (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete
0x00007ff754607582 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007ff754300c56 (Unity) PlayerLoopController::EnterPlayMode
0x00007ff754311416 (Unity) PlayerLoopController::SetIsPlaying
0x00007ff754314b10 (Unity) Application::TickTimer
0x00007ff7547978ea (Unity) MainMessageLoop
0x00007ff75479c7c0 (Unity) WinMain
0x00007ff755b81f0e (Unity) __scrt_common_main_seh
0x00007ffb75b7e957 (KERNEL32) BaseThreadInitThunk
0x00007ffb7712427c (ntdll) RtlUserThreadStart
LLMUnity version
3.0.3
Operating System
windows 11
Describe the bug
Environment:
Unity Version: 2022.3.34
Plugin: LLMUnity
Hardware: AMD Radeon RX 7700 XT / Cpu" 12490f
OS: Windows 11
The Unity Editor crashes immediately (SIGSEGV) whenever I select a model or try to load it. If no model is selected, the project runs fine. I have checked various community posts but haven't found a working solution for this specific crash.
The stack trace consistently points to a segmentation fault in the native library:
0x00007ffa09da5377 (llamalib_win-x64_avx2) LLM::embeddings
Steps to reproduce
=================================================================
Received signal SIGSEGV
Obtained 39 stack frames
0x00007ffa09da5377 (llamalib_win-x64_avx2) LLM::embeddings
0x00007ffa09da8c1b (llamalib_win-x64_avx2) LLM_Debug
0x0000022ffcdc23ba (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_00007FFA09DA8BF0 (int)
0x0000022ffcdad6c3 (Mono JIT Code) UndreamAI.LlamaLib.LlamaLib:.ctor (bool) (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LlamaLib/LlamaLib.cs:700)
0x0000022ffcdad26b (Mono JIT Code) LLMUnity.LLM:CreateLib () (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LLM.cs:465)
0x0000022ffcdabdeb (Mono JIT Code) LLMUnity.LLM/d__107:MoveNext () (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LLM.cs:429)
0x0000022ffcdabc6b (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<LLMUnity.LLM/d__107> (LLMUnity.LLM/d__107&)
0x0000022ffcdabb53 (Mono JIT Code) LLMUnity.LLM:StartServiceAsync ()
0x0000022ffcdab82b (Mono JIT Code) LLMUnity.LLM/d__102:MoveNext () (at ./Library/PackageCache/ai.undream.llm@2c30b44020/Runtime/LLM.cs:363)
0x0000022ffcdab713 (Mono JIT Code) System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<LLMUnity.LLM/d__102> (LLMUnity.LLM/d__102&)
0x0000022ffcdab613 (Mono JIT Code) LLMUnity.LLM:Awake ()
0x0000022ffb33b248 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffa414c4c1e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffa413fd254 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffa413fd3cc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff7536b6174 (Unity) scripting_method_invoke
0x00007ff753693e64 (Unity) ScriptingInvocation::Invoke
0x00007ff753693f4e (Unity) ScriptingInvocation::InvokeChecked
0x00007ff753736d86 (Unity) SerializableManagedRef::CallMethod
0x00007ff75367b3bb (Unity) MonoBehaviour::CallAwake
0x00007ff753679855 (Unity) MonoBehaviour::AddToManager
0x00007ff75367a59a (Unity) MonoBehaviour::AwakeFromLoad
0x00007ff7537795bd (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
0x00007ff75377a591 (Unity) AwakeFromLoadQueue::PersistentManagerSingleQueueAwakeFromLoad
0x00007ff75377a200 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad_NoChecks
0x00007ff753372d25 (Unity) LoadSceneOperation::CompleteAwakeSequence
0x00007ff7533738a0 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
0x00007ff75337458e (Unity) LoadSceneOperation::IntegrateMainThread
0x00007ff753377bae (Unity) PreloadManager::UpdatePreloadingSingleStep
0x00007ff7533782cf (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete
0x00007ff754607582 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007ff754300c56 (Unity) PlayerLoopController::EnterPlayMode
0x00007ff754311416 (Unity) PlayerLoopController::SetIsPlaying
0x00007ff754314b10 (Unity) Application::TickTimer
0x00007ff7547978ea (Unity) MainMessageLoop
0x00007ff75479c7c0 (Unity) WinMain
0x00007ff755b81f0e (Unity) __scrt_common_main_seh
0x00007ffb75b7e957 (KERNEL32) BaseThreadInitThunk
0x00007ffb7712427c (ntdll) RtlUserThreadStart
LLMUnity version
3.0.3
Operating System
windows 11