Crash in PJSIP header File

110 views
Skip to first unread message

Fatemeh

unread,
May 14, 2011, 5:30:48 AM5/14/11
to Siphon
Hi,
I've built Pjsip libs for iPhone platform and this work fine, but in
pjsua_acc.c file in line 2353, app cause crash and quit when app is
working for long time. In this line there is below code:

PJ_ASSERT_RETURN(pjsua_acc_is_valid(acc_id), PJ_EINVAL);

And I get below info in log file:

Assertion failed: (pjsua_acc_is_valid(acc_id)), function
pjsua_acc_create_uac_contact, file ../src/pjsua-lib/pjsua_acc.c, line
2353.

I don't know how fix that, and hope you help me.
So thanks

Samuel Vinson

unread,
May 14, 2011, 11:10:22 AM5/14/11
to sip...@googlegroups.com
Hi,

Maybe the account is disconnected and you try to use it.

Samuel

2011/5/14 Fatemeh <fa.sh...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Siphon" group.
To post to this group, send email to sip...@googlegroups.com.
To unsubscribe from this group, send email to siphon+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siphon?hl=en.


fatemeh shapouri

unread,
May 15, 2011, 2:26:10 AM5/15/11
to sip...@googlegroups.com
Hi,
Is it possible account was disconnected and server did not notify app?
This crash happen when I did not use app in long time, I run app and did not have any action on that, after 5 or 10 minutes apps crashed.
Can you explain me what does do this line? 
--
Regard,
Fatemeh

Samuel Vinson

unread,
May 15, 2011, 4:42:36 AM5/15/11
to sip...@googlegroups.com
Hi,

This is an assertion. Because it's a pjsip issue, maybe you will find the answer on pjsip mailing list.
Do you use TCP or UDP connection?

Samuel

2011/5/15 fatemeh shapouri <fa.sh...@gmail.com>

fatemeh shapouri

unread,
May 15, 2011, 6:10:42 AM5/15/11
to sip...@googlegroups.com
Hi,
I've mailed my problem to pjsip and I'm waiting for response.
I use UDP connection, Is dependent to connection type?

Samuel Vinson

unread,
May 15, 2011, 8:10:46 AM5/15/11
to sip...@googlegroups.com
Hi,

iOS doesn't support UDP connection in background.
I invite you to read iOS documentation ;-)

fatemeh shapouri

unread,
May 15, 2011, 8:47:23 AM5/15/11
to sip...@googlegroups.com
Hi,
I don't use Background connection!
My app call other phone number only and call from out is not possible!
So thanks for your invitation ;)

Samuel Vinson

unread,
May 15, 2011, 11:35:34 AM5/15/11
to sip...@googlegroups.com
Hi,

I'm summarizing,
  • your application runs in foreground with UDP connection
  • you don't do anything during 5-10 minutes, and there are no event
  • and after that your application crashes.
Can you tell if the iPhone screen becomes locked ?
Which network do you use ? WiFi or 3G ?
What is the function calls stack?

fatemeh shapouri

unread,
May 16, 2011, 12:30:22 AM5/16/11
to sip...@googlegroups.com
Hi,
Exactly!
In most of the time iPhone screen became lock.
I use both connection but I see this problem when I removed SIM card!
I will log and send function calls stack when this occur again.

I don't use stable WiFi connection and I guess in times that my connection lost and app calls that line, this problem occur! 

fatemeh shapouri

unread,
May 16, 2011, 6:46:24 AM5/16/11
to sip...@googlegroups.com
Hi,
In the console log after reconnecting to WiFi connection crash was happened! I've copied the text, please let me know if I make mistake! So thanks...

Mon May 16 15:01:59 Fatemeh-iPhone apsd[46] <Warning>: <APSCourier: 0x10f730>: Stream error occurred for <APSTCPStream: 0x11b410>: Error Domain=NSPOSIXErrorDomain Code=57 "The operation couldn’t be completed. Socket is not connected" UserInfo=0x118190 {}


Mon May 16 15:01:59
Fatemeh-iPhone configd[22] <Info>: hostname (prefs) = Fatemeh-iPhone


Mon May 16 15:02:00
Fatemeh-iPhone configd[22] <Debug>: usbeth_handle_interfaces_found:666 found iointerface


Mon May 16 15:02:00
Fatemeh-iPhone configd[22] <Debug>: usbeth_handle_interface_found:565 handling interface 0x11baf


Mon May 16 15:02:00
Fatemeh-iPhone SpringBoard[24] <Warning>: WiFi: Joined network ZEITON. WiFi bars visible: NO


Mon May 16 15:02:00
Fatemeh-iPhone kernel[0] <Debug>: AppleMRVL868x::setASSOCIATE() [configd]: lowerAuth = AUTHTYPE_SHARED, upperAuth = AUTHTYPE_NONE, key = CIPHER_WEP_104 , don't disassociate    .


Mon May 16 15:02:00
Fatemeh-iPhone kernel[0] <Debug>: AppleMRVL868x::setCIPHER_KEY() [configd]: type = CIPHER_WEP_104, index = 0, flags = 0xF


