terminating due to uncaught exception <_<

Discussion in 'iPhone/iPad Programming' started by liptonlover, Jan 5, 2009.

  1. macrumors 6502a

    Joined:
    Mar 13, 2008
    #1
    I've asked this before, but I'm getting different things from the console than usual when I get this error. First let me say I haven't touched this project in a couple months, but as far as I remember it was buildable when I last left it. I built and ran it just now to get a feel for it again before plunging back into it, but it crashed the sim. It built, opened the sim and showed a blank screen, then I got the terminating due to uncaught exception error in the debugger, thread one. I opened the console and found all this.

    Code:
    [Session started at 2009-01-05 19:12:15 -0500.]
    2009-01-05 19:12:19.310 Dystopia[2872:20b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewManager 0x525900> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key animationSlider.'
    
    [Session started at 2009-01-05 19:12:19 -0500.]
    2009-01-05 19:12:19.327 Dystopia[2872:20b] Stack: (
        2450354507,
        2528702011,
        2450353265,
        2522293832,
        2522292398,
        2522835809,
        818018567,
        2450307909,
        818013269,
        818021560,
        816113900,
        816149059,
        2522371566,
        2449857349,
        2449857784,
        827737600,
        827737797,
        816114840,
        816160916
    )
    Loading program into debugger…
    GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "i386-apple-darwin".warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
    warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
    warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
    warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
    Program loaded.
    sharedlibrary apply-load-rules all
    Attaching to program: `/Users/nate/Library/Application Support/iPhone Simulator/User/Applications/E3E05F4A-042C-4A73-88FD-73B414EE8C88/Dystopia.app/Dystopia', process 2872.
    (gdb) 
    Going off the fact that it references CoreGraphics and UIKit, I'm assuming it has a problem with the images I have throughout the app. But I KNOW for a fact that there was no problem like that when I left the project, because I had debugged any potential problems there ages ago.
    Also, I gave the project to a few friends so they could see it, but they couldn't compile it either so I'm not missing something from the sdk.
    Nate
     
  2. macrumors 65816

    italiano40

    Joined:
    Oct 7, 2007
    Location:
    NY
    #2
    you need use these codes to stop that
    Code:
    NS_DURING
    
    NS_HANDLER
    
    NS_ENDHANDLER
    
     
  3. thread starter macrumors 6502a

    Joined:
    Mar 13, 2008
    #3
    ummm... where do I put those and what exactly will they do?
    Thanks, Nate
     
  4. macrumors regular

    xsmasher

    Joined:
    Jul 18, 2008
    #4
    Ignore the debugger/symbol messages - the key is this one:

    Code:
    2009-01-05 19:12:19.310 Dystopia[2872:20b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewManager 0x525900> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key animationSlider.'
    
    Are you trying to set a key or variable called "animationSlider" for a "ViewManager" ? The system is telling you there's no such key.
     
  5. thread starter macrumors 6502a

    Joined:
    Mar 13, 2008
    #5
    Ok I found the problem, which I should have been able to find without help, but I never noticed that error it was offscreen. I must have created an animationSlider pointer and linked a slider to it, only to delete the pointer but not the connection. Thanks :)
    Nate
     

Share This Page