Skip to content

Add ggml_abort callback function to handle errors - #244

Merged
Tabby merged 1 commit into
masterfrom
add-ggml-abort-callback
Oct 27, 2025
Merged

Add ggml_abort callback function to handle errors#244
Tabby merged 1 commit into
masterfrom
add-ggml-abort-callback

Conversation

@Tabby

@Tabby Tabby commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

Apparently whisper.cpp has the ability to set a callback function that is called when there's an error in the GGML processing. It's poorly (not at all) documented, and seems to take a string argument, though the parameter is always null when it's been called, but having it set seems to prevent some crashes... somehow?? I guess it expects there to be one, so if there isn't we get a null pointer exception

Apparently whisper.cpp has the ability to set a callback function that is called when there's an error in the GGML
processing. It's poorly (not at all) documented, and seems to take a string argument, though the parameter is always
`null` when it's been called, but having it set seems to prevent some crashes... somehow?? I guess it expects there to
be one, so if there isn't we get a null pointer exception
@Tabby
Tabby force-pushed the add-ggml-abort-callback branch from 169d866 to bdf0f5a Compare October 23, 2025 23:13
@Tabby
Tabby merged commit 0f77a8f into master Oct 27, 2025
11 checks passed
@Tabby
Tabby deleted the add-ggml-abort-callback branch October 27, 2025 15:18
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

Successfully merging this pull request may close these issues.

1 participant