Open CGAleksey opened 3 days ago
I noticed OSX BigSur 11.7.10 doesn't have file: /usr/lib/libSystem.dylib
Thank you for submitting the issue!
Could you check if changing this line
https://github.com/undreamai/LLMUnity/blob/cdaff0264b5fbb4ea293c748123f462dc82692bb/Runtime/LLMLib.cs#L199
to
private const string SystemLibrary = "libSystem.B.dylib";
works for BigSur?
I tried this:
private const string SystemLibrary = "/usr/lib/libSystem.B.dylib";
In build (Player.log) I see errors:
_LLM service couldn't be created
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 DebugLogHandler_Internal_Log_m20852F18A88BB18425BA07260545E3968F7EA76C
4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918)
6 Logger_Log_mEA3D39763D610E92491AA479BA653ECFEE3E9E5C
7 InterfaceActionInvoker2<int, Il2CppObject>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Il2CppObject)
8 Debug_LogError_mB00B2B4468EF3CAF041B038D840820FB84C924B2
9 LLMUnitySetup_LogError_m699765872C2C3A8B454FE2B909DAFC8A0ED2CAE3
10 LLM_StartLLMServer_m7EC22542FA372186FDBECFE771C60CD8CCBBE8B9
11 U3CU3EcDisplayClass55_0_U3CAwakeU3Eb0_mEF8107541E2BA3BA472FF4ED5AA38A9A9ABBC622
12 Task_InnerInvoke_m4FA9E513B4B539A5AC1C40D1EF4CA85544918366
13 VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)
14 Task_Execute_m4FBCBCE932B924AD239A2448AED5708B6D14A7F1
15 Task_ExecutionContextCallback_m72CB65AAA76D5FB962E36EC25AAC150A04EB47B3
16 ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_OpenStatic(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007, Il2CppObject, MethodInfo const*)
17 ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94
18 ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8
19 Task_ExecuteWithThreadLocal_mD3F4E7ADBBC473EAF7C24B3A785EBB452D6A76BE
20 Task_ExecuteEntry_m735BD89474854D6EAA2ED929D6765AF1B4AEDCDF
21 Task_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem_mAEE759CC728F27B64F95C7B6C6E22FCD7E6F8801
22 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
23 ThreadPoolWorkQueue_Dispatch_mEAAC936B3756DAA856BA3A4D976A98A3184CDC87
24 _ThreadPoolWaitCallback_PerformWaitCallback_m6D08BAF0E0D909F86341B3EFBABCF294074C0B00
25 RuntimeInvoker_FalseByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3(void ()(), MethodInfo const, void*, void*, void)
26 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const, void, void**)
27 worker_thread(void*)
28 il2cpp::vm::ThreadStart(void*)
29 il2cpp::os::Thread::RunWrapper(void*)
30 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)
31 _pthread_start
32 threadstart
LLM service couldn't be created
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 DebugLogHandler_Internal_Log_m20852F18A88BB18425BA07260545E3968F7EA76C
4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918)
6 Logger_Log_mEA3D39763D610E92491AA479BA653ECFEE3E9E5C
7 InterfaceActionInvoker2<int, Il2CppObject>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Il2CppObject)
8 Debug_LogError_mB00B2B4468EF3CAF041B038D840820FB84C924B2
9 LLMUnitySetup_LogError_m699765872C2C3A8B454FE2B909DAFC8A0ED2CAE3
10 LLM_AssertStarted_mAF658DF13FC239B2C0E190280AF793E56DDFF9E5
11 U3CTokenizeU3Ed__96_MoveNext_m11D294F8ABBB33E41078DC407AC72D35AFAB50B1
12 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
13 AsyncTaskMethodBuilder_1_Start_TisRuntimeObject_m4CC6B9A3F0DD032BDFC0B8416CE27980382ED173_gshared
14 AsyncTaskMethodBuilder_1_Start_TisU3CTokenizeU3Ed96_tB9A33EC8B491341F11815D12FB164C826BFFE3EB_m6E913221C7A88784DA8F0ED896F44C34609ED2B1(AsyncTaskMethodBuilder_1_tA28B0962049DC249BEC0054E2394B1962E28E90E*, U3CTokenizeU3Ed96_tB9A33EC8B491341F11815D12FB164C826BFFE3EB*, MethodInfo const)
15 LLM_Tokenize_m06B188973886A3EAC73C42784FAA9F14362D0A34
16 U3CPostRequestLocalU3Ed__29_2_MoveNext_mD1B6EE9A9D96635063445F4307C0E7C5F280FCAF_gshared
17 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
18 MoveNextRunner_InvokeMoveNext_m4B7F4130C989B244668A0A57017A6C308E54D215
19 ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_OpenStatic(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007, Il2CppObject, MethodInfo const*)
20 ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94
21 ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8
22 MoveNextRunner_Run_m86395F123FB453F2B5FF89CE1E98532F7426F9DE
23 YieldAwaiter_RunAction_mC611EE7A89483B65F4CA6D5362789551201309E0
24 SendOrPostCallback_Invoke_m23B949AF9D78E8635F84E1E7775A50472B4F9C28_OpenStatic(SendOrPostCallback_t5C292A12062F24027A98492F52ECFE9802AA6F0E, Il2CppObject, MethodInfo const*)
25 WorkRequest_Invoke_mBFEC6A3799BAFDE7ED840A0523D3D56160C03921
26 UnitySynchronizationContext_Exec_m7E6352CBA70E4AB14F7D50A919C3F8C22F2E977A
27 UnitySynchronizationContext_ExecuteTasks_m3034D59292339809C6D7FA5932ACC365892B8CA1
28 RuntimeInvoker_FalseVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void ()(), MethodInfo const, void*, void*, void)
29 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const, void, void**)
30 il2cpp::vm::Runtime::Invoke(MethodInfo const, void, void, Il2CppException)
31 il2cpp_runtime_invoke
32 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
33 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
34 Scripting::UnityEngine::UnitySynchronizationContextProxy::ExecuteTasks(ScriptingExceptionPtr*)
35 InitPlayerLoopCallbacks()::UpdateScriptRunDelayedTasksRegistrator::Forward()
36 ExecutePlayerLoop(NativePlayerLoopSystem*)
37 ExecutePlayerLoop(NativePlayerLoopSystem*)
38 PlayerLoop()
39 -[PlayerAppDelegate UpdatePlayer]
40 -[PlayerAppDelegate TimerTick]
41 __NSFireTimer
42 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
43 __CFRunLoopDoTimer
44 __CFRunLoopDoTimers
45 __CFRunLoopRun
46 CFRunLoopRunSpecific
47 RunCurrentEventLoopInMode
48 ReceiveNextEventCommon
49 _BlockUntilNextEventMatchingListInModeWithFilter
50 _DPSNextEvent
51 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
52 -[NSApplication run]
53 NSApplicationMain
54 PlayerMain(int, char const**)
55 start
In Unity Editor I tried to click Play button and nothing happened for 5 mins. Looks like something freezeв, I can't type anything into input field.
Also tried this option:
private const string SystemLibrary1 = "libdl.dylib";
[DllImport ( SystemLibrary1, EntryPoint = "dlopen" )]
public static extern IntPtr dlopen1 ( string path, int mode );
[DllImport ( SystemLibrary1, EntryPoint = "dlsym" )]
public static extern IntPtr dlsym1 ( IntPtr handle, string symbol );
[DllImport ( SystemLibrary1, EntryPoint = "dlclose" )]
public static extern void dlclose1 ( IntPtr handle );
[DllImport ( SystemLibrary1, EntryPoint = "dlerror" )]
private static extern IntPtr dlerror1 ();
private const int RTLD_LAZY = 1;
private const int RTLD_NOW = 2;
public static IntPtr LoadLibrary ( string path, bool lazy = true ) {
IntPtr h = dlopen1 ( path, lazy ? RTLD_LAZY : RTLD_NOW );
var errPtr = dlerror1 ();
if (errPtr != IntPtr.Zero) {
UnityEngine.Debug.LogError ( Marshal.PtrToStringAnsi ( errPtr ) );
}
return h;
}
public static IntPtr GetSymbol ( IntPtr libraryHandle, string symbol ) {
return dlsym1 ( libraryHandle, symbol );
}
public static void UnloadLibrary ( IntPtr libraryHandle ) {
dlclose1 ( libraryHandle );
}// */
Console output:
_dlopen(/Volumes/Samsung_T5/LLM/Assets/StreamingAssets/undreamai-v1.1.13-llamacpp/macos-x64-no_acc/libundreamai_macos-x64-no_acc.dylib, 1): Symbol not found: ZNKSt3115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv Referenced from: /Volumes/Samsung_T5/LLM/Assets/StreamingAssets/undreamai-v1.1.13-llamacpp/macos-x64-no_acc/libundreamai_macos-x64-no_acc.dylib (which was built for Mac OS X 12.7) Expected in: /usr/lib/libc++.1.dylib
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:InternalLog (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
Could you try without the "/usr/lib/" part as well?
Could you try without the "/usr/lib/" part as well?
Sorry, replaced to:
private const string SystemLibrary = "libSystem.B.dylib";
UnityEditor doesn't react on input.
Player.log of build:
Found 1 interfaces on host : 0) 192.168.1.86 Multi-casting "[IP] 192.168.1.86 [Port] 55000 [Flags] 2 [Guid] 1999621394 [EditorId] 1876488654 [Version] 1048832 [Id] OSXPlayer(1,Hello-PC) [Debug] 0 [PackageName] OSXPlayer [ProjectName] LLM" to [225.0.0.222:54997]... [Physics::Module] Initialized MultithreadedJobDispatcher with {0} workers. Initialize engine version: 2021.3.45f1 (0da89fac8e79) [Subsystems] Discovering subsystems at path /Volumes/Samsung_T5/-/-/VK_PC/ooo.app/Contents/Resources/Data/UnitySubsystems GfxDevice: creating device client; threaded=1; jobified=0 Color LCD preferred device: Intel Iris Pro Graphics (low power) Metal devices available: 2 0: NVIDIA GeForce GT 750M (high power) 1: Intel Iris Pro Graphics (low power) Using device NVIDIA GeForce GT 750M (high power) Initializing Metal device caps: NVIDIA GeForce GT 750M UnloadTime: 2.707413 ms Deploy server command: ./undreamai_server -m "/Volumes/Samsung_T5/-/-/VK_PC/ooo.app/Contents/Resources/Data/StreamingAssets/AI_Models/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf" -c 512 -b 2048 --log-disable -np 1 -ngl 0 --template "llama3 chat"
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 DebugLogHandler_Internal_Log_m20852F18A88BB18425BA07260545E3968F7EA76C
4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918)
6 Logger_Log_mEA3D39763D610E92491AA479BA653ECFEE3E9E5C
7 InterfaceActionInvoker2<int, Il2CppObject>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Il2CppObject)
8 Debug_Log_m87A9A3C761FF5C43ED8A53B16190A53D08F818BB
9 LLMUnitySetup_Log_m32D48B75E9F1BDF490A447DD48FA74765BA54A20
10 LLM_GetLlamaccpArguments_mBAA0A575110845D5AFD7568B285A6BC421B273CC
11 VirtualFuncInvoker0<String_t>::Invoke(unsigned short, Il2CppObject)
12 U3CAwakeU3Ed__55_MoveNext_m27E960B9D0F9ECA562E37BB8646470FB1378184A
13 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
14 AsyncVoidMethodBuilder_Start_TisRuntimeObject_m3CA145CBB6CFE8B4ADD6148BF98E85899F95DCEA_gshared
15 AsyncVoidMethodBuilder_Start_TisU3CAwakeU3Ed__55_t38EE5BB36239051FC430359AEC3FC1C46F6FF855_mCF7F81FD427485C1DBBE80344D41E8BBD6EB7011(AsyncVoidMethodBuilder_t253E37B63E7E7B504878AE6563347C147F98EF2D*, U3CAwakeU3Ed__55_t38EE5BB36239051FC430359AEC3FC1C46F6FF855*, MethodInfo const)
16 LLM_Awake_m51DDC60BEC88DE230414540A57C296C90B3A09B8
17 RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void ()(), MethodInfo const, void*, void*, void)
18 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const, void, void**)
19 il2cpp::vm::Runtime::Invoke(MethodInfo const, void, void, Il2CppException)
20 il2cpp_runtime_invoke
21 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
22 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
23 ScriptingInvocation::InvokeChecked(ScriptingExceptionPtr*)
24 SerializableManagedRef::CallMethod(Object&, ScriptingMethodPtr)
25 MonoBehaviour::CallAwake()
26 MonoBehaviour::AddToManager()
27 MonoBehaviour::AwakeFromLoad(AwakeFromLoadMode)
28 AwakeFromLoadQueue::InvokePersistentManagerAwake(AwakeFromLoadQueue::Item*, unsigned int, AwakeFromLoadMode, bool)
29 AwakeFromLoadQueue::PersistentManagerAwakeFromLoad(ErrorsAndWarningsCapture*, bool)
30 LoadSceneOperation::CompleteAwakeSequence()
31 LoadSceneOperation::PlayerLoadSceneFromThread()
32 LoadSceneOperation::CompleteLoadFirstScene()
33 LoadSceneOperation::IntegrateMainThread()
34 PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int)
35 PreloadManager::WaitForAllAsyncOperationsToComplete()
36 -[PlayerAppDelegate UpdatePlayer]
37 -[PlayerAppDelegate TimerTick]
38 __NSFireTimer
39 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
40 __CFRunLoopDoTimer
41 __CFRunLoopDoTimers
42 __CFRunLoopRun
43 CFRunLoopRunSpecific
44 RunCurrentEventLoopInMode
45 ReceiveNextEventCommon
46 _BlockUntilNextEventMatchingListInModeWithFilter
47 _DPSNextEvent
48 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
49 -[NSApplication run]
50 NSApplicationMain
51 PlayerMain(int, char const**)
52 start
Tried architecture: x64-acc, System.Exception: Failed to load library x64-acc.
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 DebugLogHandler_Internal_Log_m20852F18A88BB18425BA07260545E3968F7EA76C
4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918)
6 Logger_Log_mEA3D39763D610E92491AA479BA653ECFEE3E9E5C
7 InterfaceActionInvoker2<int, Il2CppObject>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Il2CppObject)
8 Debug_Log_m87A9A3C761FF5C43ED8A53B16190A53D08F818BB
9 LLMUnitySetup_Log_m32D48B75E9F1BDF490A447DD48FA74765BA54A20
10 LLM_StartLLMServer_m7EC22542FA372186FDBECFE771C60CD8CCBBE8B9
11 U3CU3EcDisplayClass55_0_U3CAwakeU3Eb0_mEF8107541E2BA3BA472FF4ED5AA38A9A9ABBC622
12 Task_InnerInvoke_m4FA9E513B4B539A5AC1C40D1EF4CA85544918366
13 VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)
14 Task_Execute_m4FBCBCE932B924AD239A2448AED5708B6D14A7F1
15 Task_ExecutionContextCallback_m72CB65AAA76D5FB962E36EC25AAC150A04EB47B3
16 ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_OpenStatic(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007, Il2CppObject, MethodInfo const*)
17 ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94
18 ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8
19 Task_ExecuteWithThreadLocal_mD3F4E7ADBBC473EAF7C24B3A785EBB452D6A76BE
20 Task_ExecuteEntry_m735BD89474854D6EAA2ED929D6765AF1B4AEDCDF
21 Task_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem_mAEE759CC728F27B64F95C7B6C6E22FCD7E6F8801
22 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
23 ThreadPoolWorkQueue_Dispatch_mEAAC936B3756DAA856BA3A4D976A98A3184CDC87
24 _ThreadPoolWaitCallback_PerformWaitCallback_m6D08BAF0E0D909F86341B3EFBABCF294074C0B00
25 RuntimeInvoker_FalseByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3(void ()(), MethodInfo const, void*, void*, void)
26 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const, void, void**)
27 worker_thread(void*)
28 il2cpp::vm::ThreadStart(void*)
29 il2cpp::os::Thread::RunWrapper(void*)
30 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)
31 _pthread_start
32 thread_start
Tried architecture: x64-no_acc, System.Exception: Failed to load library x64-no_acc.
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 DebugLogHandler_Internal_Log_m20852F18A88BB18425BA07260545E3968F7EA76C
4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918)
6 Logger_Log_mEA3D39763D610E92491AA479BA653ECFEE3E9E5C
7 InterfaceActionInvoker2<int, Il2CppObject>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Il2CppObject)
8 Debug_Log_m87A9A3C761FF5C43ED8A53B16190A53D08F818BB
9 LLMUnitySetup_Log_m32D48B75E9F1BDF490A447DD48FA74765BA54A20
10 LLM_StartLLMServer_m7EC22542FA372186FDBECFE771C60CD8CCBBE8B9
11 U3CU3EcDisplayClass55_0_U3CAwakeU3Eb0_mEF8107541E2BA3BA472FF4ED5AA38A9A9ABBC622
12 Task_InnerInvoke_m4FA9E513B4B539A5AC1C40D1EF4CA85544918366
13 VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)
14 Task_Execute_m4FBCBCE932B924AD239A2448AED5708B6D14A7F1
15 Task_ExecutionContextCallback_m72CB65AAA76D5FB962E36EC25AAC150A04EB47B3
16 ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_OpenStatic(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007, Il2CppObject, MethodInfo const*)
17 ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94
18 ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8
19 Task_ExecuteWithThreadLocal_mD3F4E7ADBBC473EAF7C24B3A785EBB452D6A76BE
20 Task_ExecuteEntry_m735BD89474854D6EAA2ED929D6765AF1B4AEDCDF
21 Task_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem_mAEE759CC728F27B64F95C7B6C6E22FCD7E6F8801
22 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
23 ThreadPoolWorkQueue_Dispatch_mEAAC936B3756DAA856BA3A4D976A98A3184CDC87
24 _ThreadPoolWaitCallback_PerformWaitCallback_m6D08BAF0E0D909F86341B3EFBABCF294074C0B00
25 RuntimeInvoker_FalseByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3(void ()(), MethodInfo const, void*, void*, void)
26 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const, void, void**)
27 worker_thread(void*)
28 il2cpp::vm::ThreadStart(void*)
29 il2cpp::os::Thread::RunWrapper(void*)
30 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)
31 _pthread_start
32 thread_start
LLM service couldn't be created
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 DebugLogHandler_Internal_Log_m20852F18A88BB18425BA07260545E3968F7EA76C
4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918)
6 Logger_Log_mEA3D39763D610E92491AA479BA653ECFEE3E9E5C
7 InterfaceActionInvoker2<int, Il2CppObject>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Il2CppObject)
8 Debug_LogError_mB00B2B4468EF3CAF041B038D840820FB84C924B2
9 LLMUnitySetup_LogError_m699765872C2C3A8B454FE2B909DAFC8A0ED2CAE3
10 LLM_StartLLMServer_m7EC22542FA372186FDBECFE771C60CD8CCBBE8B9
11 U3CU3EcDisplayClass55_0_U3CAwakeU3Eb0_mEF8107541E2BA3BA472FF4ED5AA38A9A9ABBC622
12 Task_InnerInvoke_m4FA9E513B4B539A5AC1C40D1EF4CA85544918366
13 VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)
14 Task_Execute_m4FBCBCE932B924AD239A2448AED5708B6D14A7F1
15 Task_ExecutionContextCallback_m72CB65AAA76D5FB962E36EC25AAC150A04EB47B3
16 ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_OpenStatic(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007, Il2CppObject, MethodInfo const*)
17 ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94
18 ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8
19 Task_ExecuteWithThreadLocal_mD3F4E7ADBBC473EAF7C24B3A785EBB452D6A76BE
20 Task_ExecuteEntry_m735BD89474854D6EAA2ED929D6765AF1B4AEDCDF
21 Task_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem_mAEE759CC728F27B64F95C7B6C6E22FCD7E6F8801
22 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
23 ThreadPoolWorkQueue_Dispatch_mEAAC936B3756DAA856BA3A4D976A98A3184CDC87
24 _ThreadPoolWaitCallback_PerformWaitCallback_m6D08BAF0E0D909F86341B3EFBABCF294074C0B00
25 RuntimeInvoker_FalseByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3(void ()(), MethodInfo const, void*, void*, void)
26 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const, void, void**)
27 worker_thread(void*)
28 il2cpp::vm::ThreadStart(void*)
29 il2cpp::os::Thread::RunWrapper(void*)
30 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)
31 _pthread_start
32 thread_start
LLM service couldn't be created
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 DebugLogHandler_Internal_Log_m20852F18A88BB18425BA07260545E3968F7EA76C
4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C, String_t, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918)
6 Logger_Log_mEA3D39763D610E92491AA479BA653ECFEE3E9E5C
7 InterfaceActionInvoker2<int, Il2CppObject>::Invoke(unsigned short, Il2CppClass, Il2CppObject, int, Il2CppObject)
8 Debug_LogError_mB00B2B4468EF3CAF041B038D840820FB84C924B2
9 LLMUnitySetup_LogError_m699765872C2C3A8B454FE2B909DAFC8A0ED2CAE3
10 LLM_AssertStarted_mAF658DF13FC239B2C0E190280AF793E56DDFF9E5
11 U3CTokenizeU3Ed__96_MoveNext_m11D294F8ABBB33E41078DC407AC72D35AFAB50B1
12 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
13 AsyncTaskMethodBuilder_1_Start_TisRuntimeObject_m4CC6B9A3F0DD032BDFC0B8416CE27980382ED173_gshared
14 AsyncTaskMethodBuilder_1_Start_TisU3CTokenizeU3Ed96_tB9A33EC8B491341F11815D12FB164C826BFFE3EB_m6E913221C7A88784DA8F0ED896F44C34609ED2B1(AsyncTaskMethodBuilder_1_tA28B0962049DC249BEC0054E2394B1962E28E90E*, U3CTokenizeU3Ed96_tB9A33EC8B491341F11815D12FB164C826BFFE3EB*, MethodInfo const)
15 LLM_Tokenize_m06B188973886A3EAC73C42784FAA9F14362D0A34
16 U3CPostRequestLocalU3Ed__29_2_MoveNext_mD1B6EE9A9D96635063445F4307C0E7C5F280FCAF_gshared
17 InterfaceActionInvoker0::Invoke(unsigned short, Il2CppClass, Il2CppObject)
18 MoveNextRunner_InvokeMoveNext_m4B7F4130C989B244668A0A57017A6C308E54D215
19 ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_OpenStatic(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007, Il2CppObject, MethodInfo const*)
20 ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94
21 ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8
22 MoveNextRunner_Run_m86395F123FB453F2B5FF89CE1E98532F7426F9DE
23 YieldAwaiter_RunAction_mC611EE7A89483B65F4CA6D5362789551201309E0
24 SendOrPostCallback_Invoke_m23B949AF9D78E8635F84E1E7775A50472B4F9C28_OpenStatic(SendOrPostCallback_t5C292A12062F24027A98492F52ECFE9802AA6F0E, Il2CppObject, MethodInfo const*)
25 WorkRequest_Invoke_mBFEC6A3799BAFDE7ED840A0523D3D56160C03921
26 UnitySynchronizationContext_Exec_m7E6352CBA70E4AB14F7D50A919C3F8C22F2E977A
27 UnitySynchronizationContext_ExecuteTasks_m3034D59292339809C6D7FA5932ACC365892B8CA1
28 RuntimeInvoker_FalseVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void ()(), MethodInfo const, void*, void*, void)
29 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const, void, void**)
30 il2cpp::vm::Runtime::Invoke(MethodInfo const, void, void, Il2CppException)
31 il2cpp_runtime_invoke
32 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
33 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
34 Scripting::UnityEngine::UnitySynchronizationContextProxy::ExecuteTasks(ScriptingExceptionPtr*)
35 InitPlayerLoopCallbacks()::UpdateScriptRunDelayedTasksRegistrator::Forward()
36 ExecutePlayerLoop(NativePlayerLoopSystem*)
37 ExecutePlayerLoop(NativePlayerLoopSystem*)
38 PlayerLoop()
39 -[PlayerAppDelegate UpdatePlayer]
40 -[PlayerAppDelegate TimerTick]
41 __NSFireTimer
42 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
43 __CFRunLoopDoTimer
44 __CFRunLoopDoTimers
45 __CFRunLoopRun
46 CFRunLoopRunSpecific
47 RunCurrentEventLoopInMode
48 ReceiveNextEventCommon
49 _BlockUntilNextEventMatchingListInModeWithFilter
50 _DPSNextEvent
51 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
52 -[NSApplication run]
53 NSApplicationMain
54 PlayerMain(int, char const**)
55 start
Describe the bug
I tried to run LLM on MacBook Pro:
I used "Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf"
Steps to reproduce
Just run it on OSX, hit play button and you wil see in console: LLM service couldn't be created
0 GetStacktrace(int)
1 DebugStringToFile(DebugStringToFileData const&)
2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
LLMUnity version
v2.3.0
Operating System
macOs