Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jacob McLaws
1,497 PointsProblem with Ribbit App Succeeding, but terminating before Log In Screen
Hi Treehouse mates,
I've got a big moth of a bug that I can't figure out. I get this when I run my app:
2014-10-20 17:25:04.824 Ribbit[92742:19867455] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot do a comparison query for type: (null)' *** First throw call stack: ( 0 CoreFoundation 0x0000000111ca1f35 exceptionPreprocess + 165 1 libobjc.A.dylib 0x000000011193abb7 objc_exception_throw + 45 2 CoreFoundation 0x0000000111ca1e6d +[NSException raise:format:] + 205 3 Ribbit 0x000000010eb4a0b1 +[PFInternalUtils assertValidClassForQuery:] + 333 4 Ribbit 0x000000010eb333f9 -[PFQuery whereKey:equalTo:] + 86 5 Ribbit 0x000000010eb1c7a0 -[InboxTableViewController viewWillAppear:] + 336 6 UIKit 0x000000011030c821 -[UIViewController _setViewAppearState:isAnimating:] + 487 7 UIKit 0x0000000110337960 -[UINavigationController _startTransition:fromViewController:toViewController:] + 776 8 UIKit 0x0000000110338487 -[UINavigationController _startDeferredTransitionIfNeeded:] + 523 9 UIKit 0x0000000110338f47 -[UINavigationController __viewWillLayoutSubviews] + 43 10 UIKit 0x000000011047e509 -[UILayoutContainerView layoutSubviews] + 202 11 UIKit 0x000000011025c973 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521 12 QuartzCore 0x000000010fcadde8 -[CALayer layoutSublayers] + 150 13 QuartzCore 0x000000010fca2a0e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 14 QuartzCore 0x000000010fca287e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24 15 QuartzCore 0x000000010fc1063e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242 16 QuartzCore 0x000000010fc1174a _ZN2CA11Transaction6commitEv + 390 17 UIKit 0x00000001101e154d -[UIApplication _reportMainSceneUpdateFinished:] + 44 18 UIKit 0x00000001101e2238 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2642 19 UIKit 0x00000001101e0bf2 -[UIApplication workspaceDidEndTransaction:] + 179 20 FrontBoardServices 0x00000001154972a3 __31-[FBSSerialQueue performAsync:]_block_invoke + 16 21 CoreFoundation 0x0000000111bd753c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 22 CoreFoundation 0x0000000111bcd285 __CFRunLoopDoBlocks + 341 23 CoreFoundation 0x0000000111bcca43 __CFRunLoopRun + 851 24 CoreFoundation 0x0000000111bcc486 CFRunLoopRunSpecific + 470 25 UIKit 0x00000001101e0669 -[UIApplication _run] + 413 26 UIKit 0x00000001101e3420 UIApplicationMain + 1282 27 Ribbit 0x000000010eb1e163 main + 115 28 libdyld.dylib 0x0000000113caa145 start + 1 29 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
I was in the process of updating the designs (the heavy lifting is all done), but then when I was doing a build it stopped working. One funny clue is that it still works on my actual iphone (my hypothesis is that that's because I haven't logged out) everything else seems to crash when it gets to the login page. It's driving me nuts.
Pretty sure this is Parse related. Here's a relevant parse question that I could use interpretation on: https://www.parse.com/questions/ios-most-elegant-way-to-catch-assertvalidclassforquery-problems
Thanks!
Kyle Pontius
6,190 PointsKyle Pontius
6,190 PointsThis looks like quite the question. If you could post code that is nearby where you were working, when it stopped running correctly, that'd be very helpful.
Thanks!