[Scilab-users] Issue on Scilab Compilation on Raspbery Pi

Chin Luh Tan chinluh.tan at bytecode-asia.com
Wed May 6 18:51:07 CEST 2020


sorry pls ignore the previous incomplete email which has been accidentally sent:



I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages:





Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v1.4.0, connection :0.0, unitID 0, handle 0xffffffffa8b148f0, owner true, ResourceToolkitLock[obj 0xb29daf, isOwner true, <1fa6506, f15db4>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner

    [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)

    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)

    [2]: java.lang.Thread.run(Thread.java:748)

Caused[0] by NoSuchMethodError: java.nio.IntBuffer.rewind()Ljava/nio/IntBuffer; on thread main-SharedResourceRunner

    [0]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:146)

    [1]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:150)

    [2]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:154)

    [3]: jogamp.opengl.egl.EGLGraphicsConfiguration.EGLConfig2Capabilities(EGLGraphicsConfiguration.java:221)

    [4]: jogamp.opengl.egl.EGLGraphicsConfigurationFactory.eglConfigs2GLCaps(EGLGraphicsConfigurationFactory.java:481)

    [5]: jogamp.opengl.egl.EGLDrawableFactory.getAvailableEGLConfigs(EGLDrawableFactory.java:962)

    [6]: jogamp.opengl.egl.EGLDrawableFactory.access$800(EGLDrawableFactory.java:88)

    [7]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(EGLDrawableFactory.java:679)

    [8]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:613)

    [9]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)

    [10]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)

    [11]: java.lang.Thread.run(Thread.java:748)

Caught handled GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner <NULL>]]] on thread main-SharedResourceRunner

    [0]: jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:306)

    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)

    [2]: java.lang.Thread.run(Thread.java:748)





while I am still able to launch the Scilab and perform most operation, however, when I tried to plot a figure, i get:





java.lang.reflect.InvocationTargetException

        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)

        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)

        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)

        at org.scilab.modules.gui.SwingView.updateObject(Unknown Source)

        at org.scilab.modules.graphic_objects.graphicController.GraphicController$2.run(Unknown Source)

        at org.scilab.modules.graphic_objects.graphicController.GraphicController.objectUpdate(Unknown Source)

        at org.scilab.modules.graphic_objects.graphicController.GraphicController.setGraphicObjectRelationship(Unknown Source)

        at org.scilab.modules.graphic_objects.builder.Builder.cloneAxesModel(Unknown Source)

        at org.scilab.modules.graphic_objects.builder.Builder.createNewFigureWithAxes(Unknown Source)

Caused by: com.jogamp.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner <NULL>]]], but: []

        at com.jogamp.opengl.GLProfile.get(GLProfile.java:991)

        at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722)

        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:363)

        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:337)

        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:325)

        at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.<init>(Unknown Source)

        at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.<init>(Unknown Source)

        at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.createOpenGLComponent(Unknown Source)



.

Any suggestion what I need to change for the compilation?



I compile scilab with:

1. gcc, g++, gfortran v 8, and also another try on v9

2. openjdk-8-jdk

3. Tried Raspbian, Ubuntu for Pi 18.04 , same issue. 

4. Applied jogl 2.3.2 patch.



Thanks.



Rgds,

CL












---- On Thu, 07 May 2020 00:45:23 +0800 Chin Luh Tan <chinluh.tan at bytecode-asia.com> wrote ----



Hi, 



I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages:







_______________________________________________ 

users mailing list 

users at lists.scilab.org 

http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200507/437232dc/attachment.htm>


More information about the users mailing list