Hi there,

I am migrating my code from ImageCaptureMBS to the Leopard Image Kit plugin. I 
have it set up to take a picture, and when the item is added to the camera to 
download the image to the computer. It works for the first 2 photos, but on the 
3rd, it crashes (in my app with a Signal 11). It appears the camera object 
(ICCameraDeviceMBS) is becoming invalid in some way. 
I can reproduce the crash with the Camera Browser example. 

- If you click on the camera that appears on the left in the Cameras listbox.
- Once cataloging of the camera is complete and you can see the images listed 
select an image and click on Download.
- Repeat this 2 more times (with different images).
- Now click on Take Picture button, the application will crash with the log 
shown below.

Am I missing something or is the camera device being released in some way ?

Thanks for you help,

Andy

Process:               Camera Browser.debug [6571]
Path:                  /Users/USER/*/Camera 
Browser.debug.app/Contents/MacOS/Camera Browser.debug
Identifier:            de.monkeybreadsoftware.xojo.examples.CameraBrowser
Version:               ??? (1.0.0.0.0)
Code Type:             X86 (Native)
Parent Process:        ??? [1]
Responsible:           Camera Browser.debug [6571]
User ID:               501

Date/Time:             2015-11-15 22:26:05.322 +0000
OS Version:            Mac OS X 10.10.5 (14F1021)
Report Version:        11
Anonymous UUID:        7BB8A514-3C8C-954D-B78D-F2E416E5BA86

Sleep/Wake UUID:       1BF00E8E-BB8B-4B28-A12F-EDBF162E1ECD

Time Awake Since Boot: 190000 seconds
Time Since Wake:       39000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000030e19fc8

VM Regions Near 0x30e19fc8:
    MALLOC_TINY            0000000018500000-0000000018700000 [ 2048K] rw-/rwx 
SM=PRV  
--> 
    __TEXT                 000000008fed3000-000000008ff07000 [  208K] r-x/rwx 
SM=COW  /usr/lib/dyld

Application Specific Information:
Performing @selector(performClick:) from sender XOJButton 0x1f55540

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.xojo.XojoFramework              0x0065b16b RuntimeObjectIsa + 139
1   com.xojo.XojoFramework              0x0065b1b0 RuntimeCheckCast + 49
2   de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x0036e099 
MainWindow.MainWindow.selectedCamera%o<ICCameraDeviceMBS>%o<MainWindow.MainWindow>
 + 492
3   de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x00369cac 
MainWindow.MainWindow.TakeButton_Action%%o<MainWindow.MainWindow>o<PushButton> 
+ 123
4   de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x003773b7 
Delegate.IM_Invoke%%o<PushButton> + 83
5   de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x003773f9 
AddHandler.Stub.15%% + 54
6   com.xojo.XojoFramework              0x00623a22 printerSetupSetLandscape + 
148
7   com.xojo.XojoFramework              0x00548729 Xojo_DictionaryEntryValue + 
20030
8   libobjc.A.dylib                     0x9859f853 -[NSObject 
performSelector:withObject:] + 70
9   com.apple.AppKit                    0x9a6b6c1e __36-[NSApplication 
sendAction:to:from:]_block_invoke + 51
10  libsystem_trace.dylib               0x9059fc03 _os_activity_initiate + 89
11  com.apple.AppKit                    0x9a6b6b37 -[NSApplication 
sendAction:to:from:] + 602
12  com.apple.AppKit                    0x9a6ce766 -[NSControl sendAction:to:] 
+ 102
13  com.apple.AppKit                    0x9a6ce64b __26-[NSCell 
_sendActionFrom:]_block_invoke + 176
14  libsystem_trace.dylib               0x9059fc03 _os_activity_initiate + 89
15  com.apple.AppKit                    0x9a6ce57a -[NSCell _sendActionFrom:] + 
161
16  com.apple.AppKit                    0x9a9740a6 __48-[NSCell 
trackMouse:inRect:ofView:untilMouseUp:]_block_invoke989 + 43
17  libsystem_trace.dylib               0x9059fc03 _os_activity_initiate + 89
18  com.apple.AppKit                    0x9a6cc49e -[NSCell 
trackMouse:inRect:ofView:untilMouseUp:] + 2908
19  com.apple.AppKit                    0x9a728ccc -[NSButtonCell 
trackMouse:inRect:ofView:untilMouseUp:] + 833
20  com.apple.AppKit                    0x9a6caa6c -[NSControl mouseDown:] + 762
21  com.xojo.XojoFramework              0x005369cc RuntimeHSVA + 573
22  com.apple.AppKit                    0x9acd33f6 -[NSWindow 
_reallySendEvent:isDelayedEvent:] + 13689
23  com.apple.AppKit                    0x9a5b53ca -[NSWindow sendEvent:] + 526
24  com.xojo.XojoFramework              0x00542dce TextOutputStream_Create + 
23099
25  com.apple.AppKit                    0x9a5b19c4 -[NSApplication sendEvent:] 
+ 4765
26  com.xojo.XojoFramework              0x005325c9 ParseJSON + 12347
27  com.xojo.XojoFramework              0x0053260a ParseJSON + 12412
28  de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x00002c6e 
Delegate.Invoke%% + 34
29  de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x00058704 
Application._CallFunctionWithExceptionHandling%%o<Application>p + 248
30  com.xojo.XojoFramework              0x0065923a 
SSLSettings_SetValidateCertificates + 1002
31  com.xojo.XojoFramework              0x00532538 ParseJSON + 12202
32  com.apple.AppKit                    0x9a4d1bfc -[NSApplication run] + 1003
33  com.xojo.XojoFramework              0x006592b7 
SSLSettings_SetValidateCertificates + 1127
34  com.xojo.XojoFramework              0x0065784c RuntimeRun + 49
35  de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x000d145d 
REALbasic._RuntimeRun + 34
36  de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x00002b5a _Main + 257
37  de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x000025e8 main + 36
38  de.monkeybreadsoftware.xojo.examples.CameraBrowser  0x003ab798 start + 53

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to