opcode81 / ProbCog

A toolbox for statistical relational learning and reasoning.
GNU General Public License v3.0
101 stars 26 forks source link

Exception while trying to use netEd tool with Ubuntu 18.04 #26

Closed opcode81 closed 11 months ago

opcode81 commented 4 years ago

I also wanted to add that I got the following exception while trying to learn the netEd tool with Ubuntu 18.04 and following java version:

openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)

java.lang.NullPointerException at org.eclipse.swt.widgets.TabFolder.gtk_switch_page(Unknown Source) at org.eclipse.swt.widgets.Widget.windowProc(Unknown Source) at org.eclipse.swt.widgets.Display.windowProc(Unknown Source) at org.eclipse.swt.internal.gtk.OS._gtk_widget_show(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_widget_show(Unknown Source) at org.eclipse.swt.widgets.TabFolder.createItem(Unknown Source) at org.eclipse.swt.widgets.TabItem.createWidget(Unknown Source) at org.eclipse.swt.widgets.TabItem.(Unknown Source) at edu.ksu.cis.bnj.gui.GUIWindow.run(GUIWindow.java:902) at edu.ksu.cis.bnj.gui.GUIThread.run(GUIThread.java:66) at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source) at org.eclipse.swt.widgets.Display.syncExec(Unknown Source) at edu.ksu.cis.bnj.gui.GUIWindow.open(GUIWindow.java:659) at edu.ksu.cis.bnj.gui.GUIWindow.open(GUIWindow.java:665) at probcog.bayesnets.core.BeliefNetworkEx.show(BeliefNetworkEx.java:691) at probcog.BNJ.main(BNJ.java:54)

Thanks a lot!

Originally posted by @mcubuktepe in https://github.com/opcode81/ProbCog/issues/25#issuecomment-626413056

opcode81 commented 4 years ago

@mcubuktepe, please post the SWT dependency that you have in your pom.xml.

mcubuktepe commented 4 years ago

Hi, I am attaching the txt version of the pom.xml file as Github does not support attaching XML files. pom.txt

These are the lines of the pom.xml file that include SWT information.

swt-repo https://raw.githubusercontent.com/maven-eclipse/swt-repo/master/
</repositories>

<dependencies>
    <dependency>
        <groupId>org.eclipse.swt</groupId>
        <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
        <version>4.4</version>
    </dependency>
opcode81 commented 4 years ago

Please check whether changing the version to 4.6.1 and subsequently rerunning make_apps fixes the problem.

opcode81 commented 4 years ago

Most likely, the issue is due to a problem in SWT itself.

mcubuktepe commented 4 years ago

Hi, I was able to run netEd, but I got the following log in the terminal while launching netEd, I wanted to check if this is a problem netedlog.txt.

opcode81 commented 4 years ago

Was being able to run netEd a result of changing the SWT version or were you able to run it before? The errors found in your log file are SWT errors, which may be due to an incompatibility somewhere, but it's hard to say. Did netEd work fine? If you don't have an actual problem with netEd, then I'd say not to worry.

mcubuktepe commented 4 years ago

netEd works fine after changing the SWT version, it did not run before. Please feel free to close this issue, thank you.