[Crash] JNI Code for Speechsynthesizer Finalizer (SafeHandle.releaseSynthesizerHandle) causes JVM Crash with EXCEPTION_ACCESS_VIOLATION #2701
Labels
update needed
For items that are in progress but have not been updated
crash-speechsdk.log
hs_err_pid15672.log
Occasionally the Finalizer Queue for Azure SpeechSynthesizer causes a full JVM Crash. Attached both the speechsdk log for a minimal reproducible example and the java crash dump.
Relevant detail from the crashdmp:
`
Current thread (0x000002afd5440000): JavaThread "Finalizer" daemon [_thread_in_vm, id=13272, stack(0x000000d3fd700000,0x000000d3fd800000)]
`
Minimal example that reproduces the crash:
`java
`
Effectively repeatedly opening and closing SpeechSynthesizer instances. AzureStreamToJMFStream here is a PushAudioOutputStreamCallback using PushAudioOutputStream.create(this) to create a PushAudioOutputStream.
When running the example i was able to reproduce the crash in 2 distinct runs after 2700 and after 5300 instances were created and closed, seemingly at random.
We first discovered the bug when it crashed our production java server. Crash occured with both version 1.35.0 and 1.40.0 of the client-sdk
Version of Speech SDK
1.40.0
Platform, Operating System, and Programming Language
The text was updated successfully, but these errors were encountered: