Skip to contentSkip to conversation

New: wayland "libEGL warning: failed to create DRM screen"

Bug 32864 [email protected] 1 participant 17 messages Jan 6, 2011 – Jan 9, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=32864

Summary: wayland "libEGL warning: failed to create DRM screen"
Product: xorg
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: darxus-gf8W+JFHfRr/[email protected]
QAContact: [email protected]

Running the wayland compositor used to give output including:

libEGL debug: searching for pipe module nouveau
libEGL debug: loaded /home/darxus/install/lib/egl/pipe_nouveau.so

But now instead of saying it loaded pipe_nouveau.so, it says:

libEGL warning: failed to create DRM screen

Git commit 6a102074bb30e44273e999ee8cdd2afbfbc4e333 works (last before problem).
Git commit 997f84ff4efb62779a19f6bd0441cbae1b7bad70 has this problem.

I tried adding a bunch of prints to nouveau_drm_screen_create() in src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c, none of them printed.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

A message that is not in the archive (sent off-list or not yet received): bug-32864-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #1 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-05 17:30:57 PST --- From git://anongit.freedesktop.org/mesa/mesa

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #2 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-05 17:37:47 PST ---

$ lspci | grep -i vga
01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9300 GE]
(rev a1)

Someone else replicated the problem with a nv94 card.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #3 from wucan <[email protected]> 2011-01-05 20:12:23 PST --- (In reply to comment #2)

Quoted 5 lines
$ lspci | grep -i vga
01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9300 GE]
(rev a1)

Someone else replicated the problem with a nv94 card.

reproduct and confirm this problem with:
01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9300M GS] (rev a1)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #4 from wucan <[email protected]> 2011-01-06 00:16:24 PST --- I found, it's in src/gallium/target/egl/egl.c failed to dlopen("pipe_nouveaus.so", ...).

Who know why dlopen() failed? Since all so files are there.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #5 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-06 00:33:53 PST --- Looks like this was fixed in:

commit 84ebd8e2d7b13cf43069a2b79168cf7a1df02b71

Author: Vinson Lee <[email protected]>
Date:   Thu Jan 6 00:06:38 2011 -0800

nvc0: Fix typo of nvc0_mm.c in SConscript.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #6 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-06 20:21:11 PST --- I no-longer believe this is fixed. 84ebd8e2d7b13cf43069a2b79168cf7a1df02b71 is
giving me the same "failed to create DRM screen" error as I had been getting.
Don't know why I thought it was fixed.

6a102074bb30e44273e999ee8cdd2afbfbc4e333 still works. 997f84ff4efb62779a19f6bd0441cbae1b7bad70 still doesn't work.

This (and my previous report of it working) is on a different card:

$ lspci | grep -i vga
05:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT]
(rev a2)

(The latest commit is also not working:
6d9ca78ef7bf831b9b63f4bda68623cbae627508 )

Also, strace shows pipe_nouveau.so being opened, it just doesn't get mentioned in the output.

Full output:

$ ~/wayland/wayland/compositor/compositor 
libEGL debug: EGL search path is /home/darxus/install/lib/egl
libEGL debug: added /home/darxus/install/lib/egl/egl_gallium.so to module array
libEGL debug: added /home/darxus/install/lib/egl/egl_dri2.so to module array
libEGL debug: added /home/darxus/install/lib/egl/egl_glx.so to module array
libEGL debug: dlopen(/home/darxus/install/lib/egl/egl_gallium.so)
libEGL info: use DRM for display 0x5
libEGL debug: searching for pipe module nouveau
libEGL warning: failed to create DRM screen
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize(no
usable display)

libEGL debug: dlopen(/home/darxus/install/lib/egl/egl_dri2.so) libEGL debug: EGL user error 0x3003 (EGL_BAD_ALLOC) in DRI2: failed to get driver name

libEGL debug: dlopen(/home/darxus/install/lib/egl/egl_glx.so) libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize

failed to initialize display
failed to create compositor

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #7 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-06 20:22:14 PST --- Created an attachment (id=41737)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41737)
wayland compositor strace output

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

Darxus <darxus-gf8W+JFHfRr/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #41737|wayland compositor strace   |wayland compositor strace
        description|output                      |output, failing, commit
                   |                            |6d9ca78ef7bf831b9b63f4bda68
                   |                            |623cbae627508 (latest)
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #8 from Marcin Slusarz <[email protected]> 2011-01-08 11:49:55 PST --- if it's still a linking problem running wayland with LD_DEBUG set to "all"
might help find the root cause

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #9 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-08 12:52:11 PST --- The wayland compositor is now starting, but shows up as a completely garbled apparently random chunk of video memory.

Output:

$ ~/wayland/wayland/compositor/compositor 
libEGL debug: added /usr/lib/egl/egl_gallium.so to module array
libEGL debug: added /usr/lib/egl/egl_dri2.so to module array
libEGL debug: added /usr/lib/egl/egl_glx.so to module array
libEGL debug: dlopen(/usr/lib/egl/egl_gallium.so)
libEGL info: use DRM for display 0x5
libEGL debug: searching for pipe module nouveau
libEGL debug: loaded /usr/lib/egl/pipe_nouveau.so
libEGL debug: Failed to get KMS resources.  Disable modeset.
libEGL debug: the best driver is Gallium (score 100)
libEGL debug: searching for st module GLESv2
libEGL debug: loaded /usr/lib/egl/st_GLESv2.so
nv50_screen_get_param:162 -  Unknown PIPE_CAP 11
XDG_RUNTIME_DIR not set, falling back to .
using socket ./wayland-0
Mesa: User error: GL_INVALID_FRAMEBUFFER_OPERATION in glClear(incomplete
framebuffer)

Mesa git commit: 6a102074bb30e44273e999ee8cdd2afbfbc4e333

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #10 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-08 12:57:36 PST --- Ignore my last comment, it shows I was loading all the wrong libraries, instead
of from ~/install/

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #11 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-08 13:17:04 PST --- Created an attachment (id=41777)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41777)
Output of "wayland/compositor/compositor > ld_debug.all.txt 2>&1" with
LD_DEBUG=all, for mesa commit 90e29afcb62411b69d57dac76fe89c69c9936ed6

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #12 from Marcin Slusarz <[email protected]> 2011-01-08 14:32:23 PST --- /home/darxus/install/lib/egl/pipe_nouveau.so: error: symbol lookup error:
undefined symbol: nvc0_screen_create (fatal)

These commands should fix it:

make distclean
./autogen.sh
./configure ...
make

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #13 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-08 15:03:14 PST --- Wiped my entire build and install directories, recloned and built everything,
same error.

Still getting:

31798: /home/darxus/install/lib/egl/pipe_nouveau.so: error: symbol
lookup error: undefined symbol: nvc0_screen_create (fatal)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

Marcin Slusarz <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #14 from Marcin Slusarz <[email protected]> 2011-01-08 15:55:14 PST --- fixed by commit 69191d41231b95af7565e32393c5487163859d7e "targets/egl: add
libnvc0.a to nouveau libs"

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#17 lore raw

[Bug 32864] wayland "libEGL warning: failed to create DRM screen"

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=32864

--- Comment #15 from Darxus <darxus-gf8W+JFHfRr/[email protected]> 2011-01-08 16:06:08 PST --- Confirmed, works with commit 69191d41231b95af7565e32393c5487163859d7e

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.