-
Notifications
You must be signed in to change notification settings - Fork 636
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 tapping on Radio Element #717
Comments
Are you using iOS 9? I'm encountering a similar issue. |
+1 |
Temporary fixed by comment out these two lines. Works fine with my code. /* |
Did the same in https://github.com/nbonamy/QuickDialog. I rarely have a lot of items in my RadioElement so no scrolling is not a big issue. |
I made a fix and created a pull request a while ago: #720 |
A bit better way to fix it temporary: @try {
if (_root.preselectedElementIndex !=nil)
[self.quickDialogTableView scrollToRowAtIndexPath:_root.preselectedElementIndex atScrollPosition:UITableViewScrollPositionTop animated:NO];
}
@catch (NSException *exception) { } |
The real fix is in #720 |
@iNiKe @PatrickNLT PR seems to fix the issue, however in QuickDialogController.m
In viewWillAppear, is the controller really ready to scroll as the view is not layed out yet? I fixed it by moving the scrolling line to viewDidAppear |
I have a radio element that when I tap occasionally will crash with the following stack trace:
2015-07-28 14:30:13.512 FarmAtHand[321:60482] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 nan; 320 360]'
*** First throw call stack:
(0x185a382d8 0x1973940e4 0x185a38218 0x189ddfdc8 0x189ddfc74 0x18a4fd418 0x18a50c85c 0x18a590ef0 0x18a4ccd1c 0x18a582a2c 0x18a56091c 0x100360a8c 0x18a4c7f08 0x18a566544 0x18a565f30 0x18a565c50 0x18a565bd0 0x18a4ad6f4 0x189de9db8 0x189de4820 0x189de46c4 0x189de3e58 0x189de3bd8 0x189ddd300 0x1859f02a4 0x1859ed230 0x1859ed610 0x1859192d4 0x18f21f6fc 0x18a516f40 0x100122c0c 0x197a3ea08)
libc++abi.dylib: terminating with uncaught exception of type NSException
This happens in line 122 of QuickDialogController:
if (_root.preselectedElementIndex !=nil) [self.quickDialogTableView scrollToRowAtIndexPath:_root.preselectedElementIndex atScrollPosition:UITableViewScrollPositionTop animated:NO];
Any idea why this happens?
The text was updated successfully, but these errors were encountered: