Add new comment

Version 0.18.6 crashes constantly on Mac

Hi,

just trying to update use of libraw within a Java application. Starting wit 0.17 no problems have been found to include it using Java native interface (JNI). Just upgraded to 0.18.6-Release. Now libraw keeps crashing when initializing LibRaw (processor).

Switching back to version 0.17.x will bring the application back to working.

However I'm in need to enable processing of images taken with a new Canon EOS 77D. This won't work with version 0.17. Trying to compile 0.19 from Github also didn't work to solve the problem (just did not create a lib).

I'm working with developer tools on macOS El Capitan and macOS High Sierra with no luck.

While 0.17 compiles and runs like a charm, newer versions don't.

Thank you for your suggestions.

Code sample (in underlying C Code below Java app):

JNIEXPORT jintArray JNICALL Java_net_bwmc_libraw_LibRawImageLoader_loadRawImage
(JNIEnv *env, jclass clazz, jobject javaImageLoaderRef, jstring filename, jobject metadata, jint width, jint height)
{
// Open the file and read the metadata
const char *cfilename = env->GetStringUTFChars(filename, 0);

c_system_out_println(env, "Starting to read file %s.", cfilename);
// SO FAR NO PROBLEM...

// Let's create an image processor
LibRaw iProcessor;

// And bam!
// Code will not show following output, crash seems to be within construction of LibRaw object. and before starting to set output parameters.
c_system_out_println(env, "Preparing output parameters header.");

iProcessor.output_params_ptr()->half_size = 1; /* dcraw -h */
iProcessor.output_params_ptr()->no_auto_bright = 1; /* dcraw -W */
...

Forums: