[BUG] Global reference table overflow when using RawOutgoingAudioStream #1438
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
After approx 15 mins, the application stops working (crashes)
Exception or Stack Trace
java_vm_ext.cc:673] JNI ERROR (app bug): global reference table overflow (max=51200)global reference table dump:
java_vm_ext.cc:673] Last 10 entries (of 51200):
java_vm_ext.cc:673] 51199: 0x12e804e8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51198: 0x12e804e8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51197: 0x13792440 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51196: 0x12e804e8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51195: 0x12e804e8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51194: 0x137911f8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51193: 0x12e804e8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51192: 0x12e804e8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51191: 0x1378ffb0 java.nio.DirectByteBuffer
java_vm_ext.cc:673] 51190: 0x12e804e8 java.nio.DirectByteBuffer
java_vm_ext.cc:673] Summary:
java_vm_ext.cc:673] 50267 of java.nio.DirectByteBuffer (1150 unique instances)
java_vm_ext.cc:673] 576 of java.lang.Class (441 unique instances)
java_vm_ext.cc:673] 58 of com.azure.android.communication.calling.Status (58 unique instances)
java_vm_ext.cc:673] 48 of com.azure.android.communication.calling.CallingCommunicationErrors (48 unique instances)
java_vm_ext.cc:673] 45 of com.azure.android.communication.calling.HandleType (45 unique instances)
java_vm_ext.cc:673] 17 of com.azure.android.communication.calling.DtmfTone (17 unique instances)
java_vm_ext.cc:673] 14 of com.azure.android.communication.calling.MediaDiagnosticType (14 unique instances)
java_vm_ext.cc:673] 13 of com.azure.android.communication.calling.VideoStreamResolution (13 unique instances)
java_vm_ext.cc:673] 10 of com.azure.android.communication.calling.CallState (10 unique instances)
java_vm_ext.cc:673] 8 of com.azure.android.communication.calling.ParticipantState (8 unique instances)
To Reproduce
Join a Teams online meeting setting a RawOutgoingAudioStream.
I followed the below instructions:
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-raw-media-access?pivots=platform-android
Code Snippet
`override fun create() = RawOutgoingAudioStream(
RawOutgoingAudioStreamOptions().apply {
properties = RawOutgoingAudioStreamProperties()
.setFormat(AudioStreamFormat.PCM16_BIT)
.setSampleRate(AudioStreamSampleRate.HZ_44100)
.setChannelMode(AudioStreamChannelMode.STEREO)
.setBufferDuration(AudioStreamBufferDuration.MS20)
}
).apply {
val audioRecord = AudioRecord(
MediaRecorder.AudioSource.VOICE_RECOGNITION,
SAMPLE_RATE,
AudioFormat.CHANNEL_IN_STEREO,
AudioFormat.ENCODING_PCM_16BIT,
expectedBufferSizeInBytes.toInt()
)
audioRecord.startRecording()
Expected behavior
Meet not to end abnormally
Screenshots
No screenshots
Setup (please complete the following information):
Additional context
Removing the line
sendRawAudioBuffer(RawAudioBuffer().setBuffer(buffer))
the crash does not happen.Joining a call without the custom Output stream the crash either does not occur.
The text was updated successfully, but these errors were encountered: