-
Notifications
You must be signed in to change notification settings - Fork 67
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 when using IPA compiled file #37
Comments
Can you share crash log with dSYM file Regards, |
Of course. This crash report http://db.tt/vYT1b9N9 is the latest. I created new IPA compiled file from Cascade example code. I have the same exception type with my AP. |
I have the same problem. When I build the IPA for Ad-Hoc distribution I have a lot of crashes. I was able to replicate the problem setting build configuration to "release" in the simulator Run configuration in the schema manager.
Activating NS_Zombie, in the console I have the following error: *** -[CLSegmentedView retain]: message sent to deallocated instance 0x6d861f0 |
damjancvetan. change build type of run schema from debug(default value) to release. For archive schema default is release. |
lorenzopino. Try to use zombie instruments to see retain/release history for that object |
I was able to setup instruments and now I can watch retain/release history for CLSegmentedView object. What I have noticed is that if I keep opening table views as new detail view everything looks fine. New views are added from right (in landscape) and current view is pushed to the left. If I touch the right view (new one) and move it left or right application is working. But if I touch the left view the right one just disappear from the screen and I think that _pages array becomes empty. I can see in Instruments that [CLCascadeView hitTest:withEvent:] it called multiplie times and each time retain count decreases. If I look at the code and if I understand it right hitTest function return [super hitTest:point withEvent:event] and I believe it returns NIL at the end because point doesn't exist in any of the rectangles. Here is the screen shoot: http://dl.dropbox.com/u/15147799/Cascade_Instruments-1.png Anyone knows where is the function responsible for responding to user touch? |
Hi After looking in this hitTest function if was something strange to me and a rewrite while loop so the whole function looks like this: - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
// create enumerator
NSEnumerator* enumerator = [_pages reverseObjectEnumerator];
UIView *view = nil;
for (UIView *item in [enumerator allObjects]) {
if(item != nil){
CGRect rect = [_scrollView convertRect:item.frame toView:self];
if(CGRectContainsPoint(rect, point)){
CGPoint newPoint = [self convertPoint:point toView:item];
view = [item hitTest:newPoint withEvent:event];
break;
}
}
}
// bug fix: @YuriSarkisyan
if (view != nil) {
return view;
}
return [super hitTest:point withEvent:event];
} I think that problem was with object retain count and with function "nextObject" of NSEnumerator object. This code is now working for me even with compiled IPA file. It's possible that problem exist elsewhere but this is working on my and even on the example code. Please test it. |
Hi @ all, I had the same problem. Many thanks to @damjancvetan. His hitTest function works for me! One additional info: It has something to do with the build settings "Optimization Level". If this property is something else then "None" my app crashes with the same errorr message as described above. Regards |
Hello
My AP is running fine when I run it over XCode "Build & Run", but when I create IPA file and install it on iPad over iTunes it crash on swiping panels.
I even create IPA file of an Example Cascade code and AP crash immediately after I run it. I'm running it on iOS 5.
Did anyone ever experience something like that?
The text was updated successfully, but these errors were encountered: