From owner-freebsd-java@freebsd.org Tue May 17 09:35:12 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 DA02EB3E258 for ; Tue, 17 May 2016 09:35:12 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (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 9F92D1308 for ; Tue, 17 May 2016 09:35:12 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-vk0-x232.google.com with SMTP id s184so12480373vkb.3 for ; Tue, 17 May 2016 02:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to; bh=kvD5pMWRgtMUtre0UiOUFQOZxmMAzlPK07NllJjBrj0=; b=T8IXCc2sFycSuX1+eIbS8759k5Pw/nOrBejIFRXpNQs55zGw9BE2LHSqJ715TBESNm FmjRK00Xn5l3jxVYClspUEXgfBd/Q/xZ58ewPHtvu7OEQarfeXbUUZsW8BegR7dI38/g EUBaP7DPRsej8h3R6i1o3bK38WYH8hUhxAr2CGqBxvLtdzm/WJqST79Nyzk2e8vBTWMe Op9EAGMYE1PN92fscwlxu5QLh9ClTnBTTY1B3bu1MpAEJOqXY3jDjYDcTZ1HTmB+QZRL 8xnmN+sZCAyhjNT+O++nStk4uAI4RYEc3xF5iuDJRYLM8MCzP33rMkXL1yIi+9Ey9ynw snnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=kvD5pMWRgtMUtre0UiOUFQOZxmMAzlPK07NllJjBrj0=; b=NcXb/5OtL9/L6PxchBu0DS4B/B7F905aCmYr3HA+kytffvyNB/C+MysyP1P6xH2ZZ2 ws1IPeamGwBpY0oyDXIgcGKdT/xbB3aOQ9gWpwAGdUj/RP8YkjKBYrFGkhwaBAlISXc9 ruFkQfoW19AFluBlBWsux73pBE2Mw94ersBg1g2gjXjUlBDSWem2krgJ0hrA2eAbxEpu wODybZ4voFhgnxDt1PvUQ7ODJwI55FpkqiO5abAuQWTkhXAJWooFyEBTNXVRvkmwACch g58h7B0Qnt/qM1IM2qhnY0ZIFoXrsVMvVJkqKW/6rxmMSj/sR5hLWqXX/6cLJptMyBF+ NROA== X-Gm-Message-State: AOPr4FXmPgCUvKeS3oRaZs2SOY4YCl1kM+EYlue9B22ZKS6QvWqmQD1F88WRKkSg3R40wNMW7J77tobW5gFs/0he MIME-Version: 1.0 X-Received: by 10.176.64.100 with SMTP id h91mr97616uad.56.1463477711562; Tue, 17 May 2016 02:35:11 -0700 (PDT) Received: by 10.176.69.208 with HTTP; Tue, 17 May 2016 02:35:11 -0700 (PDT) Date: Tue, 17 May 2016 10:35:11 +0100 Message-ID: Subject: WORKAROUND: Re: help fix javax.media.opengl.GLException: Error making context current From: Anton Shterenlikht To: freebsd-java@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Tue, 17 May 2016 09:35:13 -0000 On 15/05/2016, Anton Shterenlikht wrote: > >From ronald-lists@klop.ws Sun May 15 13:16:13 2016 >> >>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. > > I thought so... > Looks like I'm stuffed. Commenting out export LIBGL_ALWAYS_INDIRECT=1 make the program work over ssh. This seems to be a common problem: http://unix.stackexchange.com/questions/1437/what-does-libgl-always-indirect-1-actually-do though nothing to do with java, pure OpenGL. I apologise for wasting people's time in this list. Many thanks again for all help and suggestions. Anton