Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nouveau doesn't work with primus #68

Closed
ArchangeGabriel opened this issue Mar 5, 2013 · 4 comments
Closed

Nouveau doesn't work with primus #68

ArchangeGabriel opened this issue Mar 5, 2013 · 4 comments

Comments

@ArchangeGabriel
Copy link

Asus U43Jc, nVidia GeForce 310m, Ubuntu 13.04 64bit

nvidia working with both VirtualGL and primus, nouveau only with VirtualGL. Some debug informations:
primusrun glxinfo:

glxinfo: ../../../../../../src/mesa/drivers/dri/common/xmlconfig.c:130: findOption: Assertion `i < size' failed.

GDB backtrace of above command with libgl1-mesa-dri-dbg:

#0  0x00007ffff74be037 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff74c1698 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff74b6e03 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff74b6eb2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007ffff372a59f in findOption (name=0x7ffff3816b53 "pp_noblue", cache=0x684b50, cache=0x684b50)
    at ../../../../../../src/mesa/drivers/dri/common/xmlconfig.c:130
#5  0x00007ffff372c36a in driQueryOptioni (cache=cache@entry=0x684b50, name=<optimized out>)
    at ../../../../../../src/mesa/drivers/dri/common/xmlconfig.c:1028
#6  0x00007ffff372c647 in dri_pp_query (ctx=0x684b30) at dri_context.c:48
#7  dri_create_context (api=<optimized out>, visual=0x680460, cPriv=<optimized out>, major_version=<optimized out>, 
    minor_version=<optimized out>, flags=<optimized out>, error=0x7fffffffdc4c, sharedContextPrivate=0x0) at dri_context.c:153
#8  0x00007ffff3729877 in dri2CreateContextAttribs (screen=0x65c9b0, api=<optimized out>, config=0x680460, shared=<optimized out>, 
    num_attribs=num_attribs@entry=0, attribs=attribs@entry=0x0, error=error@entry=0x7fffffffdc4c, data=0x635950)
    at ../../../../../../src/mesa/drivers/dri/common/dri_util.c:288
#9  0x00007ffff37299dd in dri2CreateNewContextForAPI (screen=<optimized out>, api=<optimized out>, config=<optimized out>, 
    shared=<optimized out>, data=<optimized out>) at ../../../../../../src/mesa/drivers/dri/common/dri_util.c:306
#10 0x00007ffff5bd5bd7 in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#11 0x00007ffff5bae8b7 in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#12 0x00007ffff5baeb3a in glXCreateNewContext () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#13 0x00007ffff7ba0846 in glXCreateNewContext (dpy=0x6262d0, config=0x688f40, renderType=32788, shareList=0x0, direct=1) at libglfork.cpp:488
#14 0x0000000000403c6f in ?? ()
#15 0x00000000004016bf in ?? ()
#16 0x00007ffff74a8ea5 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#17 0x00000000004029f9 in ?? ()

LIBGL_DEBUG=verbose:

name of display: :0
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/archangegabriel/.drirc: No such file or directory.
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/archangegabriel/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/archangegabriel/.drirc: No such file or directory.
glxinfo: ../../../../../../src/mesa/drivers/dri/common/xmlconfig.c:130: findOption: Assertion `i < size' failed.
@amonakov
Copy link
Owner

amonakov commented Mar 5, 2013

As we discussed previously on IRC, this does not look like a bug in primus, but rather like a failure when two different DRI drivers are loaded simultaneously. I previously told that other people are not seeing this because Ubuntu enables assertions, but having looked at their debian/ files, I'd say it probably due to their patches. See my brief discussion with Maarten Lankhorst here.

@ArchangeGabriel
Copy link
Author

Woo, brief indeed. Size reduction? Really? Since they're not shipping on a CD anymore, that's really weird. And you don't break a program because you want to reduce it size... Sorry for that, I'm closing this issue then, and will definitively try to find the time to learn a little more linux and switch to a linux distro (one that will use Wayland, not Mir...).

@amonakov
Copy link
Owner

amonakov commented Mar 7, 2013

To be fair, I'm entirely sympathetic to the goal of removing avoidable bloat.

@ArchangeGabriel
Copy link
Author

Avoidable bloats should not exist in the first place, so that they are upstream problems. But the problem here is a feature or a bloat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants