pjsip / pjproject

PJSIP project
http://www.pjsip.org
GNU General Public License v2.0
2.07k stars 786 forks source link

Andrpiod Pjsua2 applicaiotion creash - Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() #4143

Closed kazimdsaidul closed 2 weeks ago

kazimdsaidul commented 2 weeks ago

Describe the bug

A ../src/pj/os_core_unix.c:859: pj_thread_t *pj_thread_this(void): assertion "!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."" failed

Steps to reproduce

Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."" failed

PJSIP version

2.13

Context

ANdroid all version

Log, call stack, etc

2024-11-10 13:18:59.695 10038-10048 libc                    com.nex.sip                          A  ../src/pj/os_core_unix.c:859: pj_thread_t *pj_thread_this(void): assertion "!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."" failed
2024-11-10 13:18:59.696 10038-10048 libc                    com.nex.sip                          A  Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 10048 (FinalizerDaemon), pid 10038 (com.nex.sip)
sauwming commented 2 weeks ago

https://docs.pjsip.org/en/latest/api/generated/pjsip/group/group__PJSUA2__UA.html#_CPPv4N2pj8Endpoint17libRegisterThreadERK6string