VoiSmart / pjsip-android

SIP Service for Android based on PJSIP
http://www.pjsip.org/
Apache License 2.0
290 stars 140 forks source link

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

Open chiragchauhan1073 opened 3 years ago

chiragchauhan1073 commented 3 years ago

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 make call auto receive call in kill mode(foreground service) android 11.

PJSIP version 2.11

Context Android Version 11.

ashishsecrets commented 1 year ago

I have the app running and receiving calls in kill mode. Are you starting an activity to handle the call?