Mon May 16 15:02:00
Fatemeh-iPhone kernel[0] <Debug>: AppleMRVL868x Joined AP:        @ 0x8514f000, BSSID = 00:1e:58:80:dd:e8, rssi = -50, rate = 54 (100%), channel =  6, encryption = 0x2, ap = 1, failures =   0, age = 1, ssid[ 6] = "ZEITON"


Mon May 16 15:02:00
Fatemeh-iPhone kernel[0] <Debug>: AirPort: Link Up on en0


Mon May 16 15:02:00
Fatemeh-iPhone apsd[46] <Warning>: <APSCourier: 0x10b340>: Stream error occurred for <APSTCPStream: 0x112b20>: Error Domain=NSPOSIXErrorDomain Code=57 "The operation couldn’t be completed. Socket is not connected" UserInfo=0x118190 {}


Mon May 16 15:02:01
Fatemeh-iPhone apsd[46] <Warning>: <APSCourier: 0x10f730>: Stream error occurred for <APSTCPStream: 0x122380>: Error Domain=kCFErrorDomainCFNetwork Code=2 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)" UserInfo=0x120810 {kCFGetAddrInfoFailureKey=8}


Mon May 16 15:02:01
Fatemeh-iPhone apsd[46] <Warning>: <APSCourier: 0x10b340>: Stream error occurred for <APSTCPStream: 0x118250>: Error Domain=kCFErrorDomainCFNetwork Code=2 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)" UserInfo=0x109e60 {kCFGetAddrInfoFailureKey=8}


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Debug>: subnet_route_if_index: can't get interface name


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Debug>: CaptiveNetworkSupport:CaptiveHandleNetworkChanged:2325 key: State:/Network/Service/BBB6A7A7-6107-44D6-A097-C043D8ABBDF2/IPv4


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Debug>: CaptiveNetworkSupport:CaptiveHandleInterfaceChanged:2191 Interface = en0, primaryServiceID =BBB6A7A7-6107-44D6-A097-C043D8ABBDF2


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Debug>: CaptiveNetworkSupport:CaptiveCopyCurrentWiFiNetwork:802 found current network: ZEITON                                  : isHidden=0, isEAP=0, isWPA=0, isWEP=1


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Notice>: CaptiveNetworkSupport:CaptivePublishState:1012 en0 - Probe


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Debug>: CaptiveNetworkSupport:CaptiveKnownCheck:459 WiFiNetworkGetProperty CaptiveNetwork for ZEITON                                  : isHidden=0, isEAP=0, isWPA=0, isWEP=1 returned NULL


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Notice>: CaptiveNetworkSupport:CaptiveStartDetect:2150 Bypassing probe on ZEITON because it is protected and not on the exception list


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Debug>: CaptiveNetworkSupport:CaptiveSCEnableServiceByID:341 Enabled BBB6A7A7-6107-44D6-A097-C043D8ABBDF2


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Notice>: CaptiveNetworkSupport:CaptivePublishState:1012 en0 - Unknown


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Notice>: network configuration changed.


Mon May 16 15:02:02
Fatemeh-iPhone configd[22] <Notice>: network configuration changed.


Mon May 16 15:02:03
Fatemeh-iPhone configd[22] <Info>: hostname (prefs) = Fatemeh-iPhone


Mon May 16 15:02:03
Fatemeh-iPhone CommCenter[28] <Notice>: No more assertions for PDP context 0.  Returning it back to normal.


Mon May 16 15:02:03
Fatemeh-iPhone CommCenter[28] <Notice>: Scheduling PDP tear down timer for (327235023.352911) (current time == 327234723.352946)


Mon May 16 15:02:28
Fatemeh-iPhone com.apple.launchd[1] (UIKitApplication:com.Fatemeh.VoIP[0x62eb][215]) <Notice>: (UIKitApplication:com.Fatemeh.VoIP[0x62eb]) Bug: launchd_core_logic.c:3252 (24226):3


Mon May 16 15:02:28
Fatemeh-iPhone com.apple.launchd[1] (UIKitApplication:com.Fatemeh.VoIP[0x62eb][215]) <Notice>: (UIKitApplication:com.Fatemeh.VoIP[0x62eb]) Bug: launchd_core_logic.c:2681 (24226):10


Mon May 16 15:02:28
Fatemeh-iPhone com.apple.launchd[1] (UIKitApplication:com.Fatemeh.VoIP[0x62eb][215]) <Notice>: (UIKitApplication:com.Fatemeh.VoIP[0x62eb]) Working around 5020256. Assuming the job crashed.


Mon May 16 15:02:28
Fatemeh-iPhone com.apple.launchd[1] (UIKitApplication:com.Fatemeh.VoIP[0x62eb][215]) <Warning>: (UIKitApplication:com.Fatemeh.VoIP[0x62eb]) Job appears to have crashed: Segmentation fault


Mon May 16 15:02:28
Fatemeh-iPhone SpringBoard[24] <Warning>: Application 'VoIP' exited abnormally with signal 11: Segmentation fault
--
Regard,
Fatemeh

Reply all
Reply to author
Forward
0 new messages