Error in OSX 10.5 and not in OSX 10.4

Discussion in 'Mac Programming' started by satyam90, Sep 2, 2008.

  1. macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #1
    I have an application called iFolder (www.ifolder.com), an open source project.
    I am running it from console.
    It's working fine in 10.4(Tiger) and 10.5(Leapord).
    But while running it in 10.5(Leapord), I am seeing the following message on console:
    *** -[NSConditionLock unlockWithCondition:]: lock (<NSConditionLock: 0x349220> '(null)' unlocked when not locked

    What's different in 10.5 Mac. Will I have to change my code such that it works on both 10.4 and 10.5 without any error? I want to know why it is not coming in 10.4 or why it is coming on 10.5?
     
  2. macrumors 6502

    Joined:
    Jul 25, 2006
    #2
    It's always a good idea to check release notes for something like this that changes from release to release:


    It's a problem with the app itself. (-unlock is being called before -lock is called... obviously doesn't make sense.) You should inform the maintainer of the open source app, or try to fix it yourself.

    Edit: Also, very strange, I just noticed the lock is somehow nil? Don't quite understand that, but I still think it's the app's fault. (If you want to fix it yourself, try breaking on _NSLockError to find the problematic lock)
     
  3. thread starter macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #3
    I can't use Debugger available with XCode.
    I have to debug from console only. Any suggestions how to do it?
     
  4. macrumors 6502

    Joined:
    Jul 25, 2006
    #4
    Why can't you use the Xcode debugger? You can attach to any executable with it.

    If you really can't use it, just type gdb /path/to/<app name>.app/Contents/MacOS/<app name>

    Make sure the app is built with symbols to aid debugging.
     

Share This Page