Opened 9 years ago

Closed 9 years ago

#1939 closed defect (fixed)

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 (1)

comment:1 Changed 9 years ago by riza

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

In 5357:

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

Note: See TracTickets for help on using tickets.