New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash after linphone SDK release 4.4 #55
Comments
Our conference code is under massive rework at this time and will be part of 4.5.0 SDK release. |
Thanks for reply. more sdk logs below. 2020-08-28 17:59:01.340 I/LinphoneService: onDestroy
2020-08-28 17:59:08.622 5239-5249/com.demo A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x35002600000006 in tid 5249 (FinalizerDaemon), pid 5239 (le.cloudpbxdemo) |
I don't know why but you are destroying your Core while the conference is still alive! |
Our steps of call end are that "call terminateConference" , "call destroyCore(core.stop())", activity finish. |
call.terminateConference() is asynchronously called, so it will take time to terminate conference, while it is doing so, it runs the next line, which is destroyCore, you should wait for some time and then destroyCore or let system handle it (Garbage Collect it) or find a way to get callback from the core, when the call is ended, then perform the activity finish and core destroying process |
Sorry, I don't illustrate clearily. Our flow is that user press end call button , then calling core.terminateConference(), then receiving CALL.END event, then calling LinphoneManager.destroy(), A few second later, app got crash: |
Try waiting for Call.Released state insead. |
"Try waiting for Call.Released state insead. This problem only occur by createing conference. |
you can run your linphone project by below steps with android 7 or 8 or 9 device.
for a while, you will get a crash. |
What version of the SDK are you using? |
I use this version org.linphone:linphone-sdk-android:4.4.0 |
Ok that may be it. We have fixed a crash related to conference right after 4.4.0 release. Try with 4.4.1 |
I try it with 4.4.1 . I got a same problem. |
Do you wait for all calls to be in state Released before shutting down the Core ? |
I try to waiting for all calls be released (get Call.State.Released and core.getCallsNb() == 0), then stop service and destroy core. it got crash, too. |
I have a crash problem that when I make call and create conference(call addAllToConference).
Then, I hang up the phone(call terminateConference), and finish the UI acitivty,
I get the crash, crash log is below
(LinphonSDK sample project has the same problem)
device :
htc u11 android 9.0
Samsung android 8.0
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6f68706e696cdf in tid 29211 (FinalizerDaemon), pid 2920
2020-08-28 10:59:46.460 4694-4731/com.mplusapp A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 4731 (FinalizerDaemon), pid 4694
2020-08-28 10:59:46.567 6006-6006/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-08-28 10:59:46.567 6006-6006/? A/DEBUG: Build fingerprint: 'htc/ocndugl_00709/htc_ocndugl:9/PQ2A.190205.003/1098205.2:user/release-keys'
2020-08-28 10:59:46.567 6006-6006/? A/DEBUG: Revision: '0'
2020-08-28 10:59:46.567 6006-6006/? A/DEBUG: ABI: 'arm64'
2020-08-28 10:59:46.567 6006-6006/? A/DEBUG: pid: 4694, tid: 4731, name: FinalizerDaemon >>> com.mplusapp <<<
2020-08-28 10:59:46.567 6006-6006/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2020-08-28 10:59:46.567 6006-6006/? A/DEBUG: Abort message: 'FORTIFY: pthread_mutex_destroy called on a destroyed mutex (0x722af5dcd8)'
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x0 0000000000000000 x1 000000000000127b x2 0000000000000006 x3 0000000000000008
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0000000000000010
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x8 0000000000000083 x9 ac5a1c2454e3e41a x10 0000000000000000 x11 fffffffc7ffffbdf
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x12 0000000000000001 x13 000000005f487322 x14 001b3d3a78ce9e00 x15 00003699a93fa68b
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x16 00000072b72322a0 x17 00000072b71701d8 x18 0000000000000008 x19 0000000000001256
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x20 000000000000127b x21 000000722c395c00 x22 000000721c980588 x23 000000721a762827
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x24 000000000000000c x25 000000721c980588 x26 000000723488a8a0 x27 0000000000000003
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: x28 000000721c97ebb0 x29 000000721c97e890
2020-08-28 10:59:46.568 6006-6006/? A/DEBUG: sp 000000721c97e850 lr 00000072b7164d04 pc 00000072b7164d2c
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: backtrace:
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: #00 pc 0000000000021d2c /system/lib64/libc.so (abort+116)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#1 pc 00000000000843a0 /system/lib64/libc.so (__fortify_fatal(char const*, ...)+120)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#2 pc 0000000000083a9c /system/lib64/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+52)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#3 pc 0000000000084314 /system/lib64/libc.so (pthread_mutex_destroy+148)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#4 pc 00000000000908b4 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/libc++_shared.so (std::__ndk1::recursive_mutex::~recursive_mutex()+8)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#5 pc 0000000000524464 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (LinphonePrivate::ObjectPrivate::~ObjectPrivate()+32)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#6 pc 00000000006234f4 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (LinphonePrivate::BaseObject::~BaseObject()+16)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#7 pc 000000000072e890 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (LinphonePrivate::MediaConference::LocalConference::terminate()+184)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#8 pc 000000000072d6c4 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (LinphonePrivate::MediaConference::LocalConference::~LocalConference()+32)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#9 pc 000000000072d704 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (LinphonePrivate::MediaConference::LocalConference::~LocalConference()+16)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#10 pc 000000000078745c /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (belle_sip_object_uninit+92)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#11 pc 00000000007871ec /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (belle_sip_object_delete+76)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#12 pc 0000000000787020 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (belle_sip_object_unref_2+232)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#13 pc 0000000000735890 /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/lib/arm64/liblinphone.so (Java_org_linphone_core_ConferenceImpl_unref+100)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#14 pc 00000000005639e0 /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#15 pc 000000000055a988 /system/lib64/libart.so (art_quick_invoke_stub+584)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#16 pc 00000000000cfcf0 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#17 pc 0000000000282b88 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#18 pc 000000000027cb90 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+968)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#19 pc 000000000052b648 /system/lib64/libart.so (MterpInvokeDirect+296)
2020-08-28 10:59:46.605 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#20 pc 000000000054d014 /system/lib64/libart.so (ExecuteMterpImpl+14484)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#21 pc 00000000004acf08 /dev/ashmem/dalvik-classes3.dex extracted in memory from /data/app/com.mplusapp-JbA7QFZhOh3sw9gFVsbQYQ==/base.apk!classes3.dex (deleted) (org.linphone.core.ConferenceImpl.finalize+16)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#22 pc 0000000000256894 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2331214125+488)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#23 pc 000000000025c388 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#24 pc 000000000027cb74 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+940)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#25 pc 000000000052a308 /system/lib64/libart.so (MterpInvokeVirtual+588)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#26 pc 000000000054cf14 /system/lib64/libart.so (ExecuteMterpImpl+14228)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#27 pc 00000000000af0a8 /system/framework/boot-core-libart.vdex (java.lang.Daemons$FinalizerDaemon.doFinalize+22)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#28 pc 0000000000256894 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2331214125+488)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#29 pc 000000000025c388 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#30 pc 000000000027cb74 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+940)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#31 pc 000000000052b648 /system/lib64/libart.so (MterpInvokeDirect+296)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#32 pc 000000000054d014 /system/lib64/libart.so (ExecuteMterpImpl+14484)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#33 pc 00000000000af190 /system/framework/boot-core-libart.vdex (java.lang.Daemons$FinalizerDaemon.runInternal+164)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#34 pc 0000000000256894 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2331214125+488)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#35 pc 000000000025c388 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#36 pc 000000000027cb74 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+940)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#37 pc 000000000052a308 /system/lib64/libart.so (MterpInvokeVirtual+588)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#38 pc 000000000054cf14 /system/lib64/libart.so (ExecuteMterpImpl+14228)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#39 pc 00000000000aef04 /system/framework/boot-core-libart.vdex (java.lang.Daemons$Daemon.run+20)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#40 pc 0000000000256894 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2331214125+488)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#41 pc 000000000025c388 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#42 pc 000000000027cb74 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+940)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#43 pc 000000000052b284 /system/lib64/libart.so (MterpInvokeInterface+1392)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#44 pc 000000000054d114 /system/lib64/libart.so (ExecuteMterpImpl+14740)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#45 pc 00000000000ca8ae /system/framework/boot-core-oj.vdex (java.lang.Thread.run+12)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#46 pc 0000000000256894 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2331214125+488)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#47 pc 000000000051ab9c /system/lib64/libart.so (artQuickToInterpreterBridge+1020)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#48 pc 0000000000563afc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#49 pc 000000000055a988 /system/lib64/libart.so (art_quick_invoke_stub+584)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#50 pc 00000000000cfcf0 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#51 pc 0000000000461bc0 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#52 pc 0000000000462c7c /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#53 pc 000000000048dd3c /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#54 pc 0000000000082dd4 /system/lib64/libc.so (__pthread_start(void*)+36)
2020-08-28 10:59:46.606 6006-6006/? A/DEBUG: BelledonneCommunications/linphone-android#55 pc 0000000000023580 /system/lib64/libc.so (__start_thread+68)
2020-08-28 10:59:46.638 1273-2039/? E/MP3Extractor: Unable to resync. Signalling end of stream.
The text was updated successfully, but these errors were encountered: