Model area not displaying

160 views
Skip to first unread message

jame...@uvg.edu.gt

unread,
Feb 24, 2022, 11:50:58 AM2/24/22
to Jaamsim Users Discussion Group
Hello Harry et al.  Some of my students are reporting that Jaamsim does not display the model area. I know that this situation is almost always related to the graphics capabilities of the hardware and the OpenGL version, but in this case the Windows machine this student is using has a Nvidia graphics card, pretty powerful and he has the latest drivers and OpenGL version so I have no idea what the problem might be. 

I attach an image of the Log Viewer, apparently, it creates View1 but it does not display it.

If anyone can shed some light on the subject, it will be highly appreciated.
jaamsimerror.png

Cristiano Silva

unread,
Feb 24, 2022, 11:58:24 AM2/24/22
to jame...@uvg.edu.gt, Jaamsim Users Discussion Group
Look at the user manual, in item 2.4 for Windows.

Parameter -sg, the solution, works with the .jar file.

On Ubuntu I followed the user manual:

2.4.4

I ran the command:

export LIBGL_ALWAYS_SOFTWARE=1

And then I opened the program normally:

java -jar JaamSim.jar

I think it's important to take a look at the user manual, in item 2.4, maybe the solution is there.

I execute:
export LIBGL_ALWAYS_SOFTWARE=1

Then I run:
  java -jar JaamSim2022-01.jar

In this case I didn't need -sg, but -sg is an option too.

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'



--
You received this message because you are subscribed to the Google Groups "Jaamsim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/025f6e95-e740-4756-97a1-f7c2c1f5f338n%40googlegroups.com.

Harry King

unread,
Feb 25, 2022, 11:41:13 AM2/25/22
to Jaamsim Users Discussion Group
Hi Antonio,

This is a strange one. The Log Viewer outputs tells where the failure occurs, but it is hard to see why it happens. Have you tried setting the -sg flag as Cristiano suggests?

It is possible that the problem is related to the Java version. The graphics package requires Java 8. It does not work correctly with later versions of Java.

Can you provide the details on the computers that have this problem? We will need to duplicate the problem here if we are to find the solution.

Harry

Cristiano Silva

unread,
Feb 25, 2022, 1:02:42 PM2/25/22
to Harry King, Jaamsim Users Discussion Group
I use openjdk 11 on Linux, apparently it works fine...

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'
--
You received this message because you are subscribed to the Google Groups "Jaamsim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.

jame...@uvg.edu.gt

unread,
Feb 25, 2022, 6:29:59 PM2/25/22
to Jaamsim Users Discussion Group
Thanks everybody, I tried the solution proposed by Cristiano and I got this error message from java...
errorJaamsim.png

Harry King

unread,
Feb 26, 2022, 5:45:16 PM2/26/22
to Jaamsim Users Discussion Group
Antonio,

I'm very surprised that the -sg tag caused an error message. I'll look into it.

One thing I'd like you to try is the following:
  • launch JaamSim using the .exe file without the -sg tag
  • click on Views > View1 in the menu bar. Does this generate the view window?
  • If the view window did not appear, click on Views > Define New View. This should create a new view window named 'View2'
Harry

jame...@uvg.edu.gt

unread,
Feb 27, 2022, 5:40:43 PM2/27/22
to Jaamsim Users Discussion Group

Thanks Harry, I will have the student try what you suggest and get back to you with the results.

manolo gutierrez

unread,
Mar 6, 2022, 9:32:56 PM3/6/22
to Jaamsim Users Discussion Group
Hello

I had the same problem with the 64 bit version but I installed the 32 bit version and it works normal.

Best regards.

Manolo Gutierrez  

jame...@uvg.edu.gt

unread,
Mar 7, 2022, 12:41:45 PM3/7/22
to Jaamsim Users Discussion Group
Thank you for your suggestion, in this case, the student is using the universal jar file, let me see if your solution works.

Harry King

unread,
Mar 13, 2022, 9:32:27 PM3/13/22
to Jaamsim Users Discussion Group
Antonio,

This bug should be fixed in release 2022-02. Please let me know if your students' computers work correctly with this version.

Harry

jame...@uvg.edu.gt

unread,
Apr 10, 2022, 7:56:55 PM4/10/22
to Jaamsim Users Discussion Group
Harry, I was able to reproduce this issue in my machine when I tried to install Java 18.  The model area was not displayed.  I uninstalled Java 18 and returned to Java 8 and the problem was solved.  Just to let you know that release 2022-02 still produces the problem with the latest version of java.

Harry King

unread,
Apr 10, 2022, 8:08:23 PM4/10/22
to Jaamsim Users Discussion Group
Hi Antonio,

Yes, we know that JaamSim graphics still does not work with Java 17 and later. That is a separate problem. The problem we fixed (hopefully) was one that occurred for a small number of Windows 10 computers running an appropriate version of Java (e.g. Java 8).

Harry

Alvin Law

unread,
May 12, 2022, 7:39:56 PM5/12/22
to Jaamsim Users Discussion Group
Hi Harry,

I also ran into a problem with the main window not rendering, even with -sg.
I used OpenJDK17U-jdk_x64_windows_hotspot_17.0.3_7.msi
Does the error message say anything useful?

Alvin

2022-05-12 16_34_56.png

Harry King

unread,
May 12, 2022, 7:46:03 PM5/12/22
to Jaamsim Users Discussion Group
Hi Alvin,

The problem is that you are using Java 17. The graphics software we use restricts JaamSim to Java 8 for the time being.

Harry

Alvin Law

unread,
Jun 13, 2022, 12:24:32 PM6/13/22
to Jaamsim Users Discussion Group
OK I see, I had initially set the version to 8, but the website redirect had reset the selection to 17.  Thanks for the fast reply on that issue.

Alvin

Reply all
Reply to author
Forward
0 new messages