"bus error" when sending NSImages using distributed objects?
"bus error" when sending NSImages using distributed objects?
- Subject: "bus error" when sending NSImages using distributed objects?
- From: Jonathan del Strother <email@hidden>
- Date: Tue, 28 Feb 2006 14:14:26 +0000
Heya,
I'm using distributed objects to obtain an NSImage from a server
process.
It doesn't occur all the time, but quite often, the server process
just dies with a 'Bus error' on returning the NSImage. The crash log
looks like :
Thread 0 Crashed:
0 <<00000000>> 0xbfffdcd0 0 + -1073750832
1 libobjc.A.dylib 0x909c3354
_internal_class_createInstanceFromZone + 80
2 libobjc.A.dylib 0x909c587c
_internal_object_copyFromZone + 64
3 com.apple.Foundation 0x928ea5b8 NSCopyObject + 124
4 com.apple.AppKit 0x93713bd0 -[NSImage copyWithZone:] + 152
5 libobjc.A.dylib 0x909c5214 objc_msgSendv + 180
6 com.apple.Foundation 0x928d0380 -[NSInvocation invoke] + 1384
7 com.apple.Foundation 0x928cfc8c -[NSConnection
dispatchInvocation:] + 252
8 com.apple.Foundation 0x928cdd98 -[NSConnection
handleRequest:sequence:] + 988
9 com.apple.Foundation 0x928cd70c -[NSConnection
handlePortCoder:] + 496
10 com.apple.Foundation 0x928cd478 -[NSConcretePortCoder
dispatch] + 100
11 com.apple.Foundation 0x928cce58 __NSFireMachPort + 276
12 com.apple.CoreFoundation 0x9076bdbc __CFMachPortPerform + 176
13 com.apple.CoreFoundation 0x9076bcd0 __CFRunLoopDoSource1 + 152
14 com.apple.CoreFoundation 0x9075e3e8 __CFRunLoopRun + 1556
15 com.apple.CoreFoundation 0x9075da18 CFRunLoopRunSpecific + 268
16 com.apple.HIToolbox 0x9317c1e0 RunCurrentEventLoopInMode + 264
17 com.apple.HIToolbox 0x9317b874 ReceiveNextEventCommon + 380
18 com.apple.HIToolbox 0x9317b6e0
BlockUntilNextEventMatchingListInMode + 96
19 com.apple.AppKit 0x9367a104 _DPSNextEvent + 384
20 com.apple.AppKit 0x93679dc8 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
21 com.apple.AppKit 0x9367630c -[NSApplication run] + 472
22 mainServer.ob 0x0002cea4 main + 304 (mainServer.m:22)
23 BBWebServer 0x0000260c start + 404
24 BBWebServer 0x000024b4 start + 60
I think the crash-frequency is related to the size of the image, but
it doesn't seem to be a hard limit. Image sizes above 200k crash
fairly often.
Any suggestions on fixing this?
Thanks,
Jon
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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