kylemcdonald / ofxEdsdk

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

error when downloading large videos #35

Open jeffcrouse opened 9 years ago

jeffcrouse commented 9 years ago

MyApp(37848,0xb0536000) malloc: * mach_vm_map(size=1753378816) failed (error code=3) * error: can't allocate region *\ set a breakpoint in malloc_error_break to debug

this happens in Eds::DownloadImage > Eds::CopyStream when the video gets above a certain number of MB. I think it's around 450MB...

Still looking into it, but has anyone else encountered this problem?

EDSDK v2.15 / OS X 10.10.4 / 5D Mark III

kylemcdonald commented 9 years ago

haven't run into this before, so thanks for sharing the details -- there are definitely error cases that are not elegantly handled by ofxEdsdk and i wouldn't be surprised if this was one of them.

that said, it looks like it's trying to allocate 1.75 GB, which seems strange for a 450 MB video...