MATLAB com.jogamp.opengl.GLException: erro X11GLXDrawableFactory

1

Eu recebo o seguinte erro quando abro o matlab2016a no meu Ubuntu 14.04 com GTX1080:

com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x17b50086, isOwner false, <6c356992, 26a627be>[count 0, qsz 0, owner <NULL>]]]
    at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
    at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
    at java.lang.Thread.run(Unknown Source)
Caused by: com.jogamp.opengl.GLException: glXGetConfig(0x1) failed: error code Unknown error code 6
    at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetConfig(X11GLXGraphicsConfiguration.java:570)
    at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.XVisualInfo2GLCapabilities(X11GLXGraphicsConfiguration.java:500)
    at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationXVisual(X11GLXGraphicsConfigurationFactory.java:434)
    at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:240)
    at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:524)
    at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:535)
    at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:283)
    ... 2 more

Houve alguma correção para isso? Eu vi postagens no fórum nvidia ( link ) e aqui e eu tentei algumas soluções, mas nenhuma delas funcionou. Eu instalei o driver nvidia ppa (não o driver do site da nvidia). Este é um driver nvidia o problema?

    
por MoneyBall 04.01.2017 / 08:13

1 resposta

0

Seu problema de OPENGL e libstdc ++

Primeiro, instale alguns pacotes

$ sudo apt-get install lib64stdc++6:i386

$ sudo apt-get install mesa-utils

Em seguida, atualize alguns links:

cd <your_matlab_location>/sys/os/glnxa64/
$ sudo mv libstdc++.so.6 libstdc++.so.6.bak
$ sudo ln -s /usr/lib64/libstdc++.so.6  libstdc++.so.6

execute o matlab check se a mesa é atualizada no terminal matlab

>> opengl info

  Version: '3.0 Mesa 17.0.3'
   Vendor: 'Intel Open Source Technology Center' ..............

 HardwareSupportLevel: 'full'
..........

Agora o opengl deve estar funcionando ....

    
por Riyas Jaleel 14.04.2017 / 21:32