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
crashed when call +[RKDropdownAlert title: message:] #28
Comments
Have you tried use Constant string like @"string" ? |
It only happens in Production, and I never find it in Debug. |
still not fixed the problem? LOL |
thanks for you quick response! |
sorry, scheme is not the main cause, but you can Enable Zombie Objects in scheme to find out the root of problem. From stack overflow: The reason it works on another phone is probably just that autoreleased objects aren't being released at the same time. You should check your retain/release balances and can use NSZombieEnabled to get more information. |
BTW, have you tried use Constant string like @"string" to test the code? E.g.: [RKDropdownAlert title:@"I'm Title" message:@"help me!!"]; |
yes, it does matter with memory. However, I use ARC, and there is no manually retain/release. This is why I can't find it so far. As for the Zombie, can it be enabled and work in Release? |
For Zombie, it can work in Release, you can edit your scheme to set Run as Release to help you find which one variable had been release memory by system. I understand the difficulty to locate this problem using ARC, because I'm using ARC too! haha! In my method, I use dummy, slow but accurate method to find out which/where the variable released: check all variable step by step. It may time consuming, but once you locate which variable released, you can find the root very fast. If you use with constant string and no error, you can mainly look at the string variable to find out where did it been released. |
Problem may happened by this statement. 10 MyApp 0x74847 -ZZFileViewController p_refreshByConnectStatus |
The Fabric has a record of issue:
I check the code, and find it just calls:
[RKDropdownAlert title:alertTitle message:alertMsg];
Both the strings are not nil as using
NSLocalizedString
.The Project is using ARC and I have no idea about this
EXC_BAD_ACCESS
.Could you find something from the crash log?
The text was updated successfully, but these errors were encountered: