ProbCog icon indicating copy to clipboard operation
ProbCog copied to clipboard

Exception while trying to use netEd tool with Ubuntu 18.04

Open opcode81 opened this issue 4 years ago • 7 comments

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 avatar May 11 '20 14:05 opcode81

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

opcode81 avatar May 11 '20 16:05 opcode81

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/

<dependencies>
	<dependency>
		<groupId>org.eclipse.swt</groupId>
		<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
		<version>4.4</version>
	</dependency>

mcubuktepe avatar May 11 '20 16:05 mcubuktepe

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

opcode81 avatar May 11 '20 17:05 opcode81

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

opcode81 avatar May 11 '20 17:05 opcode81

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.

mcubuktepe avatar May 11 '20 18:05 mcubuktepe

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.

opcode81 avatar May 18 '20 11:05 opcode81

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

mcubuktepe avatar May 24 '20 13:05 mcubuktepe