pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

Pjsip Crashes when app is in kill mode and accepts the incoming call

Open chiragchauhan1073 opened this issue 5 years ago • 3 comments

Describe the bug

App crashes frequently in kill mode while accepting incoming call. this happenes only in android 11. here is the crash log

PlayerBase::PlayerBase() TrackPlayerBase::TrackPlayerBase() D/AudioTrack: createTrack_l(16): AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 0 -> 716 W/libOpenSLES: Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1) E/IAudioFlinger: createRecord returned error -1 E/AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1 E/libOpenSLES: android_audioRecorder_realize(0xb40000751b4b3020) error creating AudioRecord object; status -1 W/libOpenSLES: Leaving Object::Realize (SL_RESULT_CONTENT_UNSUPPORTED) A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 8506 (Thread-82), pid 8406 (.main.xyz)

Steps to reproduce

run pjsip

  1. make call
  2. auto receive call in kill mode(foreground service) android 11.

PJSIP version

2.11

Context

Android Version 11.

Log, call stack, etc

PlayerBase::PlayerBase()
TrackPlayerBase::TrackPlayerBase()
D/AudioTrack: createTrack_l(16): AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 0 -> 716
W/libOpenSLES: Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels
I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1)
E/IAudioFlinger: createRecord returned error -1
E/AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1
E/libOpenSLES: android_audioRecorder_realize(0xb40000751b4b3020) error creating AudioRecord object; status -1
W/libOpenSLES: Leaving Object::Realize (SL_RESULT_CONTENT_UNSUPPORTED)
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 8506 (Thread-82), pid 8406 (.main.xyz)

chiragchauhan1073 avatar Aug 13 '21 07:08 chiragchauhan1073

I have same isssue: Still find the awnser A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 8506 (Thread-82), pid 8406 (.main.xyz)

bienpx224 avatar Oct 26 '21 03:10 bienpx224

@bienpx224 Usually line below E/AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1 Indicates that no RECORD_AUDIO permission is given to app when initializing incoming call

trupizzza avatar Feb 22 '22 13:02 trupizzza

Please try with the latest version, and reopen if the issue persists.

sauwming avatar Jan 31 '23 08:01 sauwming