iphone debug/release works, but distribution stalls on pjsua_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It does not have time to record any log message. I've checked it. At first time reviewer did send me a crash log. The application crashed because it blocked main thread. Then i replaced all pjsip interconnection in separate thread,
and then application was approved. But pjsip thread still stalls on pjsua_init. Here is parts of that crash log:

Date/Time:       2011-06-16 10:34:41.484 -0700
OS Version:      iPhone OS 4.3.3 (8J2)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  0

Application Specific Information:
MyAppName failed to resume in time

Elapsed total CPU time (seconds): 11.230 (user 7.560, system 3.670), 56% CPU 
Elapsed application CPU time (seconds): 9.140, 46% CPU

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_c.dylib             	0x32cca708 _spin_lock$VARIANT$wfe + 44
1   libsystem_c.dylib             	0x32c934e8 pthread_mutex_destroy + 16
2   MyAppName                      	0x00028208 pj_mutex_destroy + 24
3   MyAppName                      	0x000282d8 pj_thread_destroy + 20
4   MyAppName                      	0x000ac710 pjsua_destroy + 72
5   MyAppName                      	0x000ad074 pjsua_init + 936
.................


Thread 5:
0   libsystem_kernel.dylib        	0x332a7d18 __semwait_signal + 24
1   libsystem_c.dylib             	0x32c644ac nanosleep + 132
2   libsystem_c.dylib             	0x32c642f4 usleep + 36
3   MyAppName                      	0x000286b8 pj_thread_sleep + 32
4   MyAppName                      	0x00027894 pj_ioqueue_poll + 672
5   MyAppName                      	0x000403d0 worker_proc + 48
6   MyAppName                      	0x000285e0 thread_main + 68
7   libsystem_c.dylib             	0x32c9530a _pthread_start + 242
8   libsystem_c.dylib             	0x32c96bb4 thread_start + 0

Thanks!

02.07.2011, ? 21:18, Even Andr? Fiskvik ???????(?):

> How does it "stall". Do you have an error log or backtrace?
> 
> Best regards,
> Even Andr?
> 
> On 2. juli 2011, at 16.41, Alexey Tkachenko wrote:
> 
>> Hi!
>> Now my app, that use pjsip, is in the app store. When I installed it, I did found that pjsua could not initialize and stalls on pjsua_init. And I can't to debug distribution version. But other versions, include AdHoc works fine.
>> Does anyone found similar problem?
>> 
>> The code, I am using to initialize:
>> 
>> pj_status_t status;
>> 
>> /* Create pjsua first! */
>> status = pjsua_create();
>> if (status != PJ_SUCCESS) {
>> 	NSLog(@"Error in pjsua_create()");
>> 	return;
>> }
>> 
>> 
>> /* Init pjsua */
>> pjsua_config cfg;
>> pjsua_logging_config log_cfg;
>> 
>> pjsua_config_default(&cfg);
>> cfg.cb.on_incoming_call = &on_incoming_call;
>> cfg.cb.on_call_media_state = &on_call_media_state;
>> cfg.cb.on_call_state = &on_call_state;
>> cfg.cb.on_reg_state = &on_reg_state;
>> cfg.user_agent = pj_str("AppName");
>> cfg.thread_cnt=5;
>> 
>> /* log config */                
>> pjsua_logging_config_default(&log_cfg);
>> log_cfg.console_level = 0;
>> log_cfg.level = 5;
>> log_cfg.msg_logging = PJ_TRUE;
>> log_cfg.log_filename = pj_str("logfilename");
>> 
>> /* media config */                
>> pjsua_media_config mediacfg;
>> pjsua_media_config_default(&mediacfg);
>> mediacfg.enable_ice = PJ_FALSE;      
>> 
>> status = pjsua_init(&cfg, &log_cfg, &mediacfg);
>> 
>> 
>> 
>> 
>> Thank you all!
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>> 
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>> 
> 
> 
> 
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux