tazz4843 / whisper-rs

Rust bindings to https://github.com/ggerganov/whisper.cpp
The Unlicense
607 stars 105 forks source link

progress callback crash #134

Open thewh1teagle opened 2 months ago

thewh1teagle commented 2 months ago

The crash happens only in release build on windows when using move closure (closure without move works)

      params.set_progress_callback_safe(move |progress| {
            // move result in crash! but necessary for passing it into another callback 
            debug!("progress callback {}", progress);
        });

Maybe related https://github.com/tazz4843/whisper-rs/pull/97/commits/969422c4a29359afd667c76f9fdbd8af37f38155