From owner-freebsd-java@freebsd.org Fri May 13 17:03:36 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 202A0B3ADF7 for ; Fri, 13 May 2016 17:03:36 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B7E121994 for ; Fri, 13 May 2016 17:03:35 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x234.google.com with SMTP id e201so30237955wme.0 for ; Fri, 13 May 2016 10:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:reply-to; bh=VKCWAp9Z92HNN6oiYKYdJL2yCm+VdGRhm0KD5THH8eE=; b=Q1lkFLYPUPPB0Uzd6CuL7K7saiJ/dfV2ydJ85092aW0cH++T70/Qw7rqoKxNgCVUVR Xtb6JquxC9Xh/4QqtVK72twuNVspJqfxXIP1mQAnjYTulcc09Y90ftA2fzhaetoEm1r1 MDiE5Xc8t9DiE+IzIWjEJCIeemsuqflRFxR/V7TEhSV4arZRaFiLH7vcK31qbN0fLgxQ G738IA4gz2pJ2tJNXTV5FLZ1GoeHEcncQrq/7V16vVH/yXYidzaOXA+9RNZ4mOE9ID3t 5PgpxXTiW5QcWigpFfrW3+3ohVsdyXvXwy2zYqF0Z39roQPgJgkHcxxhHLy2YQGuUY0h KnRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=VKCWAp9Z92HNN6oiYKYdJL2yCm+VdGRhm0KD5THH8eE=; b=LoNxSpDJKqCwbE05n2Qi0rFAgGOLiHjkm+SadAzTu9sgYVBmMDZaiYseoLt8uswAJI Zd9vYFzteG6fOq20U5GjPrh23uEYxTYdFqwPpANLD3QPf0uPDH7H5KpCOLsb9/gLwIm+ 6jZdnSnafHG6p2nP4VrGlaB/LoY/xWYBQZVvAO+qRaE9dgEQqDQbWGe5ecVJISuFtwE4 qPxFNEk991k0VgYHsJvaYV3cTi8b3276QbMk2WsrBYGxG0DGAaZbx5EnNERH3vW5SLUO nFlgI46n2TCaZPo8M7pVTj9VbN/6T81sE5eM72YbbfRGPPW/xAYc8dNGv9Zwn1OO+x15 ezdg== X-Gm-Message-State: AOPr4FVG+RH2pSquu5dFOOZkh4V1WCADPYBAJDZW27hjqZp6O/pyUFmmM7mgxTNjIPoV/0ld X-Received: by 10.194.63.226 with SMTP id j2mr16879356wjs.27.1463159014246; Fri, 13 May 2016 10:03:34 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id e8sm4199621wma.2.2016.05.13.10.03.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 May 2016 10:03:33 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id u4DH3XjR005225 for ; Fri, 13 May 2016 18:03:33 +0100 (BST) (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id u4DH3Xx5005224 for freebsd-java@freebsd.org; Fri, 13 May 2016 18:03:33 +0100 (BST) (envelope-from mexas) Date: Fri, 13 May 2016 18:03:33 +0100 (BST) From: Anton Shterenlikht Message-Id: <201605131703.u4DH3Xx5005224@mech-as222.men.bris.ac.uk> To: freebsd-java@freebsd.org Subject: help fix javax.media.opengl.GLException: Error making context current Reply-To: mexas@bris.ac.uk 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: Fri, 13 May 2016 17:03:36 -0000 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