-
Notifications
You must be signed in to change notification settings - Fork 456
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
Crashes in multi threaded app usage. #19
Comments
can you describe more about how to use realreachability?I have never seen this in my app. The usage is like the demo .Or can you reproduce it with my latest demo? Thank you so much! |
Would you please check if you called "[GLobalRealReachability startNotifier];" in background thread? |
Could you please give me a feedback? Thank you |
Hi, I came across a crash too due to PingFoundation, here is the logs Thread 13 Crashed: don't know why, I've checked the code and I didn't call [GLobalRealReachability startNotifier] in background thread |
I have made some modifying, please try again! Thank you @sherlockyao @skathiresan |
thanks @dustturtle .. Will keep you posted if i see any issue, |
I would like to watch for some days.New pod version will be released in this week.Thank you so much! @skathiresan |
@dustturtle I have been testing this further more with your latest commit - PingHelper
The below change to induce a minor delay before checking for "Real" reachability helped fix some false alarms of the host not reachable. RealReachability
All these tests were performed in multi threaded application. |
solved already |
I get the same crash dump a lot of times. Every time, the thread that this is being done is some background thread.
I noticed you are starting the
pingFoundation
in main thread. Do we also need tostop
it in main thread?The below is the dump of the crash generated by Hockey
Thread 11 Crashed:
0x0000000181e459cc CFRelease + 1128
0x00000001005f5ec0 -PingFoundation stopDataTransfer
0x00000001005f5efc -PingFoundation stop
0x00000001005f62c0 -PingHelper pingWithBlock:
0x00000001005f77a0 -RealReachability reachabilityWithBlock:
0x00000001005f7e40 __41-[RealReachability autoCheckReachability]_block_invoke (RealReachability.m:253)
0x00000001819b9630 _dispatch_call_block_and_release + 20
0x00000001819b95f0 _dispatch_client_callout + 12
0x00000001819c4e7c _dispatch_after_timer_callback + 88
0x00000001819b95f0 _dispatch_client_callout + 12
0x00000001819d0204 _dispatch_source_latch_and_call + 2552
0x00000001819bbae4 _dispatch_source_invoke + 804
0x00000001819c7504 _dispatch_root_queue_drain + 724
0x00000001819c7224 _dispatch_worker_thread3 + 108
0x0000000181bcd470 _pthread_wqthread + 1088
0x0000000181bcd020 start_wqthread + 0
The text was updated successfully, but these errors were encountered: