Message Boards Message Boards

Avoid problem with JLinkNativeLibrary.dll ?

GROUPS:

Hi, I`m trying to write an application on Java for windows that will use some functions from Wolfram Mathematica. I have followed a guide, application was built successfully, but in runtime it crashed.

Here is a part of error log

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd1af525f2, pid=11336, tid=7856
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.1+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  [JLinkNativeLibrary.dll+0x125f2]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -javaagent:D:\Program Files\IntelliJ IDEA 2017.3.1\lib\idea_rt.jar=61763:D:\Program Files\IntelliJ IDEA 2017.3.1\bin -Dfile.encoding=UTF-8 sample.Main

Host: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 8 cores, 15G,  Windows 10 , 64 bit Build 16299 (10.0.16299.15)
Time: Wed Jan 24 16:09:14 2018 Oeieyiaey (ceia) elapsed time: 10 seconds (0d 0h 0m 10s)

---------------  T H R E A D  ---------------

Current thread (0x000001d10aa51800):  JavaThread "JavaFX Application Thread" [_thread_in_native, id=7856, stack(0x00000047bc000000,0x00000047bc100000)]

Stack: [0x00000047bc000000,0x00000047bc100000],  sp=0x00000047bc0faad0,  free space=1002k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [JLinkNativeLibrary.dll+0x125f2]
C  [JLinkNativeLibrary.dll+0x2fb3]
C  0x000001d16d5d921c

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.wolfram.jlink.NativeLink.MLSetMessageHandler(J)V+0
j  com.wolfram.jlink.NativeLink.addMessageHandler(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)Z+18
j  com.wolfram.jlink.WrappedKernelLink.addMessageHandler(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)Z+7
j  com.wolfram.jlink.WrappedKernelLink.<init>(Lcom/wolfram/jlink/MathLink;)V+23
j  com.wolfram.jlink.MathLinkFactory.createKernelLink0(Ljava/lang/String;[Ljava/lang/String;)Lcom/wolfram/jlink/KernelLink;+336
j  com.wolfram.jlink.MathLinkFactory.createKernelLink(Ljava/lang/String;)Lcom/wolfram/jlink/KernelLink;+2
j  sample.Controller.solve()V+18
v  ~StubRoutines::call_stub
j  jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@9.0.1
j  jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 java.base@9.0.1
j  jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 java.base@9.0.1
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 java.base@9.0.1
j  com.sun.javafx.reflect.Trampoline.invoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+7
j  jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+40
j  jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 java.base@9.0.1
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 java.base@9.0.1
j  com.sun.javafx.reflect.MethodUtil.invoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+20 javafx.base@9.0.1
j  com.sun.javafx.fxml.MethodHelper.invoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+142 javafx.fxml@9.0.1
j  javafx.fxml.FXMLLoader$MethodHandler.invoke([Ljava/lang/Object;)V+38 javafx.fxml@9.0.1
j  javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Ljavafx/event/Event;)V+12 javafx.fxml@9.0.1
J 1867 c1 com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Ljavafx/event/Event;)V javafx.base@9.0.1 (57 bytes) @ 0x000001d16dede1cc [0x000001d16dedde00+0x00000000000003cc]
J 1581 c1 com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (23 bytes) @ 0x000001d16de4d30c [0x000001d16de4cca0+0x000000000000066c]
J 1606 c1 com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (35 bytes) @ 0x000001d16de59494 [0x000001d16de592e0+0x00000000000001b4]
J 1582 c1 com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event; javafx.base@9.0.1 (44 bytes) @ 0x000001d16de4de2c [0x000001d16de4db00+0x000000000000032c]
J 1520 c1 com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (101 bytes) @ 0x000001d16de37414 [0x000001d16de37260+0x00000000000001b4]
J 1582 c1 com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event; javafx.base@9.0.1 (44 bytes) @ 0x000001d16de4dd44 [0x000001d16de4db00+0x0000000000000244]
J 1520 c1 com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (101 bytes) @ 0x000001d16de37414 [0x000001d16de37260+0x00000000000001b4]
J 1582 c1 com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event; javafx.base@9.0.1 (44 bytes) @ 0x000001d16de4dd44 [0x000001d16de4db00+0x0000000000000244]
J 1520 c1 com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (101 bytes) @ 0x000001d16de37414 [0x000001d16de37260+0x00000000000001b4]
J 1628 c1 com.sun.javafx.event.EventUtil.fireEvent(Ljavafx/event/EventTarget;Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (81 bytes) @ 0x000001d16de6b85c [0x000001d16de6aa20+0x0000000000000e3c]
J 1627 c1 javafx.event.Event.fireEvent(Ljavafx/event/EventTarget;Ljavafx/event/Event;)V javafx.base@9.0.1 (35 bytes) @ 0x000001d16de6a344 [0x000001d16de6a280+0x00000000000000c4]
j  javafx.scene.Node.fireEvent(Ljavafx/event/Event;)V+86 javafx.graphics@9.0.1
j  javafx.scene.control.Button.fire()V+15 javafx.controls@9.0.1
j  com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Ljavafx/scene/input/MouseEvent;)V+27 javafx.controls@9.0.1
j  com.sun.javafx.scene.control.behavior.ButtonBehavior$$Lambda$297.handle(Ljavafx/event/Event;)V+8 javafx.controls@9.0.1
j  com.sun.javafx.scene.control.inputmap.InputMap.handle(Ljavafx/event/Event;)V+61 javafx.controls@9.0.1
j  com.sun.javafx.scene.control.inputmap.InputMap$$Lambda$211.handle(Ljavafx/event/Event;)V+5 javafx.controls@9.0.1
J 1872 c1 com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Ljavafx/event/Event;)V javafx.base@9.0.1 (11 bytes) @ 0x000001d16dee0044 [0x000001d16dedff40+0x0000000000000104]
J 1867 c1 com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Ljavafx/event/Event;)V javafx.base@9.0.1 (57 bytes) @ 0x000001d16dede044 [0x000001d16dedde00+0x0000000000000244]
J 1581 c1 com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (23 bytes) @ 0x000001d16de4d30c [0x000001d16de4cca0+0x000000000000066c]
J 1606 c1 com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (35 bytes) @ 0x000001d16de59494 [0x000001d16de592e0+0x00000000000001b4]
J 1582 c1 com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event; javafx.base@9.0.1 (44 bytes) @ 0x000001d16de4de2c [0x000001d16de4db00+0x000000000000032c]
J 1520 c1 com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (101 bytes) @ 0x000001d16de37414 [0x000001d16de37260+0x00000000000001b4]
J 1582 c1 com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event; javafx.base@9.0.1 (44 bytes) @ 0x000001d16de4dd44 [0x000001d16de4db00+0x0000000000000244]
J 1520 c1 com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (101 bytes) @ 0x000001d16de37414 [0x000001d16de37260+0x00000000000001b4]
J 1582 c1 com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event; javafx.base@9.0.1 (44 bytes) @ 0x000001d16de4dd44 [0x000001d16de4db00+0x0000000000000244]
J 1520 c1 com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (101 bytes) @ 0x000001d16de37414 [0x000001d16de37260+0x00000000000001b4]
J 1628 c1 com.sun.javafx.event.EventUtil.fireEvent(Ljavafx/event/EventTarget;Ljavafx/event/Event;)Ljavafx/event/Event; javafx.base@9.0.1 (81 bytes) @ 0x000001d16de6b3cc [0x000001d16de6aa20+0x00000000000009ac]
J 1636 c1 javafx.scene.Scene$MouseHandler.process(Ljavafx/scene/input/MouseEvent;Z)V javafx.graphics@9.0.1 (735 bytes) @ 0x000001d16de73a0c [0x000001d16de71180+0x000000000000288c]
J 1999 c1 javafx.scene.Scene$ScenePeerListener.mouseEvent(Ljavafx/event/EventType;DDDDLjavafx/scene/input/MouseButton;ZZZZZZZZZ)V javafx.graphics@9.0.1 (50 bytes) @ 0x000001d16df16614 [0x000001d16df16360+0x00000000000002b4]
J 1994 c1 com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run()Ljava/lang/Void; javafx.graphics@9.0.1 (635 bytes) @ 0x000001d16df1432c [0x000001d16df13180+0x00000000000011ac]
J 1993 c1 com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run()Ljava/lang/Object; javafx.graphics@9.0.1 (5 bytes) @ 0x000001d16df12cc4 [0x000001d16df12c40+0x0000000000000084]
v  ~StubRoutines::call_stub
J 1530  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; java.base@9.0.1 (0 bytes) @ 0x000001d17513eb46 [0x000001d17513eae0+0x0000000000000066]
J 1797 c1 com.sun.javafx.tk.quantum.GlassViewEventHandler$$Lambda$314.get()Ljava/lang/Object; javafx.graphics@9.0.1 (8 bytes) @ 0x000001d16debe64c [0x000001d16debe480+0x00000000000001cc]
J 1622 c1 com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Ljava/util/function/Supplier;)Ljava/lang/Object; javafx.graphics@9.0.1 (49 bytes) @ 0x000001d16de666e4 [0x000001d16de661c0+0x0000000000000524]
J 1794 c1 com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Lcom/sun/glass/ui/View;JIIIIIIIZZ)V javafx.graphics@9.0.1 (108 bytes) @ 0x000001d16debd3a4 [0x000001d16debcfa0+0x0000000000000404]
J 1639 c1 com.sun.glass.ui.View.notifyMouse(IIIIIIIZZ)V javafx.graphics@9.0.1 (221 bytes) @ 0x000001d16de78c54 [0x000001d16de77c40+0x0000000000001014]
v  ~StubRoutines::call_stub
j  com.sun.glass.ui.win.WinApplication._runLoop(Ljava/lang/Runnable;)V+0 javafx.graphics@9.0.1
j  com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(ILjava/lang/Runnable;)V+8 javafx.graphics@9.0.1
j  com.sun.glass.ui.win.WinApplication$$Lambda$49.run()V+12 javafx.graphics@9.0.1
j  java.lang.Thread.run()V+11 java.base@9.0.1
v  ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x000000000aa993a0

A full log is attached to the post. Please help me find out what is wrong.

Attachments:
POSTED BY: Sergey Shablenko
Answer
5 months ago

Group Abstract Group Abstract