can't run movieGrabberExample


I am trying to compile the movieGrabberExample. I am using of_preRelease_v0062_osxSL_FAT version. My operating system is mac os 10.6.8, processor 2.66 GHz Intel Core 2 Duo, Xcode 3.2.6. The application compiles, but at runtime I don’t see the proper image from the native mac camera, or the application says received EXC_BAD_ACCESS.

What should I do?


Can you paste what is in the console? It should look something like this:

(unavailable) device[0] CamTwist  
(unavailable) device[1] DV Video  
(unavailable) device[2] DVCPRO HD (1080i50)  
(unavailable) device[3] DVCPRO HD (1080i60)  
(unavailable) device[4] DVCPRO HD (720p25/50)  
(unavailable) device[5] DVCPRO HD (720p60)  
(unavailable) device[6] IIDC FireWire Video  
device[7] USB Video Class Video - FaceTime HD Camera (Built-in)  

These are all the outputs

Session started at 2011-07-19 10:22:11 +0200.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for details.
This GDB was configured as “x86_64-apple-darwin”.tty /dev/ttys000
Loading program into debugger

Program loaded.
[Switching to process 3205]

(unavailable) device[0] (null)
(unavailable) device[1] (null)
device[2] (null) - (null)

Program received signal: “EXC_BAD_ACCESS”.
sharedlibrary apply-load-rules all

#0 0x914afcb0 in strlen
#1 0x941b73b6 in std::string::assign
#2 0x0000cf76 in ofVideoGrabber::qtSelectDevice at ofVideoGrabber.cpp:818
#3 0x0000df5d in ofVideoGrabber::initGrabber at ofVideoGrabber.cpp:916
#4 0x00004c46 in testApp::setup at testApp.cpp:14
#5 0x00005bc2 in ofAppGlutWindow::runAppViaInfiniteLoop at ofAppGlutWindow.cpp:219
#6 0x00008cf8 in ofRunApp at ofAppRunner.cpp:122
#7 0x000046b2 in main at main.cpp:14