Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial model download causes the app to crash at the next launch #2

Open
frantzmiccoli opened this issue Sep 17, 2024 · 2 comments
Open
Labels

Comments

@frantzmiccoli
Copy link

I did the mistake of trying the app on a poor connection.

I interrupted the model download. Relaunching the index command causes this output:

Updating index for 966 images...
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | ETA: Waiting | 0/9662024-09-17 09:53:12.012 node[54548:1653631] -[AGXG13XDevice architecture]: unrecognized selector sent to instance 0x14103aa00
2024-09-17 09:53:12.021 node[54548:1653631] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AGXG13XDevice architecture]: unrecognized selector sent to instance 0x14103aa00'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001b35bd0b8 __exceptionPreprocess + 240
	1   libobjc.A.dylib                     0x00000001b33078dc objc_exception_throw + 60
	2   CoreFoundation                      0x00000001b3650ee4 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00000001b351c3c4 ___forwarding___ + 1764
	4   CoreFoundation                      0x00000001b351bc20 _CF_forwarding_prep_0 + 96
	5   mlx.node                            0x000000010b26278c _ZN3mlx4core5metal11device_infoEv + 92
	6   mlx.node                            0x000000010b24c21c _ZN3mlx4core5metal14MetalAllocatorC2Ev + 140
	7   mlx.node                            0x000000010b24d228 _ZN3mlx4core5metal15set_cache_limitEm + 92
	8   mlx.node                            0x000000010a98fdb0 _ZN2ki8internal15CallbackInvokerIFmmEE6InvokeEPNS_9ArgumentsEPKNS0_14CallbackHolderIS2_EEPb + 176
	9   mlx.node                            0x000000010a98fb14 _ZN2ki8internal12ReturnToNodeIFmmEE6InvokeEP10napi_env__P20napi_callback_info__ + 56
	10  node                                0x00000001048048b8 _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE + 72
	11  node                                0x00000001045b7118 Builtins_CallApiCallbackGeneric + 184
	12  node                                0x00000001045b4ef0 Builtins_InterpreterEntryTrampoline + 272
	13  node                                0x00000001045c35c0 Builtins_LoadIC_NoFeedback + 3936
	14  node                                0x000000010471fc98 Builtins_GetNamedPropertyHandler + 4632
	15  node                                0x00000001045b4ef0 Builtins_InterpreterEntryTrampoline + 272
	16  node                                0x00000001045b4ef0 Builtins_InterpreterEntryTrampoline + 272
	17  node                                0x00000001045b4ef0 Builtins_InterpreterEntryTrampoline + 272
	18  node                                0x00000001045b4ef0 Builtins_InterpreterEntryTrampoline + 272
	19  node                                0x00000001045b2c0c Builtins_JSEntryTrampoline + 172
	20  node                                0x00000001045b28f4 Builtins_JSEntry + 148
	21  node                                0x0000000104b17238 _ZN2v88internal12_GLOBAL__N_16InvokeEPNS0_7IsolateERKNS1_12InvokeParamsE + 1524
	22  node                                0x0000000104b16bc8 _ZN2v88internal9Execution4CallEPNS0_7IsolateENS0_6HandleINS0_6ObjectEEES6_iPS6_ + 92
	23  node                                0x0000000104a1f600 _ZN2v88Function4CallENS_5LocalINS_7ContextEEENS1_INS_5ValueEEEiPS5_ + 204
	24  node                                0x0000000104769b88 _ZN4node20InternalMakeCallbackEPNS_11EnvironmentEN2v85LocalINS2_6ObjectEEES5_NS3_INS2_8FunctionEEEiPNS3_INS2_5ValueEEENS_13async_contextES9_ + 504
	25  node                                0x0000000104789554 _ZN4node9AsyncWrap12MakeCallbackEN2v85LocalINS1_8FunctionEEEiPNS2_INS1_5ValueEEE + 304
	26  node                                0x00000001048b128c _ZN4node6worker11MessagePort9OnMessageENS1_21MessageProcessingModeE + 544
	27  libuv.1.dylib                       0x0000000108b2e430 uv__async_io + 268
	28  libuv.1.dylib                       0x0000000108b3e02c uv__io_poll + 1408
	29  libuv.1.dylib                       0x0000000108b2e8c4 uv_run + 272
	30  node                                0x000000010476a418 _ZN4node21SpinEventLoopInternalEPNS_11EnvironmentE + 256
	31  node                                0x0000000104947210 _ZN4node6worker6Worker3RunEv + 1700
	32  node                                0x0000000104949d68 _ZZN4node6worker6Worker11StartThreadERKN2v820FunctionCallbackInfoINS2_5ValueEEEEN3$_38__invokeEPv + 56
	33  libsystem_pthread.dylib             0x00000001b347026c _pthread_start + 148
	34  libsystem_pthread.dylib             0x00000001b346b08c thread_start + 8
)
libc++abi: terminating with uncaught exception of type NSException

Anyway to remove the downloaded models and reset the state?

@zcbenz zcbenz added the bug label Sep 17, 2024
@zcbenz
Copy link
Contributor

zcbenz commented Sep 17, 2024

You can work around it by removing the cache dir, on mac it is ~/Library/Caches/sisi/.

@frantzmiccoli
Copy link
Author

Done, it indeed reloaded the models, but unfortunately the rest was unchanged and the same error appeared after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants