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

Whisper Init No State #2

Closed etozhealexis closed 9 months ago

etozhealexis commented 1 year ago

Now tried to use your wrapper with whisper.initNoState(Path.of(MODEL_NAME)) and got my docker container terminated again:

#
2023-06-20T17:17:26.819890103Z # A fatal error has been detected by the Java Runtime Environment:
2023-06-20T17:17:26.819892243Z #
2023-06-20T17:17:26.819893892Z #  SIGSEGV (0xb) at pc=0x00007fc1e2e2b64c, pid=1, tid=49
2023-06-20T17:17:26.819895208Z #
2023-06-20T17:17:26.819896361Z # JRE version: OpenJDK Runtime Environment (17.0.2+8) (build 17.0.2+8-86)
2023-06-20T17:17:26.819897712Z # Java VM: OpenJDK 64-Bit Server VM (17.0.2+8-86, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
2023-06-20T17:17:26.819899590Z # Problematic frame:
2023-06-20T17:17:26.821302824Z # C  [libwhisperjni.so+0x6164c]  whisper_full_with_state+0x1c
2023-06-20T17:17:26.821328846Z #
2023-06-20T17:17:26.821332382Z # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
2023-06-20T17:17:26.821334963Z #
2023-06-20T17:17:26.821336797Z # An error report file with more information is saved as:
2023-06-20T17:17:26.821338190Z # //hs_err_pid1.log
2023-06-20T17:17:26.845698238Z #
2023-06-20T17:17:26.845726207Z # If you would like to submit a bug report, please visit:
2023-06-20T17:17:26.845728403Z #   https://bugreport.java.com/bugreport/crash.jsp
2023-06-20T17:17:26.845729676Z # The crash happened outside the Java Virtual Machine in native code.
2023-06-20T17:17:26.845737128Z # See problematic frame for where to report the bug.
2023-06-20T17:17:26.845738415Z #
2023-06-20T17:17:26.845985720Z 
2023-06-20T17:17:26.846001915Z [error occurred during error reporting (), id 0xb, SIGSEGV (0xb) at pc=0x00007fc25eb9e602]
GiviMAD commented 1 year ago

For me it's working correctly, I'm using that one in a project. I think it should be related to something else.

GiviMAD commented 9 months ago

Please retest with the latest version. All the official models are working for me with without problems, I encounter some similar problems with the quantized ones.