whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

App crashes after live transcribing for awhile

Open jacobjiangwei opened this issue 8 months ago • 0 comments

I use the sample in here https://github.com/ggerganov/whisper.cpp/blob/master/examples/whisper.swiftui/whisper.cpp.swift/LibWhisper.swift to do a live transcribing every 5 seconds or so.

It works great but I observed some issue:

memory gets bigger and bigger eventually it crashes after awhile, 10~20 minutes

Here is crash stack and screenshots Thread 520: EXC_BAD_ACCESS (code=1, address=0x20)

static struct ggml_object * ggml_new_object(struct ggml_context * ctx, enum ggml_object_type type, size_t size) { // always insert objects at the end of the context's memory pool struct ggml_object * obj_cur = ctx->objects_end;

image image

jacobjiangwei avatar Jun 18 '24 08:06 jacobjiangwei