This library is working fine, however if it make at least one SynthisizeAsync call then exit the app, the app crashes. If I don't make the call, it closes fine.
This is the crash result:
(lldb) process attach --pid 30135
Process 30135 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00000001877fb478 libsystem_kernel.dylib`__wait4 + 8
libsystem_kernel.dylib`__wait4:
-> 0x1877fb478 <+8>: b.lo 0x1877fb498 ; <+40>
0x1877fb47c <+12>: pacibsp
0x1877fb480 <+16>: stp x29, x30, [sp, #-0x10]!
0x1877fb484 <+20>: mov x29, sp
Executable binary set to "/Users/steven/Programming/src/WingmanSharp/WingmanApp/bin/Debug/net10.0/WingmanApp".
Architecture set to: arm64-apple-macosx-.
(lldb) btp │ signal SIGSTOP
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00000001877fb478 libsystem_kernel.dylib`__wait4 + 8
frame #1: 0x0000000171b2bee4 libggml-base-whisper.dylib`ggml_uncaught_exception() + 12
frame #2: 0x00000001877eb75c libc++abi.dylib`std::__terminate(void (*)()) + 16
frame #3: 0x00000001877eb710 libc++abi.dylib`std::terminate() + 108
frame #4: 0x0000000303b1af34 libonnxruntime.dylib`__clang_call_terminate + 12
libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument::~unique_ptr[abi:ue170006]() + 84
frame #6: 0x00000001876ede48 libsystem_c.dylib`__cxa_finalize_ranges + 416
frame #7: 0x00000001876edc48 libsystem_c.dylib`exit + 44
frame #8: 0x00000001874442e4 libdyld.dylib`dyld4::LibSystemHelpers::exit(int) const + 20
frame #9: 0x000000018747beb0 dyld`dyld4::LibSystemHelpersWrapper::exit(int) const + 164
frame #10: 0x000000018747bdd4 dyld`start + 7040
(lldb) quit
To be clear, I have called this several times in testing and it worked fine. But as soon as I exit the app, bang. If I comment out the lines below, no bang.
This is on an M4 Macook Pro using Kokoro.Cpu v0.6.7.
var modelPath = await LoadModelAsync(_ => _outputService.AppendInfo(".")).ConfigureAwait(false); // <- my own loader
using var wavSynth = new KokoroWavSynthesizer(modelPath);
var voice = KokoroVoiceManager.GetVoice(_configuration.Voice.Name);
var bytes = await _wavSynth.SynthesizeAsync(text, voice).ConfigureAwait(false);
This library is working fine, however if it make at least one SynthisizeAsync call then exit the app, the app crashes. If I don't make the call, it closes fine.
This is the crash result:
To be clear, I have called this several times in testing and it worked fine. But as soon as I exit the app, bang. If I comment out the lines below, no bang.
This is on an M4 Macook Pro using Kokoro.Cpu v0.6.7.