netgen does not start anymore, X error

Bug #1556445 reported by Patola
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
netgen (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

There are a few months I do not use netgen, and I always keep up-to-date with Ubuntu releases. I tried to start the executable (netgen) on two machines with Ubuntu 15.10 64-bits and the result was the same, it won't start:

[14:02] [3675] [patola@ovo patola]% netgen
NETGEN-4.9.13
Developed at RWTH Aachen University, Germany
and Johannes Kepler University Linz, Austria
Including OpenCascade geometry kernel
Parsing ng.tcl
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: 154 (GLX)
  Minor opcode of failed request: 3 (X_GLXCreateContext)
  Value in failed request: 0x0
  Serial number of failed request: 554
  Current serial number in output stream: 555
[14:02] [3676] [patola@ovo patola]%

Note that both machines have nvidia cards, both completely working with the latest nvidia-340 driver. One has GeForce GT 560M and the other has GeForce GTX 550 Ti.

Tags: trusty xenial
Revision history for this message
Patola (patola) wrote :

I found a little more information about this. I checkinstalled a more recent version of netgen (properly sed'ing tcl8.6 and tk8.6 to tcl8.5 and tk8.5 in all the Makefiles to prevent stumbling into another bug related to wrong symbols in linkedition) and found the same problem. Alas, it is reported in debian, which even suggest a fix in Ubuntu 15.10 (didn't work for me tough):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782361

It is also reported in netgen itself (sourceforge but tracker): ttps://sourceforge.net/p/netgen-mesher/bugs/21/ but with no updates.

Revision history for this message
Patola (patola) wrote :

Also tried in a third machine with Ubuntu 15.10 and GeForce 6200 TurboCache. No deal, same problem.

Revision history for this message
Patola (patola) wrote :

I was able to compile and run netgen 6.0 beta when I noticed it tried to compile with -lTogl1.7 which does not match the library name /usr/lib/libTogl.so.1.7. I soft-linked /usr/lib/libTogl1.7.so to the library and compilation worked. So this whole issue might have to do with naming the library... Maybe an ld.so.conf.d entry for it would solve the issue?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netgen (Ubuntu):
status: New → Confirmed
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

That's why netgen does not get migrated to Debian testing, it is only in unstable, because it is not installable.

tags: added: trusty wily
Changed in netgen (Ubuntu):
importance: Undecided → Medium
Revision history for this message
HAMMAD (medupedia) wrote :

Oh i was having this trouble since a month. thank you thank you thank you so very much. :)
it worked like pro!

Revision history for this message
Stephan U (uhle89) wrote :

This is supposed to be solved by a hint of J. Schoeberl:
https://sourceforge.net/p/netgen-mesher/discussion/905307/thread/946ccfc2/

Revision history for this message
Gary L. Roach (garyr) wrote :

Well here we are at Nov 5 2017 and Ubuntu17.01 still has the same problem. It is interesting that Debian unstable has a working copy. I really need this program and have wasted hours trying to get it to work. The J. Schoeberl suggestion above may work for some but not for me.
System Debian Stretch host with qemu Kubuntu as guest.

If you do an apt-cache depends dump you will find that libgl1-glvnd-nvidia-glx is used in the debian version and mesa used in the Ubuntu version. Also, libjpeg8 is used in Ubuntu but libjpeg62-turbo is used in Debian. The liboce files are all version 10 in Ubuntu and version11 in Debian.

This problem has been around for almost 2 years without even being assigned . I hope this will kick someone in the tush and get some action.

garyr

Revision history for this message
John Golub (john-golub) wrote :

The hint worked for me.
16.04 LTS on i7

Revision history for this message
Norbert (nrbrtx) wrote :

Also seen on AskUbuntu - https://askubuntu.com/q/1053877/66509 .
One line fix:
    sudo sed -i "s/\-indirect\ true\ \}/\-indirect\ false\ \}/g" /usr/share/netgen/drawing.tcl

tags: added: xenial
tags: removed: wily
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.