Select to view content in your preferred language

I try to run my JavaFX program on Linux(Centos 7) but have displaying problem

3460
5
Jump to solution
04-14-2021 06:54 AM
VanyaIvanov
Regular Contributor

I try to run my program on Linux. I have one error:

"Prism-ES2 Error : GL_VERSION(major.minor) = 1.4"

And my .tif scene image doesn't display. Just white window.image1.jpeg

I use JavaFX Linux SDK 11.0.2

 

 
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
VanyaIvanov
Regular Contributor

I've tried to run my program on Centos version 7.7 and it works well. 

View solution in original post

0 Kudos
5 Replies
MarkBaird
Esri Regular Contributor

I suspect you need to update or install the drivers for your graphics card.  Runtime apps running in Linux will need to create an openGL context and it looks like your drivers are not allowing it.

If you can get a driver from the vendor of the chipset for your graphics card this will be best.  My experience of open source software based drivers is not good.  For example on my old Ubuntu machine I have the nVidia drivers and this works nicely.  You can see how I've checked the openGL support and drivers below:

~$ glxinfo | grep "version"
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.6.0 NVIDIA 390.141
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL version string: 4.6.0 NVIDIA 390.141
OpenGL shading language version string: 4.60 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.141
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_group_vote, GL_EXT_shader_implicit_conversions,

 Does this help?

VanyaIvanov
Regular Contributor

Thank you. I installed Linux on another computer on Virtual Machine and program started. But the dispayed Earth is black.

image1 (1).jpeg

 

0 Kudos
MarkBaird
Esri Regular Contributor

It's very likely again that your drivers don't meet the OpenGL requirements to render a 3D scene.  On the VM are you able to render a MapView based app?

What happens when you query the graphics capabilities of the machine using 

glxinfo | grep "version"

Also see the requirements here https://developers.arcgis.com/java/reference/system-requirements/

The SDK has been tested against SUSE, Ubuntu and Redhat.  I've never tried centOS before but my understanding is this is very similar to Redhat.  You do however need to have the correct OpenGL / shader support.  As I explained some software based graphics drivers are not complete; drivers from the graphics card vendor are the best way forward.  As you can see on my Ubuntu machine I have the correct nvidia drivers and I meet the requirements easily:

OpenGL version string: 4.6.0 NVIDIA 390.141

OpenGL shading language version string: 4.60 NVIDIA

VanyaIvanov
Regular Contributor

I've tried to run my program on Centos version 7.7 and it works well. 

0 Kudos
VanyaIvanov
Regular Contributor

Thank you. Command glxinfo | grep "version" returns that

VanyaIvanov_0-1618653078690.png

I suppose i should somehow update OpenGL version

0 Kudos