Open tebruno99 opened 10 years ago
Hi,
Thank you.
Could you tell me what you changed and where the JVM crashed in the code ?
Ghost4j: 0.4.6, 0.5.0, 0.5.1 and 0.5.2-SNAPSHOT Ghostscript: 9.10 and 9.14 Java: Java6 (Latest), Java7 (Latest)
On OSX I get: Invalid memory access of location 0x0 rip=0x0 at Ghostscript.java (runFile(String fileName): GhostscriptLibrary.instance.gsapi_run_file(getNativeInstanceByRef() .getValue(), fileName, 0, exitCode);
On Linux: # SIGSEGV (0xb) at pc=0x0000000000000000, pid=17329, tid=139761385789184
At: Ghostscript.java:runFile(String fileName) GhostscriptLibrary.instance.gsapi_run_file(getNativeInstanceByRef() .getValue(), fileName, 0, exitCode);
Linux Core Dump & Log: http://www.naveoss.com/ghost4j/issue32/core.zip http://www.naveoss.com/ghost4j/issue32/hs_err_pid11567.log Failing Sample: http://www.naveoss.com/ghost4j/issue32/MainConverter_SEGV.java
Fixed Sample: http://www.naveoss.com/ghost4j/issue32/MainConverter_FIXED.java
The same applies to the other sample that uses runFile
Thank you.... Something probably changed for runFile in the native API. I will have a look
I had use the following code instead of the sample provided otherwise the JVM would crash.