From owner-freebsd-questions@freebsd.org Tue Apr 5 15:33:58 2016 Return-Path: Delivered-To: freebsd-questions@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 4739AB036AB for ; Tue, 5 Apr 2016 15:33:58 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (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 CC26615C0 for ; Tue, 5 Apr 2016 15:33:57 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x22b.google.com with SMTP id n3so26933965wmn.0 for ; Tue, 05 Apr 2016 08:33:57 -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:cc:reply-to:in-reply-to; bh=v+4ssXy96bSMMA+UlCq8wZod0/qE2SMJz2sjvmtf+xI=; b=MUklcPVJdXvAgzK9Wr6Py2LADunV80aiEsLerrIGsPxk8cw2IfkgLwseRQxLAONRC8 qlIy8BK014mQuDSwmzk8OdRi1ZjQNgYptMep4f9xQMzTMEPJj+shNStQHug2LJ7YFaNN rrQY1izdD9CckCHFj6NaDVIfOMtZEa6Yila32lpFIg+bu7LIa4KwpjfoNDmPRHXVsXHx DRk9zaj++ZX31+aMLFIDrlb3y/GVxLLy95iWrSDrkSP3mXWJrxjUngET4gGSVDekUa3E Ic86C4kCNfJ7frpnaD5nMPDdT1la1YNl7C98Xe6e+zREhHj+6zHwcH640+IGEC9n9ygz 22IA== 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:cc:reply-to :in-reply-to; bh=v+4ssXy96bSMMA+UlCq8wZod0/qE2SMJz2sjvmtf+xI=; b=QCw74hv4wA7xaWm/QPPosgd4ozYr8nhNAMSBrXB1394huW3HtG30l/mvE8BZbrM/NP Ek4NGCnetT/0uVvxTcCE4O3v/pSGJAV2ugckCCbP09fJ15+EN0Dyolmj+WYs+KmIYDN5 mrTD+FHKJQMkqMnP5iMXBvgvis+1l7AaVm5r3O6i4G8rZw+xPQoR09iHeVsUlIyk33KP eZgaKZiAP7jLEaLKKC6MQ4cC5FbncRAMElDWpeRx0Id5/gBJLRlJLwrR9RSvjSq24o63 ataMIM4lX8+iy1BRr45LuQS3xrpPN9PH2EDRGB6bVA8igewToh119kHV2IbFKM0wCuRd SChg== X-Gm-Message-State: AD7BkJJaaMby5uZ3ig6t5b9FRyIxOhtzXInHjMpPJReJw3YILUEhEydX/9h+7LOwsdb4Py40 X-Received: by 10.28.140.12 with SMTP id o12mr4196678wmd.19.1459870436296; Tue, 05 Apr 2016 08:33:56 -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 q139sm20160690wmd.2.2016.04.05.08.33.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2016 08:33:55 -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 u35FXs9o060150; Tue, 5 Apr 2016 16:33:54 +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 u35FXskq060149; Tue, 5 Apr 2016 16:33:54 +0100 (BST) (envelope-from mexas) Date: Tue, 5 Apr 2016 16:33:54 +0100 (BST) From: Anton Shterenlikht Message-Id: <201604051533.u35FXskq060149@mech-as222.men.bris.ac.uk> To: mexas@bris.ac.uk, till.oliver.knoll@gmail.com Subject: Re: when do I need to set JAVA_HOME? Cc: freebsd-questions@freebsd.org, freebsd-x11@freebsd.org Reply-To: mexas@bris.ac.uk In-Reply-To: <0B98F374-862C-4433-A774-56D266CA4CDB@gmail.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2016 15:33:58 -0000 >From till.oliver.knoll@gmail.com Mon Apr 4 21:57:13 2016 > >> Am 04.04.2016 um 13:04 schrieb Anton Shterenlikht : >> >> I'm having troubles running an openGL >> 3D visualisation over ssh -Y: >> >> 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 > >Hello list, > >The exception above sais that "OpenGL cannot activate ("make current") the desired (requested) graphic context". That is usually the case when the GPU (graphic card) does not provide the requested features such as bit depth or features such as double-buffering (actually that would fail already at OpenGL context /creation/ time, but let's skip over the details here, shall ww ;)). > >The point is to me it doesn't look like a class is missing, which would hint at a missing CLASSPATH. It is really an error at runtime, after all classes have been loaded. > >It could still be that some (non-mandatory) OpenGL driver is not found (in the JAVA CLASSPATH), but my suspicion goes towards SSH: we are talking about a remote connection, right? Could well be that your remote X client (or was it the X Server? IIRC those X11 people have a weitd notion of "server" and "client" - but never mind ;)), that is the display "where you eventually show the app", claims to have features (for the created GL context) which it doesn't (or the "X Server" on the remote display is simply buggy). > >All that said: does the application run locally (without SSH)? Oliver, thank you. I haven't got the application locally. Need to build from sources and it will pull in lots of other dependencies. However, I can give it a go if all else fails. What I can see is that locally, i.e. on the X server (the local laptop where I view the results) glxgears runs fine and glxinfo returns this: GLX version: 1.4 Extended renderer info (GLX_MESA_query_renderer): Vendor: Intel Open Source Technology Center (0x8086) Device: Mesa DRI Intel(R) Haswell Mobile (0xa16) Version: 11.1.2 Accelerated: yes Video memory: 1534MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 3.3 Max compat profile version: 3.0 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.0 which looks fine, no? > Do other OpenGL applications run over SSH > (with a comparable feature set, that is, > do they make use of the same OpenGL version features, e.g. "OpenGL 3.3" or even 4.x)? Don't know for sure. Maybe you can suggest a test application? I sometimes use the Abaqus, a proprietary CAD software on the remote cluster. If I want to view the 3D via ssh, I have to launch the application with "-mesa" switch, otherwise it fails with the following errors, which, as I understand mean that there are no GL acceleration on the remote cluster side. Maybe I'm wrong? $ abaqus viewer libGL error: failed to open drm device: No such file or directory libGL error: failed to load driver: i965 libGL error: dlopen /usr/lib64/dri/swrast_dri.so failed (/usr/lib64/dri/swrast_dri.so: undefined symbol: drm_intel_get_reset_stats) libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error: code 2 major 154 minor 3: BadValue (integer parameter out of range for operation). X Error: code 170 major 154 minor 5: GLXBadContext. X Error: code 0 major 154 minor 26: 0. X Error: code 2 major 154 minor 3: BadValue (integer parameter out of range for operation). X Error: code 170 major 154 minor 5: GLXBadContext. Warning: Your system needs to be reconfigured to allow OpenGL rendering to a pixmap or Pbuffer; otherwise, you will not be able to print or use the probe function in Abaqus/CAE. X Error: code 170 major 154 minor 5: GLXBadContext. X Error: code 0 major 154 minor 26: 0. terminate called after throwing an instance of 'nex_PrimException' Abaqus Error: Abaqus/CAE Kernel exited with an error. Abaqus Error: Abaqus/Viewer exited with an error $ Many thanks again Anton