Skip to content
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

从后台到前台会有crash的问题,请问下这是为什么呢 #11

Closed
haojian2016 opened this issue Mar 7, 2016 · 23 comments
Closed

Comments

@haojian2016
Copy link

3e5c5627-a7c4-4497-93d1-8bdac39ceeae

INFO: Reveal Server started (Protocol Version 25).
Assertion failed: (theHost == obj->_host), function HostResolveCallback file /Users/.../trunk/Pods/RealReachability/RealReachability/Ping/PingFoundation.m, line 575.

@dustturtle
Copy link
Owner

什么版本的iOS设备?出现的频率高吗? 也可能跟你工程本身有关。你可以尝试注释掉这两句assert,看看是否还有问题发生?
期待您的回复。 openglnewbee@163.com
PS:这里是苹果代码的断言导致的crash,debug的时候会挂,distribution则不会。

@haojian2016
Copy link
Author

好的,那我注释掉试试,主要测的是8,频率不高,偶尔会崩溃

@dustturtle
Copy link
Owner

好的,那麻烦你试一下告诉我,多谢。如果注释后还crash我就去找一部iOS8设备调调看。

@haojian2016
Copy link
Author

光注释掉assert的话,会出现这种的情况,然后我现在就给断言做了个判断,不成立就return掉,程序不会crash的,这个出现的几率很小,是不是在内存大的时候会出现异常呢?
7ef74462-7d72-4233-a12c-b62c7cdd9634

@dustturtle
Copy link
Owner

非常感谢你的反馈! 如果有条件的话能否测试 9.0的设备是否也可能出问题?
场景就只有前后台切换吗? demo工程方便的话可以发给我调试看看。
openglnewbee@163.com 谢谢!

@dustturtle
Copy link
Owner

请告诉我你的系统版本号

@haojian2016
Copy link
Author

xcode7.2.1,我自己写了一个demo,就是光检测网络的,没发现问题,我感觉应该是内存问题,我再看看

@ShantiSR
Copy link

ShantiSR commented Mar 9, 2016

any solution?, I have the same problem with Xcode 7.2.1. Thank you

@dustturtle
Copy link
Owner

iOS device version? ig: 9.1, in my 9.2 version device, this never happened

@ShantiSR
Copy link

At the moment only in the Simulator with iOS 9.1, 9.0, and iOS 8

@dustturtle
Copy link
Owner

Thank you! I will be deep into it.

dustturtle added a commit that referenced this issue Mar 10, 2016
@dustturtle
Copy link
Owner

I have committed some codes to fix the problem. Please try and give me a feedback. Thank you all!

@ShantiSR
Copy link

Now it always says that there is no internet connection, even with your test project:
captura de pantalla 2016-03-10 a las 11 45 58

@dustturtle
Copy link
Owner

I have made a silly mistake.>_< now please try again. Thank you! @ShantiSR

@ShantiSR
Copy link

Now it works perfectly, thank you very much for everything @dustturtle

@dustturtle
Copy link
Owner

You are welcome! I am so glad to meet kindly people like you! Thank you so much! @ShantiSR

@dustturtle
Copy link
Owner

@haojian2016 能否有空帮忙试下master最新的代码哈?多谢了

@haojian2016
Copy link
Author

嗯,好哒,嘿嘿

@ShantiSR
Copy link

If I launch the app without internet connection, the app is broken:

captura de pantalla 2016-03-11 a las 11 04 37

@dustturtle
Copy link
Owner

@ShantiSR I have fixed it just now.Thank you so much!

@ShantiSR
Copy link

@dustturtle Thank you very much, working properly :)

@dustturtle
Copy link
Owner

@haojian2016 有结果了吗?看到帮忙回复下哈! 多谢!

@dustturtle
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants