|
From: Tatara, E. R. <ta...@an...> - 2021-01-17 23:40:56
|
I was also able to replicate the issue when directly booting into Ubuntu (no VM) and solved the issue by updating the GPU drivers. Here's what I was able to discover. There is no issue with Ubuntu 18.04 + Repast 2.8 + AdoptOpenJDK 11. After I upgraded to Ubuntu 20.04, I see the reproducible segfault for several different versions of java (8, 11.xx, 15) when switching between displays. I updated the video drivers using Ubuntu Software and Updates to the latest version and now the error does not occur. The system was using nvidia-driver-3XX and I updated to -460 which is the latest. Note that the available video drivers in Ubuntu are in two forms: open source, and proprietary. I think by default a lower version of the driver is installed because it is open source, while the newer versions are proprietary. Eric -----Original Message----- From: Leon Merlin Orlando Metzger <Leo...@bi...> Sent: Thursday, January 14, 2021 3:28 AM To: Nicholson Collier <nic...@gm...> Cc: rep...@li... Subject: Re: [Repast-interest] 3D Display crashes when switching between 3d display and other displays in Linux Hi Nick, thank you for your fast reply! I downloaded eclipse 2020-06 (since I was using eclipse 2019-06 for Repast 2.7) and installed Repast 2.8. The setup is now the same as on the VirtualBox. But the problem persists (I have only tried the PredatorPrey Model for this so far). Error message: Xlib: sequence lost (0x10017 > 0x17) in reply type 0x0! com.jogamp.opengl.GLException: J3D-Renderer-1: Unable to create temp OpenGL context(1) at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:390) at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:770) at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:653) at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:591) at org.jogamp.java3d.JoglPipeline.createNewContext(JoglPipeline.java:6423) at org.jogamp.java3d.Canvas3D.createNewContext(Canvas3D.java:4643) at org.jogamp.java3d.Canvas3D.createNewContext(Canvas3D.java:2389) at org.jogamp.java3d.Renderer.doWork(Renderer.java:938) at org.jogamp.java3d.J3dThread.run(J3dThread.java:271) DefaultRenderingErrorListener.errorOccurred: CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context graphicsDevice = X11GraphicsDevice[screen=0] canvas = org.jogamp.java3d.exp.swing.JCanvas3D$InternalCanvas3D[canvas0,0,0,1117x607,invalid] X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 5/5, reusable (open, marked uncloseable): 0, pending (open in creation order): 5) X11Util: Open X11 Display Connections: 5 X11Util: Open[0]: NamedX11Display[:0, 0x7f0fe8003d90, refCount 1, unCloseable false] X11Util: Open[1]: NamedX11Display[:0, 0x7f0fe80ae260, refCount 1, unCloseable false] X11Util: Open[2]: NamedX11Display[:0, 0x7f0fe8047960, refCount 1, unCloseable false] X11Util: Open[3]: NamedX11Display[:0, 0x7f0f9e3836b0, refCount 1, unCloseable false] X11Util: Open[4]: NamedX11Display[:0, 0x7f0fe82477f0, refCount 1, unCloseable false] Thanks and best regards, Leon Quoting Nicholson Collier <nic...@gm...>: > Just to clarify, I see now you did try 2.8 on virtual box. If you > could try 2.8 on straight Linux without virtual box, that would be > good. I don’t think virtual box’s 3D support is great. We can also try > to reproduce here. > > Nick > > >> On Jan 13, 2021, at 4:10 PM, Nicholson Collier >> <nic...@gm...> wrote: >> >> If its possible, can you try with Repast 2.8? We’ve updated Java3D >> and the opengl libraries for that release. >> >> thanks, >> >> Nick >> >>> On Jan 13, 2021, at 11:07 AM, Leon Merlin Orlando Metzger >>> <Leo...@bi...> wrote: >>> >>> >>> Dear all, >>> >>> we are currently developing a Repast Simphony Model in Linux(Ubuntu). >>> >>> The problem is whenever we switch back to the 3D display from any >>> other display or chart Repast crashes with the following error >>> message: >>> >>> >>> # >>> # A fatal error has been detected by the Java Runtime Environment: >>> # >>> # SIGSEGV (0xb) at pc=0x00007f3475d56183, pid=5592, >>> tid=0x00007f3468812700 # # JRE version: OpenJDK Runtime Environment >>> (8.0_275-b01) (build >>> 1.8.0_275-b01) >>> # Java VM: OpenJDK 64-Bit Server VM (25.275-b01 mixed mode >>> linux-amd64 compressed oops) >>> # Problematic frame: >>> # C [iris_dri.so+0x127183] >>> # >>> # Failed to write core dump. Core dumps have been disabled. To >>> enable core dumping, try "ulimit -c unlimited" before starting Java >>> again # # An error report file with more information is saved as: >>> # >>> /home/leonm/eclipse-workspaces/agentcell-workspace/PredatorPrey/hs_e >>> rr_pid5592.log >>> # >>> # If you would like to submit a bug report, please visit: >>> # https://github.com/AdoptOpenJDK/openjdk-support/issues >>> # The crash happened outside the Java Virtual Machine in native code. >>> # See problematic frame for where to report the bug. >>> # >>> >>> >>> The same happens with the PredatorPrey Demo-Model. >>> >>> I am using Ubuntu 20.04, Repast Simphony 2.7, AdoptOpenJDK 1.8 >>> Hotspot for both models. >>> >>> Another error message occurs when switching after initialization but >>> before starting the run: >>> >>> >>> Error when switching from a 3D Display in Repast to any other >>> Display and then switching back: >>> >>> Xlib: sequence lost (0x10022 > 0x22) in reply type 0x0! >>> javax.media.opengl.GLException: J3D-Renderer-1: 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 javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6412) >>> at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4602) >>> at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2376) >>> at javax.media.j3d.Renderer.doWork(Renderer.java:881) >>> at javax.media.j3d.J3dThread.run(J3dThread.java:271) >>> >>> DefaultRenderingErrorListener.errorOccurred: >>> CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics >>> context graphicsDevice = X11GraphicsDevice[screen=0] canvas = >>> com.sun.j3d.exp.swing.JCanvas3D$InternalCanvas3D[canvas0,0,0,1117x60 >>> 7,invalid] >>> X11Util.Display: Shutdown (JVM shutdown: true, open (no close >>> attempt): 5/5, reusable (open, marked uncloseable): 0, pending (open >>> in creation order): 5) >>> X11Util: Open X11 Display Connections: 5 >>> X11Util: Open[0]: NamedX11Display[:0, 0x7f1914006070, refCount 1, >>> unCloseable false] >>> X11Util: Open[1]: NamedX11Display[:0, 0x7f19140adb80, refCount 1, >>> unCloseable false] >>> X11Util: Open[2]: NamedX11Display[:0, 0x7f191404de30, refCount 1, >>> unCloseable false] >>> X11Util: Open[3]: NamedX11Display[:0, 0x7f192df24900, refCount 1, >>> unCloseable false] >>> X11Util: Open[4]: NamedX11Display[:0, 0x7f19140399a0, refCount 1, >>> unCloseable false] >>> >>> >>> On a Virtual Machine(VirtualBox) with Ubuntu 18.04, Repast Simphony >>> 2.8 and AdoptOpenJDK 11 Hotspot the same happens, although the >>> SIGSEGV Error is slightly different (Problematic frame on >>> swrast_dri.so instead of iris_dri.so): >>> # Problematic frame: >>> # C [swrast_dri.so+0x11722f] >>> >>> >>> The PredatorPrey Model works fine on a Windows platform. >>> >>> The error seems to be related to the Linux/Ubuntu graphics drivers. >>> Both Linux systems are using the newest stable graphics drivers from >>> the ppa: >>> ppa:kisak/turtle >>> website: https://launchpad.net/~kisak/+archive/ubuntu/turtle >>> >>> Any recommendations for a workaround are appreciated. >>> >>> Thanks in advance and best regards, >>> >>> Leon >>> >>> >>> >>> _______________________________________________ >>> Repast-interest mailing list >>> Rep...@li... >>> https://lists.sourceforge.net/lists/listinfo/repast-interest >> _______________________________________________ Repast-interest mailing list Rep...@li... https://lists.sourceforge.net/lists/listinfo/repast-interest |