GiviMAD / whisper-jni

A JNI wrapper for using whisper.cpp, allows to transcribe speech to text in Java.
Apache License 2.0
81 stars 12 forks source link

AdoptOpenJDK (11.0.8+10) crashed. any ideas? #24

Open ivanooi opened 2 months ago

ivanooi commented 2 months ago

this is the sample code

crashed at whisper.full .

Thanks

` System.setProperty("java.io.tmpdir", "/Volumes/DevTest/test-whisper-jni"); // WhisperJNI.loadLibrary(loadOptions); WhisperJNI.loadLibrary();

        float[] samples = readJFKFileSamples();
        System.out.println("samples=" + samples.length);
        WhisperJNI whisper = new WhisperJNI();

        WhisperFullParams params = new WhisperFullParams();

        params.detectLanguage = true ;

        WhisperContext ctx = whisper.init( Paths.get("/Users/ivanooi/Downloads/OpenCV-test/whisper/Mac/ggml-small.bin"));           
        System.out.println("WhisperContext done");

        int result = whisper.full(ctx, params, samples, samples.length);

`

#

A fatal error has been detected by the Java Runtime Environment:

#

SIGSEGV (0xb) at pc=0x0000000000000000, pid=18488, tid=6147

#

JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.8+10) (build 11.0.8+10)

Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.8+10, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)

Problematic frame:

C 0x0000000000000000

#

No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

An error report file with more information is saved as:

/Volumes/DevTest/test-whisper-jni/hs_err_pid18488.log

#

If you would like to submit a bug report, please visit:

https://github.com/AdoptOpenJDK/openjdk-support/issues

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

#