error with scalismo on ubuntu

13 views
Skip to first unread message

Jean-Rassaire Fouefack

unread,
Aug 2, 2021, 9:11:37 AMAug 2
to scalismo

Hi,
I get this error when I try to run my scalismo code on ubuntu (the code works fine on Windows) ;

The error seems to be related to scalismoUI, i.e. it occurs when calling scalismoUI.

javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :1
    at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:317)
    at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)
    at java.lang.Thread.run(Thread.java:748)
Caused by: javax.media.opengl.GLException: main-SharedResourceRunner: Unable to create temp OpenGL context(1)
    at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:343)
    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.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:293)
    ... 2 more
Exception in thread "main" 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 scalismo.ui.util.EdtUtil$.onEdtWait(EdtUtil.scala:60)
    at scalismo.ui.api.ScalismoUI.<init>(ScalismoUI.scala:30)
    at scalismo.ui.api.ScalismoUI$.apply(ScalismoUI.scala:72)
    at Application.FittingWithMultiBodyModel$.main(FittingWithMultiBodyModel.scala:30)
    at Application.FittingWithMultiBodyModel.main(FittingWithMultiBodyModel.scala)
Caused by: javax.media.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x5e3199a9, isOwner false, <2d55a09, 77cae49a>[count 0, qsz 0, owner <NULL>]]], but: []
    at javax.media.opengl.GLProfile.get(GLProfile.java:962)
    at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693)
    at javax.media.opengl.GLProfile.getDefault(GLProfile.java:704)
    at scalismo.ui.rendering.internal.RenderingComponent.<init>(RenderingComponent.scala:49)
    at scalismo.ui.rendering.RendererPanel.<init>(RendererPanel.scala:80)
    at scalismo.ui.view.ViewportPanel.<init>(ViewportPanel.scala:51)
    at scalismo.ui.view.ViewportPanel3D.<init>(ViewportPanel.scala:103)
    at scalismo.ui.view.perspective.ThreeDOnlyPerspective.<init>(ThreeDOnlyPerspective.scala:27)
    at scalismo.ui.view.perspective.ThreeDOnlyPerspective$.instantiate(ThreeDOnlyPerspective.scala:35)
    at scalismo.ui.view.PerspectivePanel.$anonfun$perspective_$eq$2(PerspectivePanel.scala:55)
    at scalismo.ui.util.EdtUtil$.onEdtWait(EdtUtil.scala:56)
    at scalismo.ui.view.PerspectivePanel.perspective_$eq(PerspectivePanel.scala:55)
    at scalismo.ui.view.PerspectivePanel.<init>(PerspectivePanel.scala:89)
    at scalismo.ui.view.ScalismoFrame.<init>(ScalismoFrame.scala:202)
    at scalismo.ui.view.ScalismoFrame.<init>(ScalismoFrame.scala:63)
    at scalismo.ui.api.ScalismoUI.$anonfun$fr$1(ScalismoUI.scala:31)
    at scalismo.ui.util.EdtUtil$.$anonfun$onEdtWait$1(EdtUtil.scala:60)
    at scala.swing.Swing$$anon$1.run(Swing.scala:37)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    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:74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at org.GNOME.Accessibility.AtkWrapper$6.dispatchEvent(AtkWrapper.java:715)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    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)
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[:1, 0x7f3b7c000df0, refCount 1, unCloseable false]


Any idea of what could be the problem?

Marcel Luethi

unread,
Aug 2, 2021, 9:34:34 AMAug 2
to Jean-Rassaire Fouefack, scalismo
Hi Jean-Rassaire,

Does the fix proposed in this conversation help?

Best regards,
Marcel

--
You received this message because you are subscribed to the Google Groups "scalismo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/54ea61b0-870f-4d25-b928-db5cf756cf76n%40googlegroups.com.

Jean-Rassaire Fouefack

unread,
Aug 3, 2021, 4:16:27 AMAug 3
to Marcel Luethi, scalismo
Hi Marcel,
Thanks. 
There was also another problem, which required uninstalling and reinstalling Cuda.
After that, I didn't have this problem anymore. I think the problem was related to Cuda.


Kind regards
Jean-Rassaire
 





Jean-Rassaire Fouefack

unread,
Aug 3, 2021, 11:04:38 AMAug 3
to scalismo
Hi Marcel,
I am getting this error, which basically occurs when the size of the mesh is larger than 2mo.
This only happens in ubuntu. I found some suggestions which are to add the following to the "idea.properties" file
idea.max.intellisense.filesize=25000
idea.max.content.load.filesize=20000

I did that but actually, this did not work out;

Any idea ?

ERROR: In /vtk/IO/Geometry/vtkSTLReader.cxx, line 378
vtkSTLReader (0x7f72764d2870): STLReader error reading file: /data/tibia.stl Premature EOF while reading point.

free(): double free detected in tcache 2
Reply all
Reply to author
Forward
0 new messages