OpenGL acceleration issues in artixlinux (arch based distro)

Hi,
I am trying to get hwd acceleration to work in matlab on my artixlinux system. But no matter what i try matlab switches openGL to "software"
Following the steps from archlinux i get,
glxinfo | grep "direct rendering"
direct rendering: Yes
Then i check if matlab is using hwd acceleration
matlab -nodesktop -nosplash -r "opengl info; exit" | grep Software
Software: 'true'
So glxinfo is working but not matlab, then i perform
export LD_PRELOAD=/usr/lib/libstdc++.so; export LD_LIBRARY_PATH=/usr/lib/xorg/modules/dri/; matlab -nodesktop -nosplash -r "opengl info; exit" | grep Software
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue by running this command: opengl problems,
then restart MATLAB.
To share details of this issue with MathWorks technical support, please
include this file with your service request: /home/arturo/jogl.ex.16037
Software: 1
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x2134dd52, isOwner false, <6696c4b2, 73390cf6>[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(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
... 2 more
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0, 0x7f47c4000fa0, refCount 1, unCloseable false]
i get a low-level graphics error. Performing,
export LD_PRELOAD=/usr/lib/libstdc++.so; export LD_LI
lib/xorg/modules/dri/; matlab -nodesktop -nosplash -r "opengl problems;
ftware
Exception in thread "XPCOMMessageLoop" java.lang.UnsatisfiedLinkError:
B/R2018a/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libxul.so:
buzz.so.0: undefined symbol: FT_Done_MM_Var
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToo
ource)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToo
ource)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.initialize(
at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread$b.run(
Exception in thread "XPCOMMessageLoop" java.lang.UnsatisfiedLinkError:
B/R2018a/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libxul.so:
buzz.so.0: undefined symbol: FT_Done_MM_Var
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToo
ource)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToo
ource)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.initialize(
at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread$b.run(
Exception in thread "XPCOMMessageLoop" java.lang.UnsatisfiedLinkError:
B/R2018a/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libxul.so:
buzz.so.0: undefined symbol: FT_Done_MM_Var
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.initialize(
at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread$b.run(
Exception in thread "XPCOMMessageLoop" java.lang.UnsatisfiedLinkError:
B/R2018a/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libxul.so:
buzz.so.0: undefined symbol: FT_Done_MM_Var
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToo
ource)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToo
ource)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.initialize(
at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread$b.run(
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.IllegalArgumentException: Service not found: 'connector/nativeBridge' remainder of address: [connector/cosg/registration]
at com.mathworks.connector.Future.get(Future.java:19)
at com.mathworks.connector.cosg.impl.CosgRegistryImpl.registerMessageHandler(CosgRegistryImpl.java:96)
at com.mathworks.connector.cosg.impl.CosgRegistryImpl.registerMessageHandler(CosgRegistryImpl.java:84)
at com.mathworks.installservicehandler.JsonPassThroughServiceHandler.init(JsonPassThroughServiceHandler.java:45)
at com.mathworks.installservicehandler.InstallServiceHandlerFactory.init(InstallServiceHandlerFactory.java:76)
at com.mathworks.matlab_login.MatlabLogin.initializeLoginServices(Unknown Source)
at com.mathworks.mlwidgets.help.WebDocLoginDocUrlRule.getConnectorUrlForLoginAndInitializeLoginServices(WebDocLoginDocUrlRule.java:45)
at com.mathworks.mlwidgets.help.WebDocLoginDocUrlRule.getLoginUrl(WebDocLoginDocUrlRule.java:38)
at com.mathworks.mlwidgets.help.WebDocLoginDocUrlRule.apply(WebDocLoginDocUrlRule.java:21)
at com.mathworks.help.helpui.DocUrlNavigationRuleHandler.applyRules(DocUrlNavigationRuleHandler.java:41)
at com.mathworks.mlwidgets.help.HelpPanel.getNavigationUrl(HelpPanel.java:720)
at com.mathworks.mlwidgets.help.HelpPanel.access$500(HelpPanel.java:51)
at com.mathworks.mlwidgets.help.HelpPanel$UrlHandlingHtmlComponentWrapper.setCurrentLocation(HelpPanel.java:248)
at com.mathworks.mlwidgets.help.HelpPanel.setCurrentLocation(HelpPanel.java:547)
at com.mathworks.mde.help.MLHelpBrowser.setCurrentLocation(MLHelpBrowser.java:654)
at com.mathworks.mde.help.MLHelpBrowser.showClient(MLHelpBrowser.java:646)
at com.mathworks.mde.help.DocCenterBrowserHandler$OpenInNewBrowser.openBrowser(DocCenterBrowserHandler.java:340)
at com.mathworks.mde.help.DocCenterBrowserHandler$MLHelpBrowserRunnable.createAndShowBrowser(DocCenterBrowserHandler.java:258)
at com.mathworks.mde.help.DocCenterBrowserHandler$MLHelpBrowserRunnable.run(DocCenterBrowserHandler.java:246)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalArgumentException: Service not found: 'connector/nativeBridge' remainder of address: [connector/cosg/registration]
at com.mathworks.connector.impl.ConnectorImpl.handle(ConnectorImpl.java:66)
at com.mathworks.connector.impl.ContextImpl.handle(ContextImpl.java:182)
... 32 more
Everytime i install MATLAB in linux i get lots of errors related to java and OpenGl hwd acceleration. Is it possible to solve these issues for once at all? I mean i would like to use hwd accelaration in order to enhance graphical performance.

Answers (1)

Oh! So many thanks to teh matlab team!!!!

1 Comment

I'm also getting the same error. What changes did you make?

Sign in to comment.

Categories

Asked:

A W
on 20 Jan 2021

Edited:

on 21 Oct 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!