#141 new
Swizec

[bug?] Kod starts without open windows

Reported by Swizec | January 3rd, 2011 @ 12:59 AM

What I did:

I started Kod.

What I expected to happen:

A window with a blank file to open.

What actually happened:

Kod started without opening a window, which seems a bit confusing since most apps don't open like this.

edit: this is resolved by some commit made in the past few hours. Can't tell which.

Comments and changes to this ticket

  • Swizec

    Swizec January 3rd, 2011 @ 01:07 AM

    Upon further poking around it would seem that Kod is completely incapable of opening windows and eventually crashes.

  • Swizec

    Swizec January 3rd, 2011 @ 01:12 AM

    GDB output

    Starting program: /Applications/Kod.app/Contents/MacOS/Kod 
    Reading symbols for shared libraries .++....+.++++++++++++..................................................................................... done
    Reading symbols for shared libraries . done
    2011-01-03 01:10:03.484 Kod[19387:a0f] Can't open input server /Users/Swizec/Library/InputManagers/Edit in WriteRoom
    Reading symbols for shared libraries . done
    main.js started. kod -> { version: '0.0.3',
      exposedFunctions: {},
      getAllDocuments: [Function],
      handleUncaughtException: [Function],
      KSplitView: [Function: KSplitView],
      KBrowserWindowController: [Function: KBrowserWindowController],
      KDocument: [Function: KDocument],
      KScrollView: [Function: KScrollView],
      KClipView: [Function: KClipView],
      KTextView: [Function: KTextView],
      KWordDictionary: [Function: KWordDictionary] }
    process.env -> { MANPATH: '/sw/share/man:/opt/local/man:/opt/local/man::/sw/lib/perl5/5.10.0/man:/usr/X11R6/man',
      TERM_PROGRAM: 'Apple_Terminal',
      TERM: 'xterm-color',
      SHELL: '/bin/bash',
      TMPDIR: '/var/folders/sL/sL2ZtoVRFu0uD8CBkhC7pE+++TI/-Tmp-/',
      PERL5LIB: '/sw/lib/perl5:/sw/lib/perl5/darwin',
      Apple_PubSub_Socket_Render: '/tmp/launch-uooBeY/Render',
      TERM_PROGRAM_VERSION: '273',
      USER: 'Swizec',
      COMMAND_MODE: 'unix2003',
      SSH_AUTH_SOCK: '/tmp/launch-2ImJHj/Listeners',
      __CF_USER_TEXT_ENCODING: '0x1F5:0:0',
      CLOJURE_EXT: '/Users/Swizec/.clojure',
      COLUMNS: '130',
      PATH: '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/opt/local/bin:/Users/Swizec/clojure-contrib/launchers/bash:/usr/X11R6/bin:/sbin:/bin:/usr/sbin:/usr/bin',
      PWD: '/Users/Swizec',
      VERSIONER_PERL_PREFER_32_BIT: 'yes',
      LINES: '32',
      SHLVL: '1',
      HOME: '/Users/Swizec',
      LOGNAME: 'Swizec',
      LC_CTYPE: 'UTF-8',
      INFOPATH: '/sw/share/info:/sw/info:/usr/share/info',
      DISPLAY: '/tmp/launch-4Z3FCn/org.x:0',
      NODE_PATH: '/Applications/Kod.app/Contents/SharedSupport/nodelib',
      KOD_APP_BUNDLE: '/Applications/Kod.app' }
    require.paths -> [ '/Applications/Kod.app/Contents/lib/node',
      '/Applications/Kod.app/Contents/SharedSupport/nodelib',
      '/Users/Swizec/.node_modules',
      '/Users/Swizec/.node_libraries' ]
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    2011-01-03 01:10:04.147 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:04.147 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:04.150 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:04.150 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    Reading symbols for shared libraries . done
    2011-01-03 01:10:09.892 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:09.892 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    Reading symbols for shared libraries . done
    2011-01-03 01:10:12.690 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:12.691 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:13.581 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:13.586 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:14.042 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:14.043 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:14.497 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:14.504 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:15.361 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:15.362 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:15.705 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:15.705 Kod[19387:a0f] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    Reading symbols for shared libraries ....................... done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries .. done
    Reading symbols for shared libraries . done
    2011-01-03 01:10:19.853 Kod[19387:9f03] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:19.853 Kod[19387:9f03] An uncaught exception was raised
    2011-01-03 01:10:19.853 Kod[19387:9f03] -[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730
    2011-01-03 01:10:19.854 Kod[19387:9f03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSUserDefaults post:userObject:forKey:]: unrecognized selector sent to instance 0x100a23730'
    *** Call stack at first throw:
    (
        0   CoreFoundation                      0x00007fff81d707b4 __exceptionPreprocess + 180
        1   libobjc.A.dylib                     0x00007fff857740f3 objc_exception_throw + 45
        2   CoreFoundation                      0x00007fff81dca110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
        3   CoreFoundation                      0x00007fff81d4291f ___forwarding___ + 751
        4   CoreFoundation                      0x00007fff81d3ea68 _CF_forwarding_prep_0 + 232
        5   Kod                                 0x0000000100035ed9 _ZSt9__reverseIN9__gnu_cxx17__normal_iteratorIP6CGRectSt6vectorIS2_SaIS2_EEEEEvT_S8_St26random_access_iterator_tag + 91687
        6   Kod                                 0x0000000100009c9f _ZNSt3tr110_HashtableIjSt4pairIKj8HObjCPtrESaIS4_ESt10_Select1terminate called after throwing an instance of 'NSException'
    
    Program received signal SIGABRT, Aborted.
    0x00007fff850892da in mach_msg_trap ()
    (gdb) bt
    #0  0x00007fff850892da in mach_msg_trap ()
    #1  0x00007fff8508994d in mach_msg ()
    #2  0x00007fff83167bc8 in _CGSSetWindowLevel ()
    #3  0x00007fff83167b30 in CGSSetWindowLevel ()
    #4  0x00007fff8069e574 in PSsetwindowlevel ()
    #5  0x00007fff8069e39a in -[NSWindow setLevel:] ()
    #6  0x00007fff862bf23c in __NSFireDelayedPerform ()
    #7  0x00007fff81d0cbe8 in __CFRunLoopRun ()
    #8  0x00007fff81d0adbf in CFRunLoopRunSpecific ()
    #9  0x00007fff88d8391a in RunCurrentEventLoopInMode ()
    #10 0x00007fff88d8371f in ReceiveNextEventCommon ()
    #11 0x00007fff88d835d8 in BlockUntilNextEventMatchingListInMode ()
    #12 0x00007fff806bde64 in _DPSNextEvent ()
    #13 0x00007fff806bd7a9 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
    #14 0x00007fff8068348b in -[NSApplication run] ()
    #15 0x00007fff8067c1a8 in NSApplicationMain ()
    #16 0x0000000100004904 in std::tr1::_Hashtable<unsigned int, std::pair<unsigned int const, HObjCPtr>, std::allocator<std::pair<unsigned int const, HObjCPtr> >, std::_Select1st<std::pair<unsigned int const, HObjCPtr> >, std::equal_to<unsigned int>, std::tr1::hash<unsigned int>, std::tr1::__detail::_Mod_range_hashing, std::tr1::__detail::_Default_ranged_hash, std::tr1::__detail::_Prime_rehash_policy, false, false, true>::_Hashtable ()
    
  • Swizec

    Swizec January 3rd, 2011 @ 01:54 AM

    Someone please close this. It seems to be fixed somewhere in the last two commits to master.

  • Stephan

    Stephan January 3rd, 2011 @ 03:45 AM

    The current version seems to crash with a probability of about 40% when closing tabs. GDB says "EXC_BAD_ACCESS".

  • Stephan

    Stephan January 3rd, 2011 @ 01:57 PM

    Some literature that might help: http://www.touch-code-magazine.com/exc_bad_access/

    I guess its a delegate not set to nil when closing tabs and some other thread doing a callback. Sadly, I lack to overview of the code to debug it myself.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket

Pages