Ticket #1939 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

Crash when failed to initialize android jni dev

Reported by: riza Owned by: nanang
Priority: normal Milestone: release-2.5.5
Component: pjmedia-audiodev Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

When AudioRecord? failed to initialize (e.g: not adding "android.permission.RECORD_AUDIO" to app manifest), crash happen:

E/AudioRecord: AudioFlinger could not create record track, status: -1
E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.
E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
E/AudioRecord: AudioFlinger could not create record track, status: -1
E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.
E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: expected reference of kind global reference but found local reference: 0x1d
A/art: art/runtime/java_vm_ext.cc:410]     in call to DeleteGlobalRef

Thanks to Kenny Kaye for the report.

Change History

comment:1 Changed 17 months ago by riza

  • Status changed from new to closed
  • Resolution set to fixed

In 5357:

Fixed #1939: Fixed crash when failed to initialize android jni dev (AudioRecord?).

Note: See TracTickets for help on using tickets.