Skip to content

Crashes on iOS devices in some cases #1509

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

Open
sindresorhus opened this issue Nov 17, 2023 · 2 comments
Open

Crashes on iOS devices in some cases #1509

sindresorhus opened this issue Nov 17, 2023 · 2 comments

Comments

@sindresorhus
Copy link
Contributor

I'm not able to reproduce myself, but I'm seeing it in Sentry for my app using Whisper.cpp 1.5.0 from Swift.

EXC_BAD_ACCESS: backend > de=3 "Encountered un > decoder.blocks. > Error Domain=AGXMetalA12 Code=3 "Encountered unlowered function call to air.simd_max.f32" UserInfo={NSLocalizedDescription=Encountered unlowered function call to air.simd_max.f32} > ggml_metal_init >
KERN_INVALID_ADDRESS at 0x228.

Stack trace:

OS Version: iOS 17.0 (21A329)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: SEGV_NOOP at 0x0000000000000228
Crashed Thread: 8

Application Specific Information:
backend > decoder.blocks. > Error Domain=AGXMetalA12 Code=3 "Encountered unlowered function call to air.simd_max.f32" UserInfo={NSLocalizedDescription=Encountered unlowered function call to air.simd_max.f32} > ggml_metal_init >
KERN_INVALID_ADDRESS at 0x228.

Thread 8 Crashed:
0   Aiko                            0x2041ec0d0         ggml_metal_add_buffer (ggml-metal.m:512)
1   Aiko                            0x2041ef4d4         ggml_backend_metal_alloc_buffer (ggml-metal.m:1657)
2   Aiko                            0x204220210         whisper_model_load (whisper.cpp:1370)
3   Aiko                            0x20421ca74         whisper_init_with_params_no_state (whisper.cpp:3102)
4   Aiko                            0x20421c8b4         whisper_init_from_file_with_params_no_state (whisper.cpp:3050)
5   Aiko                            0x2042213ac         whisper_init_from_file_with_params (whisper.cpp:3115)
6   Aiko                            0x2041500cc         WhisperContext.init (Whisper.swift:380)
7   Aiko                            0x20414b854         [inlined] WhisperContext.__allocating_init
8   Aiko                            0x20414b854         [inlined] Whisper.loadModelIfNeeded (Whisper.swift:152)
9   Aiko                            0x20414b854         Whisper.init (Whisper.swift:16)
10  libswift_Concurrency.dylib      0x331455c28         swift::runJobInEstablishedExecutorContext
@sindresorhus
Copy link
Contributor Author

Seems to be a pretty widespread issue. Already seeing 100+ users having this crash in Sentry.

@sindresorhus
Copy link
Contributor Author

Ok, I see now that this is a duplicate of #1387

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

No branches or pull requests

1 participant