You are not logged in.

#1 2015-08-12 21:42:25

bartgol
Member
Registered: 2015-08-12
Posts: 9

Problem with GLX (I suppose)

Hello everyone,

I tried to find a solution to this problem online, and although I found lots of threads with similar issues, I can't solve it. I have downloaded and compiled/installed Netgen (a scientific free library for 3d mesh generation), which required, among others, to work some magic with the Togl package.

Anyways, when I run 'netgen' I get the following error:

bartgol@HAL:[~]$ netgen
NETGEN-5.3.1
Developed by Joachim Schoeberl at
2010-xxxx Vienna University of Technology
2006-2010 RWTH Aachen University
1996-2006 Johannes Kepler University Linz
optfile ./ng.opt does not exist - using default values
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  491
  Current serial number in output stream:  492

Some info that may or may not be useful.

bartgol@HAL:[~]$ inxi -F
System:    Host: HAL Kernel: 4.1.4-1-ARCH x86_64 (64 bit) Desktop: Cinnamon 2.6.13  Distro: Arch Linux
Machine:   System: LENOVO product: 80EC v: Lenovo Z50-75
           Mobo: LENOVO model: Lancer 5B3 v: 31900058WIN Bios: LENOVO v: A4CN32WW (V 2.01) date: 09/11/2014
CPU:       Quad core AMD A10-7300 Radeon R6 10 Compute Cores 4C+6G (-MCP-) cache: 8192 KB
           clock speeds: max: 1900 MHz 1: 1500 MHz 2: 1500 MHz 3: 1200 MHz 4: 1900 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Kaveri [Radeon R6 Graphics]
           Display Server: X.Org 1.17.2 drivers: ati,radeon Resolution: 1280x1024@60.02hz, 1366x768@59.97hz
           GLX Renderer: Gallium 0.4 on AMD KAVERI GLX Version: 3.0 Mesa 10.6.2
...

bartgol@HAL:[~]$ lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R6 Graphics]

I have the mesa drivers installed.

Thank you

Last edited by bartgol (2015-08-12 21:42:48)

Offline

#2 2015-08-12 21:45:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problem with GLX (I suppose)

Is there a config file for this software? I've got similar errors when I switched from 1280x1024 monitor to a 1440x900 one, I had to set the correct resolution up.

Offline

#3 2015-08-12 21:53:28

bartgol
Member
Registered: 2015-08-12
Posts: 9

Re: Problem with GLX (I suppose)

Yes, there is a file called ng.tcl. Looking inside I found this snippet

if { $batchmode != "defined" } {
    catch {
  wm withdraw .

  wm title . $progname
  wm geometry . =800x600
  wm minsize . 400 300
    }
}


I tried to change the values for wm geometry. No luck.

Offline

#4 2015-08-12 21:55:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problem with GLX (I suppose)

When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

How did you compile it? Using http://pkgbuild.com/git/aur-mirror.git/tree/netgen ?

Offline

#5 2015-08-12 22:02:50

bartgol
Member
Registered: 2015-08-12
Posts: 9

Re: Problem with GLX (I suppose)

Wow! Where did that come from? I looked for a pkg build of netgen, but could not find one (all the links pointed to nowhere). I built the library with a normal configure + make + make install. I will try to use the pkg build you pointed me to. I will get also the missing dependencies from there, I guess.

Offline

#6 2015-08-12 22:03:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problem with GLX (I suppose)

https://bbs.archlinux.org/viewtopic.php?id=201005 -> https://bbs.archlinux.org/viewtopic.php?id=200901
You should have read that thread.

Edit: And the wiki: https://wiki.archlinux.org/index.php/Ar … repository

Last edited by karol (2015-08-12 22:05:01)

Offline

#7 2015-08-12 22:10:43

bartgol
Member
Registered: 2015-08-12
Posts: 9

Re: Problem with GLX (I suppose)

I did read the thread without finding a solution (missed the hint to git), but I totally missed the wiki (where the info about the the git repo was). My bad.

Edit: I used the link you gave from the git repo. I had to copy and paste the text from the webpage (I have to learn ho to download the files, or just clone the repo (it's big!)), which is probably why the md5sum of the patches did not match. So I edited the files to make them match, but the package does not build. I get a compilation error. The interesting thing is that when I compile the library by hand (configure+make) it compiles fine (except it does not work later).

Edit2: Ok, I managed to clone the git repo, so now the md5sum is ok. However I still have a compilation error. In particular, in some cpp source file we try to access a non-existing member of a particular class from opencascade. I wonder if the version of opencascade is relevant. I tried to upgrade it, but it doesn't solve the problem...

Last edited by bartgol (2015-08-12 22:50:28)

Offline

#8 2015-08-13 16:11:50

bartgol
Member
Registered: 2015-08-12
Posts: 9

Re: Problem with GLX (I suppose)

Ok, I used the aur-mirror.git repo to install all the pre-requisites (I had to downgrade a package). But I still get the same graphic error that I got when manually building the library adn all the prerequisites. If anyone has any tip, it would be appreciated.

Thanks.

Offline

#9 2015-10-08 05:52:12

sputnick1124
Member
Registered: 2015-10-08
Posts: 1

Re: Problem with GLX (I suppose)

I was having the same error thrown after installing NETGEN-4.9.13 from the repositories (admittedly Xubuntu 14.04). I have an Nvidia graphics card which I operate through bumblebee.

Running NETGEN through the Nvidia card with:

optirun netgen

launches the program without issue. Not sure if this will help you sniff out the problem at all, but figured I would drop a line and share my workaround.

Cheers

Offline

Board footer

Powered by FluxBB