Hello
I tried 3 solutions to the graphical display problem of plots in Scilab installed about 2 years ago, as indicated in the previous post, and a new installation in an other machine, still equipped with the OS Ubuntu 22.04.
First, after updating MESA resource, no change.
Secondly, invoking the following command :
MESA_GL_VERSION_OVERRide=2.1 /bin/scilab
causes the terminal to show several hundreds of lines, with the most meaningfull as it follows, and the plot window of Scilab remains still blank :
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath (file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Attention : Impossible de trouver le package Java ‘/usr/share/java/freehep-util-2.0.2.jar’.
Attention : Impossible de trouver le package Java ‘/usr/share/java/freehep-graphicsio.jar’.
Des problèmes sont survenus pendant le chargement des bibliothèques Java.
Pouvant induire des erreurs de Scilab.
Veuillez vérifier le fichier SCI/etc/classpath.xml.
Exception in thread “AWT-EventQueue-0” com.jogamp.opengl.GLException: Caught GLException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7fe200734520, owner true, ResourceToolkitLock[obj 0x6b055779, isOwner true, <5b0da6c2, 3376a3fd>[count 1, qsz 0, owner ]]], but: [GLProfile[GLES2/GLES3.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
Caused by: com.jogamp.opengl.GLException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7fe200734520, owner true, ResourceToolkitLock[obj 0x6b055779, isOwner true, <5b0da6c2, 3376a3fd>[count 1, qsz 0, owner ]]], but: [GLProfile[GLES2/GLES3.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
Exception in thread “Thread-5” com.jogamp.opengl.GLException: java.lang.reflect.InvocationTargetException
at com.jogamp.opengl.awt.GLJPanel.display(GLJPanel.java:465)
at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.display(Unknown Source)
at org.scilab.forge.scirenderer.implementation.jogl.JoGLCanvas$CanvasAnimator.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.reflect.InvocationTargetException
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
at com.jogamp.opengl.awt.GLJPanel.display(GLJPanel.java:463)
… 3 more
and so on
Thirdly, the command written in the terminal " LIBGL_ALWAYS_SOFTWARE=1 /bin/scilab " gives too :
WARNING: Please consider reporting this to the maintainers of org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Attention : Impossible de trouver le package Java ‘/usr/share/java/freehep-util-2.0.2.jar’.
Attention : Impossible de trouver le package Java ‘/usr/share/java/freehep-graphicsio.jar’.
Des problèmes sont survenus pendant le chargement des bibliothèques Java.
Pouvant induire des erreurs de Scilab.
Veuillez vérifier le fichier SCI/etc/classpath.xml.
but the plot is displayed, excepted that the x axis shows the index of the vector rather than the x values (the elements of the vector) themselves. Then, if the window “polyline editor” is open, it hangs and cannot be closed, as Scilab by the button “qui”. Then, the terminal displays :
Unknown display passed to Tk_CreateErrorHandler
Une erreur fatale a �t� d�tect�e par Scilab.
Veuillez v�rifier les fonctions d�finies par l’utilisateur (ou celles des modules externes), elles devraient appara�tre dans le suivi de la pile.
Ou sinon, vous pouvez reporter un bug sur http://bugzilla.scilab.org/ avec :
- un simple code qui reproduit le probl�me
- le r�sultat de [a, b] = getdebuginfo()
- l’information suivante :
[Pierre-StNizier:05658] Signal: Abandon (6)
[Pierre-StNizier:05658] Signal code: (-6)
In the following attempt, I installed the 2 /usr/share/java/freehep-…jar files which were missing, and launched again the command :
LIBGL_ALWAYS_SOFTWARE=1 /bin/scilab
which gives the same result except the suppression of the error about the 2 freehep files. The full display in the terminal is, as already shown in the previous attempts :
Picked up _JAVA_OPTIONS: -Djava.class.path=/usr/share/java/flexdock.jar:/usr/share/java/skinlf.jar:/usr/share/java/looks.jar:/usr/share/java/commons-logging.jar:/usr/share/java/jhall.jar:/usr/share/java/lucene-core-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10.4.jar:/usr/share/java/lucene-queryparser-4.10.4.jar:/usr/share/maven-repo/org/freehep/freehep-util/debian/freehep-util-debian.jar:/usr/share/maven-repo/org/freehep/freehep-io/debian/freehep-io-debian.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio/debian/freehep-graphicsio-debian.jar:/usr/share/java/freehep-graphicsio-emf.jar:/usr/share/java/freehep-graphics2d.jar:/usr/share/java/jrosetta-API.jar:/usr/share/java/jrosetta-engine.jar:/usr/share/java/jgraphx.jar:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar:/usr/share/java/jeuclid-core.jar:/usr/share/java/jlatexmath-fop.jar:/usr/share/java/fop.jar:/usr/share/java/saxon.jar:/usr/share/java/batik.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/jlatexmath.jar:/usr/share/java/ecj.jar:/usr/share/java/javax.activation.jar:/usr/share/java/jaxb-runtime.jar:/usr/share/scilab/modules/completion/jar/org.scilab.modules.completion.jar:/usr/share/scilab/modules/history_browser/jar/org.scilab.modules.history_browser.jar:/usr/share/scilab/modules/action_binding/jar/org.scilab.modules.action_binding.jar:/usr/share/scilab/modules/console/jar/org.scilab.modules.console.jar:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:/usr/share/scilab/modules/history_manager/jar/org.scilab.modules.history_manager.jar:/usr/share/scilab/modules/preferences/jar/org.scilab.modules.preferences.jar:/usr/share/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/helptools/jar/org.scilab.modules.helptools.jar:/usr/share/scilab/modules/helptools/jar/scilab_images.jar:/usr/share/scilab/modules/helptools/jar/scilab_ru_RU_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_en_US_help.jar:/usr/share/scilab/modules/javasci/jar/org.scilab.modules.javasci.jar:/usr/share/scilab/modules/types/jar/org.scilab.modules.types.jar:/usr/share/scilab/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar:/usr/share/scilab/modules/graph/jar/org.scilab.modules.graph.jar:/usr/share/scilab/modules/scirenderer/jar/scirenderer.jar:/usr/share/scilab/modules/external_objects_java/jar/org.scilab.modules.external_objects_java.jar:/usr/share/scilab/modules/graphic_objects/jar/org.scilab.modules.graphic_objects.jar:/usr/share/scilab/modules/ui_data/jar/org.scilab.modules.ui_data.jar:/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath (file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Unknown display passed to Tk_CreateErrorHandler
Une erreur fatale a �t� d�tect�e par Scilab.
Veuillez v�rifier les fonctions d�finies par l’utilisateur (ou celles des modules externes), elles devraient appara�tre dans le suivi de la pile.
Ou sinon, vous pouvez reporter un bug sur http://bugzilla.scilab.org/ avec :
- un simple code qui reproduit le probl�me
- le r�sultat de [a, b] = getdebuginfo()
- l’information suivante :
[Pierre-StNizier:10323] Signal: Abandon (6)
[Pierre-StNizier:10323] Signal code: (-6)
Pile d’appel�:
1: 0x969fc <pthread_kill> (/lib/x86_64-linux-gnu/libc.so.6)
2: 0x42476 (/lib/x86_64-linux-gnu/libc.so.6)
3: 0x287f3 (/lib/x86_64-linux-gnu/libc.so.6)
4: 0xfafe4 <Tcl_PanicVA> (/lib/x86_64-linux-gnu/libtcl8.6.so)
5: 0xfb0af < > (/lib/x86_64-linux-gnu/libtcl8.6.so)
6: 0x47a6e < > (/lib/x86_64-linux-gnu/libtk8.6.so)
7: 0x106c8a <Tk_MeasureChars> (/lib/x86_64-linux-gnu/libtk8.6.so)
8: 0x4c943 <Tk_ComputeTextLayout> (/lib/x86_64-linux-gnu/libtk8.6.so)
9: 0x6e89e < > (/lib/x86_64-linux-gnu/libtk8.6.so)
10: 0x71be0 < > (/lib/x86_64-linux-gnu/libtk8.6.so)
11: 0x6fd14 < > (/lib/x86_64-linux-gnu/libtk8.6.so)
12: 0x11edd4 (/lib/x86_64-linux-gnu/libtcl8.6.so)
13: 0x1279bd < > (/lib/x86_64-linux-gnu/libtcl8.6.so)
14: 0x1277c8 <Tcl_ObjSetVar2> (/lib/x86_64-linux-gnu/libtcl8.6.so)
15: 0x1276fb <Tcl_SetVar2Ex> (/lib/x86_64-linux-gnu/libtcl8.6.so)
16: 0x12761b <Tcl_SetVar2> (/lib/x86_64-linux-gnu/libtcl8.6.so)
17: 0x53ad (/usr/lib/scilab/libscitclsci.so.6)
18: 0x617a <sci_TCL_SetVar> (/usr/lib/scilab/libscitclsci.so.6)
19: 0x45569d <types::WrapFunction::call(std::vector<types::InternalType*, std::allocatortypes::InternalType* >&, std::unordered_map<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, types::InternalType*, std::hashstd::__cxx11: (/usr/lib/scilab/libsciast.so.6)
20: 0x456771 <types::DynamicFunction::call(std::vector<types::InternalType*, std::allocatortypes::InternalType* >&, std::unordered_map<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, types::InternalType*, std::hashstd::__cxx (/usr/lib/scilab/libsciast.so.6)
21: 0x44f48e <types::Callable::invoke(std::vector<types::InternalType*, std::allocatortypes::InternalType* >&, std::unordered_map<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, types::InternalType*, std::hashstd::__cxx11::b (/usr/lib/scilab/libsciast.so.6)
22: 0x194bf3 <ast::RunVisitorTast::ExecVisitor::visitprivate(ast::CallExp const&)> (/usr/lib/scilab/libsciast.so.6)
23: 0x187444 <ast::RunVisitorTast::ExecVisitor::visitprivate(ast::SeqExp const&)> (/usr/lib/scilab/libsciast.so.6)
24: 0x4628cb <types::Macro::call(std::vector<types::InternalType*, std::allocatortypes::InternalType* >&, std::unordered_map<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, types::InternalType*, std::hashstd::__cxx11::basic_ (/usr/lib/scilab/libsciast.so.6)
25: 0x44f48e <types::Callable::invoke(std::vector<types::InternalType*, std::allocatortypes::InternalType* >&, std::unordered_map<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, types::InternalType*, std::hashstd::__cxx11::b (/usr/lib/scilab/libsciast.so.6)
26: 0x194bf3 <ast::RunVisitorTast::ExecVisitor::visitprivate(ast::CallExp const&)> (/usr/lib/scilab/libsciast.so.6)
27: 0x187444 <ast::RunVisitorTast::ExecVisitor::visitprivate(ast::SeqExp const&)> (/usr/lib/scilab/libsciast.so.6)
28: 0x184ba4 <ast::RunVisitorTast::ExecVisitor::visitprivate(ast::Sele
The command done in Scilab gives :
[a,b]=getdebuginfo()
a =
“Total memory: 7774480”
“Used memory: 5173300”
“Free memory: 2601180”
“Shared memory: 0”
“Buffers memory: 229476”
“Cached memory: 2974140”
“Used -/+ buffers/cache: 1969684”
“Free -/+ buffers/cache: 5804796”
“Total swap: 8395772”
“Used swap: 0”
“Free swap: 8395772”
“SCI: /usr/share/scilab/”
“SCIHOME: /home/pierre-achard/.Scilab/scilab-branch-6.1”
“TMPDIR: /tmp/SCI_TMP_7283_pxRHjW”
b =
“Scilab Version: scilab-branch-6.1”
“Compilation date: Apr 14 2022”
“Compilation time: 22:30:04”
“Compileur version: 11.2.0”
“XML version: 2.9.13”
“Compiler Architecture: X64”
Finally, I did not attempt to uninstall the version 6.1 but I tried to perform a new install in an other machine Ubuntu 22.04 with the software “gnome-software”, where the available version is still 6.1.1+dfsg2. The answer is an impossible installation because of unmet dependencies. So it is clear that some library files are not present. I can try to desinstall but if “gnome-software” is not able to install all the libraries when reinstalling, how to solve the problem ? Where to find the missing libraries, specially java ones, which are however very numerous in the machine ?
Are the new versions 2023 or 2024 works properly with this OS ?