<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
         <tr>
                <th>Reporter</th>
            <td>kay-uwe.giering@web.de</td>
         </tr>
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Java exception at scilab startup"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=13802">13802</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Java exception at scilab startup
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Scilab software
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.5 GIT version [5.5 branch]
          </td>
        </tr>


        <tr>
          <th>OS</th>
          <td>Linux_x64
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Medium
          </td>
        </tr>


        <tr>
          <th>Component</th>
          <td>GUI
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>bugzilla.admin@scilab.org
          </td>
        </tr>
</table>
      <p>
        <div>
        <pre>BUG DESCRIPTION:
----------------

Starting scilab 5.5.2 via "./scilab" gives a java exception and a segmentation fault. Scilab 5.4.1 works fine.

It might be linked to a graphics card problem (Intel graphics card).
I use Debian squeeze (testing).


ERROR LOG:
----------
./scilab
libEGL warning: Could not open driver /usr/lib/x86_64-linux-gnu/egl/egl_gallium.so (/opt/scilab-5.5.2/lib/thirdparty/libgcc_s.so.1: version
`GCC_4.7.0' not found (required by /usr/lib/x86_64-linux-gnu/egl/egl_gallium.so))
terminate called after throwing an instance of 'GiwsException::JniCallMethodException'
  what():  Exception when calling Java method : com/artenum/rosetta/ui/Console
 at org.scilab.modules.gui.console.ScilabConsoleBridge.createConsole(Unknown Source)
 at org.scilab.modules.gui.bridge.ScilabBridge.createConsole(Unknown Source)
 at org.scilab.modules.gui.console.ScilabConsole.<init>(Unknown Source)
 at org.scilab.modules.gui.console.ScilabConsole.getConsole(Unknown Source)
 at org.scilab.modules.gui.bridge.CallScilabBridge.display(Unknown Source)
 at jogamp.opengl.egl.EGL.dispatch_eglDestroyContext0(Native Method)
 at jogamp.opengl.egl.EGL.eglDestroyContext(EGL.java:416)
 at jogamp.opengl.egl.EGLContext.createImpl(EGLContext.java:233)
 at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:696)
 at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:589)
 at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:539)
 at jogamp.opengl.egl.EGLDrawableFactory.mapAvailableEGLESConfig(EGLDrawableFactory.java:518)
 at jogamp.opengl.egl.EGLDrawableFactory.createEGLSharedResourceImpl(EGLDrawableFactory.java:640)
 at jogamp.opengl.egl.EGLDrawableFactory.getOrCreateSharedResourceImpl(EGLDrawableFactory.java:603)
 at jogamp.opengl.egl.EGLDrawableFactory.getOrCreateSharedResourceImpl(EGLDrawableFactory.java:86)
 at jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource(GLDrawableFactoryImpl.java:100)
 at jogamp.opengl.GLDrawableFactoryImpl.createSharedResourceImpl(GLDrawableFactoryImpl.java:129)
 at javax.media.opengl.GLDrawableFactory.createSharedResource(GLDrawableFactory.java:375)
 at javax.media.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1905)
 at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1838)
 at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1806)
 at javax.media.opengl.GLProfile.access$000(GLProfile.java:77)
 at javax.media.opengl.GLProfile$1.run(GLProfile.java:201)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:187)
 at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:2246)
 at javax.media.opengl.GLProfile.get(GLProfile.java:959)
 at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693)
 at javax.media.opengl.GLProfile.getDefault(GLProfile.java:704)
 at org.scilab.modules.gui.SwingView.<init>(Unknown Source)
 at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source)
 at org.scilab.modules.core.Scilab.<init>(Unknown Source)
com/artenum/rosetta/ui/Console
 at org.scilab.modules.gui.console.ScilabConsoleBridge.createConsole(Unknown Source)
 at org.scilab.modules.gui.bridge.ScilabBridge.createConsole(Unknown Source)
 at org.scilab.modules.gui.console.ScilabConsole.<init>(Unknown Source)
 at org.scilab.modules.gui.console.ScilabConsole.getConsole(Unknown Source)
 at org.scilab.modules.gui.bridge.CallScilabBridge.display(Unknown Source)
 at jogamp.opengl.egl.EGL.dispatch_eglDestroyContext0(Native Method)
 at jogamp.opengl.egl.EGL.eglDestroyContext(EGL.java:416)
 at jogamp.opengl.egl.EGLContext.createImpl(EGLContext.java:233)
 at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:696)
 at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:589)
 at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:539)
 at jogamp.opengl.egl.EGLDrawableFactory.mapAvailableEGLESConfig(EGLDrawableFactory.java:518)
 at jogamp.opengl.egl.EGLDrawableFactory.createEGLSharedResourceImpl(EGLDrawableFactory.java:640)
 at jogamp.opengl.egl.EGLDrawableFactory.getOrCreateSharedResourceImpl(EGLDrawableFactory.java:603)
 at jogamp.opengl.egl.EGLDrawableFactory.getOrCreateSharedResourceImpl(EGLDrawableFactory.java:86)
 at jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource(GLDrawableFactoryImpl.java:100)
 at jogamp.opengl.GLDrawableFactoryImpl.createSharedResourceImpl(GLDrawableFactoryImpl.java:129)
 at javax.media.opengl.GLDrawableFactory.createSharedResource(GLDrawableFactory.java:375)
 at javax.media.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1905)
 at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1838)
 at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1806)
 at javax.media.opengl.GLProfile.access$000(GLProfile.java:77)
 at javax.media.opengl.GLProfile$1.run(GLProfile.java:201)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:187)
 at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:2246)
 at javax.media.opengl.GLProfile.get(GLProfile.java:959)
 at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693)
 at javax.media.opengl.GLProfile.getDefault(GLProfile.java:704)
 at org.scilab.modules.gui.SwingView.<init>(Unknown Source)
 at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source)
 at org.scilab.modules.core.Scilab.<init>(Unknown Source)

Segmentation fault


HOW TO REPRODUCE THE BUG:
-------------------------
execute
./scilab


OTHER INFORMATION:
------------------

./scilab -nwni works fine:

Scilab 5.5.2 (Mar 31 2015, 11:50:00)

-->[a, b] = getdebuginfo() 
 b  =

!Scilab Version: scilab-5.5.2                          !
!                                                      !
!Compilation date: Mar 31 2015                         !
!                                                      !
!Compilation time: 11:49:55                            !
!                                                      !
!Compileur version: 4.8.2 20140120 (Red Hat 4.8.2-15)  !
!                                                      !
!XML version: 2.9.1                                    !
!                                                      !
!Compiler Architecture: X64                            !
 a  =

!Total memory:    7880332                      !
!                                              !
!Used memory:    5281500                       !
!                                              !
!Free memory:    2598832                       !
!                                              !
!Shared memory:          0                     !
!                                              !
!Buffers memory:     955964                    !
!                                              !
!Cached memory:    2507312                     !
!                                              !
!Used -/+ buffers/cache:    1818224            !
!                                              !
!Free -/+ buffers/cache:    6062108            !
!                                              !
!Total swap:   19530740                        !
!                                              !
!Used swap:          0                         !
!                                              !
!Free swap:   19530740                         !
!                                              !
!OS version: Linux 3.14-2-amd64                !
!                                              !
!SCI: /opt/scilab-5.5.2/share/scilab           !
!                                              !
!SCIHOME: /home/kgiering/.Scilab/scilab-5.5.2  !
!                                              !
!TMPDIR: /tmp/SCI_TMP_9636_cEbBBi              !

*******************************************************************************************

./scilab -nw does not work:
libEGL warning: Could not open driver /usr/lib/x86_64-linux-gnu/egl/egl_gallium.so (/opt/scilab-5.5.2/lib/thirdparty/libgcc_s.so.1: version
`GCC_4.7.0' not found (required by /usr/lib/x86_64-linux-gnu/egl/egl_gallium.so))

A fatal error has been detected by Scilab.
Your instance will probably quit unexpectedly soon.
If a graphic feature has been used, this might be caused by the system graphic drivers.
Please try to update them and run this feature again.
You can report a bug on <a href="http://bugzilla.scilab.org/">http://bugzilla.scilab.org/</a> with:
* a sample code which reproduces the issue
* the result of [a, b] = getdebuginfo()
* the following information:
[troll416:14456] Signal: Segmentation fault (11)
[troll416:14456] Signal code: Address not mapped (1)
[troll416:14456] Failing at address: 0x540

Call stack:
   1: 0x7107eb < >                              (/opt/scilab-5.5.2/thirdparty/java//lib/amd64/server/libjvm.so)
   2: 0x714350 <JVM_handle_linux_signal>        (/opt/scilab-5.5.2/thirdparty/java//lib/amd64/server/libjvm.so)
   3: 0x7106fe < >                              (/opt/scilab-5.5.2/thirdparty/java//lib/amd64/server/libjvm.so)
   4: 0xf8d0   < >                              (/lib/x86_64-linux-gnu/libpthread.so.0)
   5: 0x1395be < >                              (/usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
   6: 0x2028bc < >                              (/usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
   7: 0x203f64 < >                              (/usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
   8: 0x318680 < >                              (/usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
   9: 0x2bb923 < >                              (/usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
  10: 0x11b49  < >                              (/usr/lib/x86_64-linux-gnu/libEGL.so.1)
  11: 0x9a2a   <eglDestroyContext>              (/usr/lib/x86_64-linux-gnu/libEGL.so.1)
  12: 0x3283d  <Java_jogamp_opengl_egl_EGL_dispatch_1eglDestroyContext0__JJJ> (/opt/scilab-5.5.2/lib/thirdparty/libjogl_mobile.so)
  13: ?        ?                                (?)
End of stack



Segmentation fault

*******************************************************************************************

lspci graphics card info:

00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b) (prog-if 00 [VGA
controller])
    Subsystem: Lenovo ThinkPad X240 [17aa:2214]
    Flags: bus master, fast devsel, latency 0, IRQ 62
    Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 3000 [size=64]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    Kernel driver in use: i915</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>