You are not logged in.

#1 2017-04-06 11:24:51

bmarques
Member
Registered: 2014-12-09
Posts: 30

GL_ARB_multitexture not supported

Hi there,

I have an issue with my laptop, and I don't know where else I should turn to but this forum.. I hope you can help:

I have a fairly new laptop (Gigabyte P34w) with a (currently deactivated) discrete graphics (GTX960M), and a integrated Intel® HD Graphics 530.

I am running Arch Linux, with up to date intel drivers, and mesa 17.0.2-2

I am trying to run a software called sofa, that crashes at init, with the following message:

QtViewer: OpenGL 4.5 (Core Profile) Mesa 17.0.2 context created.
Error: GL_ARB_multitexture not supported

`glxinfo | grep ARB_multitexture` tells me the extension is installed on my machine, at least to my understanding.

full output of glxinfo here: https://pastebin.com/jiN5w3yb

I don't know anyone else using this program on linux has that problem, so it really seems to be specific to my machine or my linux install. But at the same time, I have no other problems with any other opengl programs running on my machine, so I don't understand what's wrong.
I hope you can help me!

Thanks in advance

Offline

#2 2017-04-06 11:35:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: GL_ARB_multitexture not supported

bmarques wrote:

I am trying to run a software called sofa...

What is it, where did you get it, how did you build it, how can we replicate the error?

I see a sofa package in the AUR, but the source link is bad.  I was able to find current sources and update the pkgver which made the download work, but the package function fails.  If you have a working PKGBUILD, please share it so we can try to replicate the issue.

In addition to being outdated and having a failing package function, the PKGBUILD doesn't list a single dependency.  Yet your use shows both qt and gl being used.  Is the aur/sofa package what you are using, or is your 'sofa' something completely different?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-04-06 11:45:11

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

Hi,
Thanks for the reply.

Sofa is a quite heavy physics engine with a default GUI program called runSofa. This is what I am trying to launch.
The binaries can be downloaded from their website: https://www.sofa-framework.org/download/
Though, I have compiled it from the master of their github repository: https://github.com/sofa-framework/

There shouldn't be major differences between the binary and the sources.
I asked on arch linux forum instead of their own forum because I know I will get a much faster answer if the problem is, as I suspect it to be, a laptop environment problem.

The program as two different "graphical viewers": 1 based on the qglviewer library, that works fine on my machine, and another one, called the "opengl viewer" in their interface, that crashes at launch, as described.
To reproduce the error, the runSofa prgram must be ran as follows:

./runSofa -g qt

Offline

#4 2017-04-06 13:19:36

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: GL_ARB_multitexture not supported

Though, I have compiled it from the master of their github repository: https://github.com/sofa-framework/

how did you compile it ?

Did you compile a stable version or trunk ?

If you used a PKGBUILD, post it.
If you compiled manually, what are the exact commands you ran ?

Do you have xf86-video-intel installed ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2017-04-06 13:36:53

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

I simply did a git clone of the master branch, and followed the classic steps to generate a cmake project and compile it using gcc:

cd $repo
mkdir build
cd build
cmake .. && make

xf86-video-intel is installed.

Offline

#6 2017-04-06 13:47:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: GL_ARB_multitexture not supported

That means you bypassed the package manager which is a bad idea for an arch linux system.
I hope it only touched user-folders or /usr/local , not system folders like usr/lib ?

Please read up on AUR, PKGBUILD , makepkg in arch wiki.

try removing xf86-video-intel so X will fall back to modesetting driver and see if that solves the issue.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2017-04-06 13:49:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: GL_ARB_multitexture not supported

Lone_Wolf, while I agree a PKGBUILD would be advisable, bmarques really didn't do anything problematic.  Note that there was no "make install" step invoked.  Making the reasonable assumption that all those commands were run as a regular user (not root), bmarques simply has a locally built executable.  This is perfectly reasonable.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2017-04-06 14:04:36

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

Well, I work quite closely on the project, and (will) contribute to its development, so it is not an option for me not to compile the project myself.
Also, I perform my make install in a local folder in my home, and I don't deploy it system-wide.
But for the sake of this post, I agree that I should have at least used the binaries, for reproducibility. My apologies... hmm

