Help needed for debugging

Discussion in 'Mac Programming' started by Soulstorm, May 23, 2008.

  1. Soulstorm macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #1
    I have an application that has caused me much trouble the last few days. I am the developer and maintainer of the FS2_Open Launcher for OS X. Recently, I made an update, which is supposedly not working.

    I have tested it on my machine (Intel OS X 10.5.2) and 2 G4 machines running 10.4.11. The application is running fine. But other people in some forums tell me that the application won't even start! After suggestions about deleting preferences, etc, I came to the conclusion that they indeed have a problem.

    One of them has posted the below code taken from the console.app:

    Code:
     Identifier:      com.soulstorm.MMST2_3
    Version:         ??? (3.0.5b)
    Code Type:       X86 (Native)
    Parent Process:  launchd [70]
    
    Date/Time:       2008-05-22 18:58:40.948 +0200
    OS Version:      Mac OS X 10.5.2 (9C7010)
    Report Version:  6
    
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    
    Application Specific Information:
    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil'
    As you can see, this is a generic error, and I can't figure out where it is! I searched for aString in my application, but those parts of the application were working fine before the update, and I haven't changed them since then!

    So, what I want now is:
    - Please, test the application. I only want to know if it starts up. If the application manages to launch, it will be OK.
    - Can anyone tell me if there is any way of spotting a bug that I cannot even reproduce?

    You can download the test application here.
     
  2. Soulstorm thread starter macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
  3. pilotError macrumors 68020

    pilotError

    Joined:
    Apr 12, 2006
    Location:
    Long Island
    #3
    I got a few dialog boxes the first time I launched,

    Flag file not found and another that I missed. The second message didn't pop up on the 2nd launch.

    I'm able to get to the main screen, but when I click launch it dissapears.

    From the console:
     
  4. pilotError macrumors 68020

    pilotError

    Joined:
    Apr 12, 2006
    Location:
    Long Island
    #4
    Moved App to Applications,

    Console output:

    Window shots:
     

    Attached Files:

  5. Soulstorm thread starter macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #5
    That is normal. You are prompted with this message because you don't have Freespace 2 installed. (it's abandonware, so if you want to download it, you can pm me to give you the free installer. You are not violating any laws by doing so)

    Since you are able to go into the main screen (which is empty, since the Launcher didn't found the FS2_Open application in order to make the UI) then this means you don't have any problem.

    What system version do you have?
     
  6. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #6
    If it wasn't working for me I'd run a trace on it to see what files it was trying to open, what libraries it was trying to load etc.

    I wouldn't expect ordinary end users to know how to do this, so I'd distribute a debug version that wraps the executable in a shell script that in turn runs the program under DTrace. Capture the output of the trace into a file and have the end user send it to you.
     
  7. pilotError macrumors 68020

    pilotError

    Joined:
    Apr 12, 2006
    Location:
    Long Island
    #7
    Leopard 10.5.2 - Macbook Air

    Problem is that it does work for me and has an issue on his machine. Maybe the problem is after the actual launch.
     
  8. Soulstorm thread starter macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #8
    Actually, the problem is that it does work for me also, but it has problems on certain hardware-software of other users in other forums. I'm not doing anything low-level, so I still don't have a clue as to what's wrong.

    My assumption is that something is happening with memory management. Problem is that, I don't know why certain hardware lets you get away with this, while other doesn't.

    All people that have tested the application have done so using 10.5.2. Some of them have problems. The application works fine under 10.4.
     

Share This Page