Scilab 和 Ubuntu 18.04 的问题

Scilab 和 Ubuntu 18.04 的问题

我尝试在 Xubuntu 18.04.4(带有 Ubuntu Studio 软件包)下使用 Scilab 6.0.1(标准 repos 版本)。似乎存在一个问题(或多个问题的组合)。首先,这个错误

https://bugs.launchpad.net/ubuntu/+source/scilab/+bug/1807602

似乎仍然存在于我的安装中。在终端中启动 scilab 时,我首先收到以下错误:

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 field java.lang.ClassLoader.sys_paths
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

尽管如此,scilab 一开始似乎一切正常。然后,当我开始使用 scilab 的任何图形输出时,就会出现一连串错误:

Exception in thread "AWT-EventQueue-0" com.jogamp.opengl.GLException: Caught GLException: Profile GL3bc is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x7fc501d48bf0, owner true, ResourceToolkitLock[obj 0x43d64870, isOwner true, <3cb97caa, 6c4d7c0e>[count 1, qsz 0, owner <AWT-EventQueue-0>]]], but: [GLProfile[GLES1/GLES1.hw], GLProfile[GLES2/GLES3.hw], GLProfile[GL2ES1/GLES1.hw], GLProfile[GL4ES3/GLES3.hw], GLProfile[GL2ES2/GL3.hw], GLProfile[GL3/GL3.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL3/GL3.hw], GLProfile[GL2GL3/GL3.hw]]
    at com.jogamp.opengl.awt.GLJPanel$OffscreenBackend.initialize(GLJPanel.java:1795)
    at com.jogamp.opengl.awt.GLJPanel.initializeBackendImpl(GLJPanel.java:1377)
    at com.jogamp.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:549)

等等。如果在终端中启动或作为启动器直接进入 GUI,程序的行为是相同的。结果总是一切看起来都很正常,直到我开始绘制图形(可以通过启动其中一个图形演示来重现)。

看起来这是两个不同的问题。非法反射操作已记录在此版本的 scilab 中,据说已得到解决。这与 scilab 确实启动的事实相符。但是,图形功能似乎是新的。真的找不到它。

有人对此有想法吗?提前致谢。

赫尔迪

答案1

Ubuntu 20.04 上的 Scilab 6.1.0.0 也发生了非常类似的事情!

然而,就我而言,Scilab 根本没有启动!

真的需要尽快启动并运行 Scilab!

这是我的日志:

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 field java.lang.ClassLoader.sys_paths
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
Could not access to the Main Scilab Class:
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.scilab.modules.localization.Messages.gettext(Unknown Source)
    at org.scilab.modules.commons.xml.XConfiguration.<clinit>(Unknown Source)
    at org.scilab.modules.core.Scilab.<clinit>(Unknown Source)
Caused by: java.lang.NullPointerException
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646)
    at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
    at java.base/java.lang.System.loadLibrary(System.java:1873)
    at org.scilab.modules.localization.MessagesJNI.<clinit>(Unknown Source)
    ... 3 more

Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available).

如果有人能帮忙解决这个问题那就太好了!

相关内容