Debugging problems - crash in _DPSNextEvent / [NSApplication nextEventMatchingMask..
Debugging problems - crash in _DPSNextEvent / [NSApplication nextEventMatchingMask..
- Subject: Debugging problems - crash in _DPSNextEvent / [NSApplication nextEventMatchingMask..
- From: Thomas Engelmeier <email@hidden>
- Date: Sat, 11 Feb 2006 15:17:09 +0100
Hi,
I'm pulling my hair to get some async NSTask based processing to
work, and'd value any input what to watch out for, or what my code
is actually stomping.
My code does the following:
It shows an NSOpenPanel as sheet, when it is done, it spawns some
NSTasks (to be precise, Moriarty sample code derived TaskWrappers)
that process the selected files and in the callbacks update the UI
via KVC.
I get reproducible crashes that I can not reproduce when I modify
Moriarty sample to invoke exactly the same unix command line tool.
OTOH I stripped down my code to a bare minimum that just instantiates
a single problematic task.
- when I start the application without the debugger, the command line
tool (/usr/bin/sips) I invoke sometimes crashes, the main application
continues:
2006-02-10 20:16:08 +0100
EXC_BAD_ACCESS (0x0001)
KERN_INVALID_ADDRESS (0x0001) at 0xfcfcfcfc
Thread 0 Crashed:
0 0 + -50529028
1 __CFDataDeallocate + 176
2 _CFRelease + 240
3 _CGImageReadFinalize + 96
4 _CFRelease + 240
5 dhClose + 40
6 dataHandlerRoutine + 204
7 CallComponent + 260
8 CallComponentClose + 40
9 CloseComponentInternal(ComponentInstanceRecord*) + 108
- when I use the debugger, I get reproducible crashes of my
executable, and rather often, the next times I try to debug, I get
the message "executable path is nil" until I quit and restart XCode
#0 0x9000b208 in mach_msg_trap
#1 0x9000b15c in mach_msg
#2 0x9075d114 in __CFRunLoopRun
#3 0x9075ca18 in CFRunLoopRunSpecific
#4 0x9318e1e0 in RunCurrentEventLoopInMode
#5 0x9318d874 in ReceiveNextEventCommon
#6 0x9318d6e0 in BlockUntilNextEventMatchingListInMode
#7 0x9368c104 in _DPSNextEvent
#8 0x9368bdc8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden