Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open JDK jdk-8.0.212.03-hotspot with SWI-Prolog terminated with fatal error #23

Closed
ashalya86 opened this issue May 22, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@ashalya86
Copy link

commented May 22, 2019

I'm developing repast simphony application, using SWI-Prolog 7.6.4 to call Prolog from Java. When I run I am getting the following error.
A fatal error has been detected by the Java Runtime Environment. Problematic frame:

C [libswipl.dll+0x12cf9]

@ssardina

This comment has been minimized.

Copy link
Collaborator

commented May 22, 2019

There is very little info on that, but I will definitively start by using SUN Java rather than Open JDK. I have had many issues when I use open-JDK.

@ashalya86

This comment has been minimized.

Copy link
Author

commented May 22, 2019

Thank you for your reply. which version of Java that you have used. Actually for my concept I have to run the Repast symphony ( https://repast.github.io/download.html.) with prolog. Requirement of Repast symphony is openjdk.

@ssardina

This comment has been minimized.

Copy link
Collaborator

commented May 23, 2019

I am not familiar with Repast, but for what I read in that link, they recommend Open JDK only because Java 11 cannot be used for commercial purposes. So the first questions is whether you are using it for commercial purposes.

In addition, with SWI I have not been using such a recent Java version, I am using Java SE 8 (Java 1.8) which is far from the 11 version:

[ssardina@Thinkpad-X1 ~]$ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

So you should have no issue with that, and Java SE 8 is LTS too. (unless you really need very latest Java features)

@ashalya86

This comment has been minimized.

Copy link
Author

commented May 23, 2019

Thank you so much. problem solved. I have installed I used openjdk 8 with openJ9 with SWI prolog 7.6.4. So the fatal error has gone.

@ashalya86 ashalya86 closed this May 24, 2019

@ssardina

This comment has been minimized.

Copy link
Collaborator

commented May 24, 2019

That is great. Can you explain me better what was the problem and how you solve it? So I can document it for future users. Are you using OpenJDK? Which version?

@ashalya86

This comment has been minimized.

Copy link
Author

commented May 24, 2019

Actually repast symphony is used for multi agent simulation(https://repast.github.io/download.html) in AI. So the requirement of repast is open JDK . you can download it from https://adoptopenjdk.net/. But you have to choose the JVM. Hotspot is almost okay with java programs. but if you implement prolg inside the repast symphony, you should choose JVM as OpenJ9. Otherwise you will experience fatal error. currently I am using openjdk 8 with openJ9 with SWI prolog 7.6.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.