From owner-freebsd-java@freebsd.org Sun May 15 11:55:07 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA6C9B225A6 for ; Sun, 15 May 2016 11:55:07 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0F641081 for ; Sun, 15 May 2016 11:55:07 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1b1udM-0008Ke-Ps; Sun, 15 May 2016 13:54:57 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-java@freebsd.org, "Anton Shterenlikht" Subject: Re: help fix javax.media.opengl.GLException: Error making context current References: <201605131703.u4DH3Xx5005224@mech-as222.men.bris.ac.uk> Date: Sun, 15 May 2016 13:54:56 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <201605131703.u4DH3Xx5005224@mech-as222.men.bris.ac.uk> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: d2b65465fd2235632e6f1ea95c39dbf6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2016 11:55:08 -0000 Hi, A little googling on 'javax.media.opengl.GLException: Error making context current' gives a lot of pages about the same error people are having (mainly on Linux). It looks like it depends a lot on versions of OS/drivers/libraries/graphics card, etc. And also about how robust programs are programmed related to small differences in threading+opengl of the OS/java implementation. So it is quite a hard question to answer AFAIK except when somebody has seen exact your problem in the past and solved it. Ronald. On Fri, 13 May 2016 19:03:33 +0200, Anton Shterenlikht wrote: > Hi > > I get the following errors when trying > to run a 3D GL program over ssh. > To be clear the program is launched on a remote linux server, > and I view the graphical results on a local workstation. > > I get identical errors trying to > connect to the remote server from FreeBSD 10.3 (2 different > graphic cards) and from 11-current. > > However, I just checked, and it works fine > if I connect to the remote server from MS Windows 7(?) > and use Xming (http://www.straightrunning.com/XmingNotes/) > to view remote graphics. > > I don't know where to start looking. > Please help > > The errors: > > paraprof > javax.media.opengl.GLException: Error making context current > at > com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContext.java:141) > at > com.sun.opengl.impl.x11.X11OnscreenGLContext.makeCurrentImpl(X11OnscreenGLContext.java:69) > at > com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:127) > at > com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182) > at > javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:258) > at javax.media.opengl.GLCanvas.display(GLCanvas.java:130) > at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142) > at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264) > at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73) > at sun.awt.RepaintArea.paint(RepaintArea.java:240) > at > sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:694) > at java.awt.Component.dispatchEventImpl(Component.java:4725) > at java.awt.Component.dispatchEvent(Component.java:4475) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675) > at java.awt.EventQueue.access$300(EventQueue.java:96) > at java.awt.EventQueue$2.run(EventQueue.java:634) > at java.awt.EventQueue$2.run(EventQueue.java:632) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108) > at > java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:119) > at java.awt.EventQueue$3.run(EventQueue.java:648) > at java.awt.EventQueue$3.run(EventQueue.java:646) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:645) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) > > The program is TAU paraprof: > https://www.cs.uoregon.edu/research/tau/docs/newguide/bk01pt02.html > > What I want to get is visualisation like this: > http://cgpack.sourceforge.net/201605res/para3d.png > (This was obtained using MS Windows as X server with Xming(?)). > > I tried getting help in this list in April, > and also from X11@ and in questions@. > > The sysadmin of the remote linux server tells > me that probably my graphics card or driver are > too old. This probably is not the case. > My 11-current laptop has a Haswell card and I use > xf86-video-intel-2.21.15_9 x11-drivers/xf86-video-intel > video driver. > > Perhaps my java is not right? > Or my OpenGL? > > Maybe I should ask in yet another list? > > Many thanks > > Anton > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"