livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
165 stars 64 forks source link

native crash base.apk!libjingle_peerconnection_so.so (BuildId: 53c312b7b1a54c0d) Cause: null pointer dereference #343

Open shoyu666 opened 7 months ago

shoyu666 commented 7 months ago

Describe the bug some times crash

To Reproduce Steps to reproduce the behavior: Uncertain appearance

Expected behavior crash

Screenshots noting

Device Info:

Additional context 2023-12-13 14:52:35.593 19744-20215 BufferPoolAccessor2.0 com.taizhen.compose D bufferpool2 0xe2b4bc08 : 4(8388608 size) total buffers - 4(8388608 size) used buffers - 0/4 (recycle/alloc) - 16/3335 (fetch/transfer) 2023-12-13 14:52:35.646 19744-19892 libc com.taizhen.compose A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x5c in tid 19892 (DefaultDispatch), pid 19744 (taizhen.compose) 2023-12-13 14:52:35.683 19744-19895 TzLogTag com.taizhen.compose D >> DefaultDispatcher-worker-5 >> 2023-12-13 02:52:35 >> ViewerThread >> roomEvent ### io.livekit.android.events.RoomEvent$ActiveSpeakersChanged@ae7f688 2023-12-13 14:52:35.753 405-405 Cam3ReqThread and...e.camera.provider@2.4-service I type=1400 audit(0.0:2507): avc: denied { search } for name="sync" dev="debugfs" ino=12593 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:debugfs_sw_sync:s0 tclass=dir permissive=1 2023-12-13 14:52:35.776 21292-21292 DEBUG pid-21292 E failed to readlink /proc/19892/fd/225: No such file or directory 2023-12-13 14:52:35.851 19744-21119 TzLogTag com.taizhen.compose D >> AudioRecordJavaThread >> 2023-12-13 02:52:35 >> Rs232AudioCallBack >> mute null 2 2023-12-13 14:52:35.854 21292-21292 crash_dump32 pid-21292 I obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto 2023-12-13 14:52:35.855 369-369 tombstoned tombstoned I received crash request for pid 19892 2023-12-13 14:52:35.855 21292-21292 crash_dump32 pid-21292 I performing dump of process 19744 (target tid = 19892) 2023-12-13 14:52:35.885 19744-19866 TzLogTag com.taizhen.compose D >> Thread-2 >> 2023-12-13 02:52:35 >> PublisherThread >> 140 >>event:null 2023-12-13 14:52:35.887 19744-19866 TzLogTag com.taizhen.compose D >> Thread-2 >> 2023-12-13 02:52:35 >> PublisherThread >> 140 >>CONNECTED 0 2023-12-13 14:52:35.963 19744-19868 TzLogTag com.taizhen.compose D >> Thread-4 >> 2023-12-13 02:52:35 >> PublisherThread >> 202 >>event:null 2023-12-13 14:52:35.964 19744-19868 TzLogTag com.taizhen.compose D >> Thread-4 >> 2023-12-13 02:52:35 >> PublisherThread >> 202 >>CONNECTED 0 2023-12-13 14:52:36.130 414-20090 BufferPoolAccessor2.0 and...hardware.media.c2@1.1-service D bufferpool2 0xec9c0c88 : 54(56629 size) total buffers - 1(1203 size) used buffers - 25/1036 (recycle/alloc) - 1021/1035 (fetch/transfer) 2023-12-13 14:52:36.206 21292-21292 crash_dump32 pid-21292 I type=1400 audit(0.0:2508): avc: denied { open } for path="/dev/properties/u:object_r:codec2_config_prop:s0" dev="tmpfs" ino=96 scontext=u:r:crash_dump:s0 tcontext=u:object_r:codec2_config_prop:s0 tclass=file permissive=1 2023-12-13 14:52:36.206 21292-21292 crash_dump32 pid-21292 I type=1400 audit(0.0:2509): avc: denied { getattr } for path="/dev/properties/u:object_r:codec2_config_prop:s0" dev="tmpfs" ino=96 scontext=u:r:crash_dump:s0 tcontext=u:object_r:codec2_config_prop:s0 tclass=file permissive=1 2023-12-13 14:52:36.206 21292-21292 crash_dump32 pid-21292 I type=1400 audit(0.0:2510): avc: denied { map } for path="/dev/properties/u:object_r:codec2_config_prop:s0" dev="tmpfs" ino=96 scontext=u:r:crash_dump:s0 tcontext=u:object_r:codec2_config_prop:s0 tclass=file permissive=1 2023-12-13 14:52:36.216 21292-21292 crash_dump32 pid-21292 I type=1400 audit(0.0:2511): avc: denied { open } for path="/dev/properties/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=176 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1 2023-12-13 14:52:36.216 21292-21292 crash_dump32 pid-21292 I type=1400 audit(0.0:2512): avc: denied { getattr } for path="/dev/properties/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=176 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1 2023-12-13 14:52:36.216 21292-21292 crash_dump32 pid-21292 I type=1400 audit(0.0:2513): avc: denied { map } for path="/dev/properties/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=176 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1 2023-12-13 14:52:38.563 21292-21292 audit pid-21292 W audit_lost=1407 audit_rate_limit=5 audit_backlog_limit=64 2023-12-13 14:52:38.563 21292-21292 audit pid-21292 E rate limit exceeded 2023-12-13 14:52:38.642 314-314 logd pid-314 I logdr: UID=1000 GID=1000 PID=21292 n tail=0 logMask=8 pid=19744 start=0ns deadline=0ns 2023-12-13 14:52:38.647 314-314 logd pid-314 I logdr: UID=1000 GID=1000 PID=21292 n tail=0 logMask=1 pid=19744 start=0ns deadline=0ns 2023-12-13 14:52:36.411 404-20007 ExtCamDevSsn@3.4 and...provider@2.4-external-service D @debugShowFPS(1303): CameraID:140, 19136 Frames, 29.992 FPS 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A Build fingerprint: 'rockchip/rk3588_s:12/SQ3A.220705.003.A1/eng.231130.144149:userdebug/release-keys' 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A Revision: '0' 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A ABI: 'arm' 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A Timestamp: 2023-12-13 14:52:35.882398583+0800 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A Process uptime: 71s 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A Cmdline: com.taizhen.compose 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A pid: 19744, tid: 19892, name: DefaultDispatch >>> com.taizhen.compose <<< 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A uid: 1000 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x5c 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A Cause: null pointer dereference 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A r0 00000058 r1 b25159b0 r2 b25159b0 r3 b25159dc 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A r4 b25159dc r5 e8deb510 r6 b25159b0 r7 00000010 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A r8 00000000 r9 b3972c10 r10 b2515a40 r11 b3972c10 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A ip b37660cc sp b25159a8 lr b335b569 pc b335b512 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A backtrace: 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #00 pc 00215512 /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk!libjingle_peerconnection_so.so (BuildId: 53c312b7b1a54c0d) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #01 pc 002154bf /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk!libjingle_peerconnection_so.so (BuildId: 53c312b7b1a54c0d) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #02 pc 002179dd /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk!libjingle_peerconnection_so.so (BuildId: 53c312b7b1a54c0d) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #03 pc 000f4e8d /apex/com.android.art/lib/libart.so (art_quick_generic_jni_trampoline+44) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #04 pc 000ec00c /apex/com.android.art/lib/libart.so (nterp_helper+2908) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #05 pc 00227ab4 /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk (org.webrtc.PeerConnection.close+0) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #06 pc 000ebfa0 /apex/com.android.art/lib/libart.so (nterp_helper+2800) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #07 pc 00227afc /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk (org.webrtc.PeerConnection.dispose+0) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #08 pc 000ebfa0 /apex/com.android.art/lib/libart.so (nterp_helper+2800) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #09 pc 001b509c /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk (io.livekit.android.room.PeerConnectionTransport$close$2$1.invokeSuspend+96) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #10 pc 0203cd75 /memfd:jit-cache (deleted) (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith+252) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #11 pc 020117ed /memfd:jit-cache (deleted) (kotlinx.coroutines.DispatchedTask.run+1612) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #12 pc 000ec00c /apex/com.android.art/lib/libart.so (nterp_helper+2908) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #13 pc 00454e42 /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk (kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely+2) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #14 pc 020558e9 /memfd:jit-cache (deleted) (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask+216) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #15 pc 000ec00c /apex/com.android.art/lib/libart.so (nterp_helper+2908) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #16 pc 00453b4c /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker+56) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #17 pc 000ebfa0 /apex/com.android.art/lib/libart.so (nterp_helper+2800) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #18 pc 00453afc /data/app/~~EjQajGonhgA5zSRUnFC23Q==/com.taizhen.compose-hqr0HCmEFWLagI-trszPGw==/base.apk (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run+0) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #19 pc 000f03d5 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #20 pc 00506b0b /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+282) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #21 pc 0014381d /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+136) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #22 pc 004042a5 /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject, art::ArtMethod, jvalue const)+368) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #23 pc 004043b3 /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<_jmethodID>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject, _jmethodID, jvalue const)+42) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #24 pc 004442cb /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void)+1010) (BuildId: a9d70e5804304526e592eceb602b62f5) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #25 pc 00080733 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void)+40) (BuildId: a0f86e06c7ea70b36f3cae2d93197708) 2023-12-13 14:52:36.436 21292-21292 DEBUG pid-21292 A #26 pc 00039835 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: a0f86e06c7ea70b36f3cae2d93197708) 2023-12-13 14:52:36.506 414-21105 BufferPoolAccessor2.0 and...hardware.media.c2@1.1-service D bufferpool2 0xec9c1a08 : 60(749209 size) total buffers - 1(9424 size) used buffers - 0/256 (recycle/alloc) - 255/255 (fetch/transfer) 2023-12-13 14:52:36.549 369-369 tombstoned tombstoned E Tombstone written to: tombstone_17 2023-12-13 14:52:36.550 618-21304 ActivityTaskManager system_process W Force finishing activity com.taizhen.compose/.ui.MainActivity 2023-12-13 14:52:36.552 618-697 BootReceiver system_process I Copying /data/tombstones/tombstone_17 to DropBox (SYSTEM_TOMBSTONE) 2023-12-13 14:52:36.558 618-21304 ActivityTaskManager system_process W Force finishing activity com.taizhen.compose/.ui.SplashActivity 2023-12-13 14:52:36.558 618-697 DropBoxManagerService system_process I add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x6 2023-12-13 14:52:36.563 618-11495 ActivityTaskManager system_process W Tried to set launchTime (0) < mLastActivityLaunchTime (900188)

wzJun1 commented 6 months ago

same problem!