-
Notifications
You must be signed in to change notification settings - Fork 801
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
Apple SSL #2930
Comments
Please check if #2825 solves this issue. |
I've compiled with #2825, seems the issue solved.
&
After even these situation, didn't crash. Since you've mentioned it is race condition, it might be happen again. I'll update the issue please keep it open. But anyway normally it was crashing with same logs, we can assume that the issue solved. Thank you. |
It is reduced the percentage of assertion failed for sure but anyway no luck. Address sanitizer on:
If i get same thing w/sanitizer on i'll update it again. |
I would recommend to turn on SSL_DEBUG (define it as 1 in |
I've changed like this:
nothing changed:
|
Idk idea behind this but, while i'm testing with this merge, iphone 12 (iosv: 14.6-18F72) always crashed. However iphone 7 (iosv: 13.3 17C54) didn't crash. Probably i'm going to use openSSL if something goes wrong i'll update the issue. |
Same thing happens w/openSSL as well. |
Okay, it seems to mean that this is a generic SSL issue and not related to a particular backend. A few suggestions:
|
It's not related with 2.10-dev actually I've already merged with 2.11 and some 2.12 pr, but no way. The interesting things is that: this is happens only my iPhone 12 iOS 14.6 phone, others are okay. But anyway something goes wrong for sure. Currently I cannot provide the sample app because of I'm using third party media stack, instead of the phone audio, but above in my first comment I've provided the source code of pjsua2 level. Pjsip is same with 2.11 just using third party media stack. I don't have the issue with sample apps you provided or pjsua2 swift sample app which is provided by me before. It might be related with media stack, or idk for now. I'll keep the update this issue. [UPDATE] |
The issue solved, it is because of my side.
without fire it. I've added following part and issue resolved.
I'm closing this one, thank you for your collaboration. |
One of the normal case, logs are like that: ...
|
Just like previous suggestions:
|
|
This is log enabled one for AppleSSL |
@sauwming |
The double event posts for every event seems weird, and it also happened on the success case.
My suggestion is to try with
Also test with If |
DICTIONARY: IPHONE SE2 - IOS 15.3.1 RESULTS:
IPHONE 12 - IOS 14.6:
|
Seems working with the OpenSSL. But unfortunately cannot build for Third Party Library. First it gives Then I declared it as to line 34 in
This is solved PJSIP build issue but after that when I'm building for samples it gives me: And PJSIP apps build log is this: |
@sauwming Sorry for late response, it takes time. Could you check and reply it? All logs are encrypted with your public key as gpg format. |
Please try the attached patch. It should prevent the assertion from happening. What I'm not sure is if this will eventually lead to a successful registration. |
Seems it is solved. But there is no exact way to handle this error. Sometimes i cannot reproduce the error. I've build without patch then with patch. When i compared both it seems solved but as i said i'll check it by time. For now it can be hotfix. Thank you. |
Okay, update us if the issue is completely solved after more extended testing with the patch. |
Still i haven't face with the same issue. We can assume that, the issue is solved. I'm leaving the comment it's up to you close or leave the issue like that. @sauwming |
After a month usage i can say that the issue still persist. I'll send logs when i handle next time. But the issue is now: Above problem is resolved it's okay but when using pjsua2-swift with AppleSSL sometimes (Especially during the call state) getting invalid turn server settings log. And this is seems crash (actually behavior is same with pressing home button w/ iphone) it goes to background like pressing homebutton and callstop but app is not crashing. This logs coming with openSSL also but there is no such behavior. It can continue to working. Something like: |
Describe the bug
Assertion failed in registering to stun server
16:01:07.080 pjsua_acc.c ..Acc 0: Registration sent registering... 16:01:07.145 stunresolve .STUN mapped address found/changed: XX.XXX.11.166:19158 16:01:07.146 pjsua_core.c .STUN resolution success, using 193.140.74.144:3478, address is <STUN_IP>:<STUN_PORT> Assertion failed: (ssock->send_buf.max_len == 0), function ssock_on_connect_complete, file ../src/pj/ssl_sock_imp_common.c, line 1134.
Steps to reproduce
Then create acc:
PJSIP version
2.11
Context
The issue happens iphone 12 w/configure-iphone parameter w/third-party-media-stack and i'm using APPLE SSL
Log, call stack, etc
The text was updated successfully, but these errors were encountered: