SIGBART error when using ImageTools

I am running the below code to attempt to resize the photo that is taken in the CameraView. However when I test via iPhone in XCode I get a SIGABRT error message and the app crashes. Any help or direction is appreciated.

function capturePhoto() {
		.then(function (photo) {
				.then(function(filePath) {
					 var options = {
			    mode: ImageTools.IGNORE_ASPECT,
			    desiredWidth: 320, //The desired width in pixels
			    desiredHeight: 240 //The desired height in pixels

			ImageTools.resize(photo, options)
					console.log("Photo saved to: " + filePath);
					var arrayBuff = FileSystem.readBufferFromFileSync(filePath);
					b64data = Base64.encodeBuffer(arrayBuff); // send this to the backend
				.catch(function(error) {
					console.log("Failed to save photo: " + error);
		.catch(function (error) {
			console.log("Failed to capture photo: " + error);

You could enable an exception breakpoint in XCode and see what the stack trace tells you when it crashes. That should give a good enough hint on where the root cause of the problem is.

Below is the block of code in Xcode that is receiving a Thread 13 SIGABRT error on the 3rd line. Something with *imageFileURL maybe?

+(NSArray*) getImageSize:(NSString*)path {
    CGFloat width = 0.0f, height = 0.0f;
    NSURL *imageFileURL = [NSURL fileURLWithPath:path];
    CFURLRef url = (__bridge CFURLRef) imageFileURL;
    CGImageSourceRef imageSource = CGImageSourceCreateWithURL(url, nil);
    if (imageSource == nil) {
        return @[ @( 0 ), @( 0 )];

    CFDictionaryRef imageProperties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, nil);



If you added an exception breakpoint in XCode, you could see the stack trace on the left side, and then figure out what run-time variable didn’t have the value it was expected to have from there.