kylemcdonald / ofxEdsdk

Interfacing with Canon cameras from openFrameworks for OSX. An alternative to ofxCanon and CanonCameraWrapper.
Other
111 stars 51 forks source link

App crash on startup when calling OpenSession(EdsCameraRef inCameraRef) #29

Closed Meach closed 9 years ago

Meach commented 9 years ago

Hey,

I wanted to update an old project that was using this addon. I realised that when starting my app or your example it crashed in the function:

void OpenSession(EdsCameraRef inCameraRef) {EdsError err = EdsOpenSession(inCameraRef); if(err != EDS_ERR_OK) {throw Exception(err, "OpenSession");}}

(Located in EdsWrapper.cpp)

I tried the trick described in the readme here: https://github.com/wouterverweirder/ofxCanonEOS I replaced the current SDK with the one found in EOS Utility app.

Then the app launch correctly and work fine: I am able to get the live view.

I am then able to take a picture, save it to my computer but after that the live view doesn't refresh anymore and it looks like the camera is just frozen. #15 If I try to take another picture, I get:

[ error ] Error while taking a picture: [unrecognized EdsError] inside SendCommand() [ error ] Error while taking a picture: EDS_ERR_TAKE_PICTURE_AF_NG inside SendCommand()

Any idea what would be causing this?

I am using OF 0.8.4, Xcode 6.1.1, EDSDK 2.113, Canon EOS 500D

Thanks

Meach commented 9 years ago

Ok, I guess it's too early in here and haven't had enough coffee yet: realised the EDSDK version I have was far from being the latest one. Tried again with v2.15 and works at first time!

Live view is still frozen after taking a picture though but there is already another issue about this.

I close this