AviaryCordovaPlugin icon indicating copy to clipboard operation
AviaryCordovaPlugin copied to clipboard

Failing on Cordova 3.3?

Open eirikhm opened this issue 11 years ago • 3 comments

I've set up a simple application, and I'm calling the sample code on camera success. The app halts, and I'm getting the following error:

2014-02-24 11:40:51.154 MyApp[320:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target <MainViewController: 0x1464f1b0>.'
*** First throw call stack:
(0x2d74be83 0x37aac6c7 0x2ffb81eb 0x3019447b 0x12da0b 0x10a091 0x1099b7 0x109561 0x109747 0x109659 0x2e12fe4b 0x2d716f1f 0x2d7163e7 0x2d714bd7 0x2d67f471 0x2d67f253 0x323b32eb 0x2ff34845 0x10fd57 0x10fd18)
libc++abi.dylib: terminating with uncaught exception of type NSException

Not much to go on here.. Any ideas?

eirikhm avatar Feb 24 '14 11:02 eirikhm

I developed the plugin with version 3.3.11 of the iOS SDK. Are you using a later version?

m1is avatar Feb 24 '14 18:02 m1is

Oh my bad I was thinking the Aviary version not the Cordova version. I have only tested this with Cordova version 3.2.

m1is avatar Feb 24 '14 18:02 m1is

Are you getting your image data from camera? If so, try adding setTimeout 500 before passing it on to aviary. Not ideal, but it seems to work for me.

eirikhm avatar Mar 13 '14 08:03 eirikhm