I tried what you suggested (removing xf86-video-intel), and after reboot, the problem still occur. I have no idea if it is relevant or not, but here's the output of lspci -kvnn

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) (prog-if 00 [VGA controller])
    Subsystem: Gigabyte Technology Co., Ltd Device b456
    Flags: bus master, fast devsel, latency 0, IRQ 141
    Memory at dd000000 (64-bit, non-prefetchable) [size=16M]
    Memory at b0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at f000 [size=64]
    [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

Offline

#9 2017-04-06 14:07:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: GL_ARB_multitexture not supported

bmarques, with a PKGBUILD, you *would* be compiling it yourself - you'd just be letting pacman know about it.  If you do work with the project much this would be advisable.  You could submit the PKGBUILD to the AUR so others could benefit from this too.  But that's all a bit tangential to the problem at hand (except that'd make it much easier for others to try to replicate your same results).

I'm building from git now to see how it works here.

EDIT: cmake errored out - it will not even build.  I'm not very familiar with cmake, but it is not giving output that suggests an obvious course of action.

EDIT 2: ahh, there it is *way* above the error message, boost is missing.  (Note this is where a PKGBUILD would really help.  I could just run Makepkg to replicate your steps rather than having to guess & check & debug the build process).

EDIT 3: now cmake succeeded, but make failed.  It looks like it is missing glew, unfortunately installing glew isn't sufficient, I may have to clear the build dir and rerun cmake for it to pick up the presence of glew.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2017-04-06 14:13:32

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

I see, thanks for the advice!

Though I took a look, and the sofa package in aur has nothing to do with the sofa (sofa-framework) that I tried to compile (for the sake of clarity smile
I know though that a few other users of sofa are working on arch, maybe it would make sense for us to makepkg

Offline

#11 2017-04-06 15:43:43

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: GL_ARB_multitexture not supported

./runSofa -g qt

Runs without error for me.  Will post the horrible PKGBUILD I used once I have rerun it to confirm it works from clean.
Edit:

_srcname=sofa
pkgname=sofa-git
pkgver=piper.v0.7.0.r789.gc58c3d1a04
pkgrel=1
pkgdesc="An open source framework primarily targeted at real-time simulation, with an emphasis on medical simulation."
arch=('i686' 'x86_64')
url="https://www.sofa-framework.org/"
license=('GPL2' 'LGPL2.1')
depends=('glew' 'boost' 'qt5-base')
makedepends=('cmake')
source=("git+https://github.com/sofa-framework/sofa.git")
md5sums=('SKIP')

pkgver() {
  cd "${_srcname}"
  git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
}

build() {
  cd "${_srcname}"
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd "${_srcname}/build"
  make DESTDIR=$pkgdir install
}

Note package fails with

....
CMake Error at cmake_install.cmake:77 (file):
  file failed to open for writing (Permission denied):

    /usr/git.version

Last edited by loqs (2017-04-06 16:01:42)

Offline

#12 2017-04-06 16:19:26

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

@Trilby: Yes, indeed, I didn't mention it but there are a few dependencies on this project.
I will make a PKGBUILD, it'll also teach me how to do it...

Edit: Sorry posted without seing the previous answer...

Last edited by bmarques (2017-04-06 16:20:08)

Offline

#13 2017-04-06 16:30:04

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: GL_ARB_multitexture not supported

prepare() {
  cd "${_srcname}"
  sed -i "s|sofa_install_git_version|#sofa_install_git_version|" CMakeLists.txt
}

That should allow the package function to succeed none trivial build size means it will be a while before I can confirm it.
Edit:
makepkg now completes but

# pacman -U sofa-git-piper.v0.7.0.r789.gc58c3d1a04-1-x86_64.pkg.tar.xz 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) sofa-git-piper.v0.7.0.r789.gc58c3d1a04-1

Total Installed Size:  411.36 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
sofa-git: /usr/lib/libGLEW.so exists in filesystem
sofa-git: /usr/lib/libGLEW.so.2.0 exists in filesystem
sofa-git: /usr/lib/libGLEW.so.2.0.0 exists in filesystem
sofa-git: /usr/lib/libz.so exists in filesystem
sofa-git: /usr/lib/libz.so.1 exists in filesystem
sofa-git: /usr/lib/libz.so.1.2.11 exists in filesystem
Errors occurred, no packages were upgraded.

Not going to fix as it does not seem relevant to the issue at hand.

Last edited by loqs (2017-04-06 17:11:16)

Offline

#14 2017-04-06 16:54:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: GL_ARB_multitexture not supported

Well, I get the same error but on top of that it segfaults on me:

$ ./runSofa -g qt
Created directory: /tmp/sofa/build/config
Created directory: /tmp/sofa/build/screenshots
QtViewer: disabling vertical refresh sync
QtViewer: OpenGL 4.5 (Core Profile) Mesa 17.0.2 context created.
Error: GL_ARB_multitexture not supported

########## SIG 11 - SIGSEGV: segfault ##########
-> /tmp/sofa/build/lib/libSofaHelper.so.17.dev.0(sofa::helper::BackTrace::dump()+0x23) [0x7f167b48b3a3]
-> /tmp/sofa/build/lib/libSofaHelper.so.17.dev.0(sofa::helper::BackTrace::sig(int)+0x1a3) [0x7f167b48b6f3]
-> /usr/lib/libc.so.6(+0x33a90) [0x7f1676cf6a90]
Segmentation fault (core dumped)

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#15 2017-04-06 17:06:08

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

Yes! That is exactly my output. I also have the segfault, I forgot to mention it.

Meanwhile I dug a bit in the code to find the source of the error message:

#ifdef SOFA_HAVE_GLEW
        glewInit();
        if (!GLEW_ARB_multitexture)
            std::cerr << "Error: GL_ARB_multitexture not supported\n";
#endif


where GLEW_ARB_multitexture is a boolean set in glewinit() when checking for extensions..

I don't get why glew says the extension is not there when glxinfo says otherwise

Offline

#16 2017-04-06 17:11:41

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

Oh! I just found this piece of code on an opengl forum:

glewInit() ' required for glActiveTextureARB

        If (GL_VERSION_1_3 | GL_VERSION_1_3 | GL_VERSION_1_4 | GL_VERSION_1_5 | GL_VERSION_2_0)
            Notify "OpenGL 1.3 or better present"
            multitexturePresent = True
        ElseIf (GL_ARB_multitexture)
            multitexturePresent = True
            Notify "GL_ARB_multitexture OK"
        Else
            Notify "GL_ARB_multitexture MISSING!"       
        EndIf

It seems to mean that this boolean check is obsolete with GL_VERSION >= 1.0, which is my case.. I will change the code and recompile to see if it solves the issue...
Seems to be a code problem after all..

EDIT: Sorry, stupid comment, actually.. The Error message might be wrong due to the fact that newer OpenGL versions do not need this check, but the segfault still happen, and the program is not terminated when GL_ARB_multitexture is checked. So the reason of the crash is just more obscure now...

Last edited by bmarques (2017-04-06 17:18:54)

Offline

#17 2017-04-06 17:45:27

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: GL_ARB_multitexture not supported

$ runSofa -g qt
[ERROR]   [FileSystem::createdirectory()] /usr/config: Permission denied
Created directory: /usr/config
[ERROR]   [FileSystem::createdirectory()] /usr/screenshots: Permission denied
Created directory: /usr/screenshots

** (runSofa:10257): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-yrHguXU6wJ: Connection refused
QtViewer: disabling vertical refresh sync
QtViewer: OpenGL 4.5.0 NVIDIA 378.13 context created.

Fixed package function

package() {
  cd "${_srcname}/build"
  make "DESTDIR=$pkgdir" install
  rm $pkgdir/usr/lib/libGLEW.so
  rm $pkgdir/usr/lib/libGLEW.so.2.0
  rm $pkgdir/usr/lib/libGLEW.so.2.0.0
  rm $pkgdir/usr/lib/libz.so
  rm $pkgdir/usr/lib/libz.so.1
  rm $pkgdir/usr/lib/libz.so.1.2.11
}

Offline

#18 2017-04-06 18:04:41

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

So... running in debug, the program crashes on the first call to an OpenGL extension instruction (in this case glGenFramebuffersEXT).
I have very basic knowledge in OpenGL...: are OpenGL extensions something that can be added to the system? or does it come with new opengl implementations? Anyway, I don't think looking at the code will help me solve my problem...

Offline

#19 2017-04-07 08:36:28

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: GL_ARB_multitexture not supported

Hi!

Parallel to this thread, I also posted a question on the OpenGL forum, since I didn't know for sure if the issue came from the code or my environment.
I got an answer on the OpenGL forum, and it is related to the fact that the program runs a "Core Profile" OpenGL context (I don't know much about these things, but basically, the problem comes from the application, not my system.
Here's a link to the thread on the OpenGL's forum for more information:
https://www.opengl.org/discussion_board … ost1286611

Thanks to all 3 of you for your help anyway, I learned a thing or two about PKGBUILDS thanks to you so it wasn't for nothing..! smile

Offline

#20 2017-04-07 09:27:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,891

Re: GL_ARB_multitexture not supported

Look at loqs' post - apparently sofa bundles libGLEW and libz ...

Offline

Board footer

Powered by FluxBB