thewh1teagle / sherpa-rs

Rust bindings to https://github.com/k2-fsa/sherpa-onnx
MIT License
37 stars 9 forks source link

MacOS: Context leak detected, msgtracer returned -1 #23

Open altunenes opened 1 week ago

altunenes commented 1 week ago

Hello! Thank you for this work again! I tried to run the example exactly https://github.com/thewh1teagle/sherpa-rs/blob/main/examples/diarize.rs here with: " let segment_model_path = "model.onnx"; //latest seg. model from sherpa... let embedding_model_path = "wespeaker_en_voxceleb_CAM++.onnx"; let wav_path = "normalized_audio.wav";"

Context leak detected, msgtracer returned -1 Context leak detected, msgtracer returned -1 Context leak detected, msgtracer returned -1 πŸ—£οΈ Diarizing... 0% 🎯 Context leak detected, msgtracer returned -1 Context leak detected, msgtracer returned -1 πŸ—£οΈ Diarizing... 0% 🎯 πŸ—£οΈ Diarizing... 0% 🎯 πŸ—£οΈ Diarizing... 1% 🎯 πŸ—£οΈ Diarizing... 1% 🎯 πŸ—£οΈ Diarizing... 1% 🎯 πŸ—£οΈ Diarizing... 1% 🎯 πŸ—£οΈ Diarizing... 2% 🎯 πŸ—£οΈ Diarizing... 2% 🎯

The code works without any problems. However, I wanted to bring this warning message to your attention.

thewh1teagle commented 1 week ago

@altunenes I can't reproduce on Windows 11. Does it happens with the latest version of sherpa-rs?

altunenes commented 1 week ago

yes, it still persists. Also, I see this on the pyannote too and maybe whisper-rs related thing.

I've never seen it on Windows either. It's like a β€œwarning” message that only appears on macos and it's very difficult to understand its origin.

note: Since it doesn't prevent the code from working and doesn't cause a major β€œleak” (at least as far as I can see), I didn't care too much, but I wanted to let you know anyway. :-)