sherpa-onnx icon indicating copy to clipboard operation
sherpa-onnx copied to clipboard

FYI: JDK version issues for tts

Open csukuangfj opened this issue 8 months ago • 0 comments

If you get errors with tts for java API and have the following error log, please try jdk1.8.0_191.

The following versions have been reported not to work.

Not working: jdk1.8.0_331、17.0.13、17.0.14、21.0.1
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd4aa049de, pid=39108, tid=26112
#
# JRE version: Java(TM) SE Runtime Environment (17.0.7+8) (build 17.0.7+8-LTS-224)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.7+8-LTS-224, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C  [sherpa-onnx-jni.dll+0x349de]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63466,suspend=y,server=n -javaagent:C:\Users\77140\AppData\Local\JetBrains\IntelliJIdea2023.1\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 org.example.NonStreamingTtsPiperEn -Djava.library.path=./sherpa-onnx/lib

Host: Intel(R) Core(TM) Ultra 9 185H, 22 cores, 31G,  Windows 11 , 64 bit Build 26100 (10.0.26100.3037)
Time: Wed Mar 26 14:30:36 2025  Windows 11 , 64 bit Build 26100 (10.0.26100.3037) elapsed time: 2.108115 seconds (0d 0h 0m 2s)

---------------  T H R E A D  ---------------

Current thread (0x0000016bc8d2fd30):  JavaThread "main" [_thread_in_native, id=26112, stack(0x0000000eb0500000,0x0000000eb0600000)]

Stack: [0x0000000eb0500000,0x0000000eb0600000],  sp=0x0000000eb05ff3e0,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [sherpa-onnx-jni.dll+0x349de]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.k2fsa.sherpa.onnx.OfflineTts.generateImpl(JLjava/lang/String;IF)[Ljava/lang/Object;+0
j  com.k2fsa.sherpa.onnx.OfflineTts.generate(Ljava/lang/String;IF)Lcom/k2fsa/sherpa/onnx/GeneratedAudio;+8
j  org.example.NonStreamingTtsPiperEn.main([Ljava/lang/String;)V+131
v  ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0xfffffffff642ab70

csukuangfj avatar Mar 26 '25 07:03 csukuangfj