Closed Jeglerjeg closed 2 years ago
libEGL warning: egl: failed to create dri2 screen
I'm not sure that's the same issue as the Firefox bug.
It looks like the same issue we have when running on Wayland, where the RDD thread doesn't get the correct EGL implementation, and it ends up trying to use the mesa EGL instead. You could try running with EGL_PLATFORM=x11
or EGL_PLATFORM=gbm
as see if that solves the issue.
I'm having the same issue on FF nightly 103.0a1.20220605+. It was working flawlessly before, unfortunately, I don't remember when it started.
It looks like the same issue we have when running on Wayland, where the RDD thread doesn't get the correct EGL implementation, and it ends up trying to use the mesa EGL instead. You could try running with
EGL_PLATFORM=x11
orEGL_PLATFORM=gbm
as see if that solves the issue.
When trying EGL_PLATFORM=x11/gbm
, both led to WebRender (Software).
Double-checking eglinfo
I've found that egl: failed to create dri2 screen
happens on device 1
, but the vaapi-driver selected the device 0
.
I've managed to reproduce it locally. Looks like it was this change that caused it. The release prior to that fix is fine, the one after is broken.
GBM GL in RDD has been replaced with https://bugzilla.mozilla.org/show_bug.cgi?id=1770407#c23. (https://bugzilla.mozilla.org/show_bug.cgi?id=1770523#c4)
GBM GL in RDD has been replaced with https://bugzilla.mozilla.org/show_bug.cgi?id=1770407#c23. (https://bugzilla.mozilla.org/show_bug.cgi?id=1770523#c4)
That could be a problem. As far as I know, the dma-buf fd's that the NVIDIA driver produces can't be imported into anything else, mostly because they live in device local memory and just can't be access from outside.
One question I do have, is why the RDD process is trying to import it in the first place? I'm not sure I see what it can do with it.
IIUC, there are two reasons:
The RDD process must not have X11/Wayland display access.
I posted this on Reddit, but unfortunately nobody has asked Nvidia in the correct forum yet:
Please ask Nvidia in this thread to support VAAPI via Mesa because you are so frustrated with how complex it is right now: https://forums.developer.nvidia.com/t/nvidia-releases-open-source-gpu-kernel-modules/214128 Nvidia developers need customer feedback so they can reference it in internal discussions: https://forums.developer.nvidia.com/t/thank-you-for-opening-the-sources-of-your-drivers/214502/3
It would be great if many Nvidia users could request VAAPI (vaExportSurfaceHandle) support.
It's frustrating that the solution that was working for us (the GBM backend) removed in favour of one that doesn't (MESA surfaceless), I'll have to read the issues to find out why that was done. Would you guys be open to a patch that added an option to disable the import check/preview image feature?
We already have a working vaExportSurfaceHandle implementation, whose limitations won't likely be fixed with an NVIDIA backed open-source implementation, and it's doubtful NVIDIA will want to support a third video decoding API.
Looks like it was this change that caused it. The release prior to that fix is fine, the one after is broken.
Doesn't that mean that GBM didn't work either?
WebRender (OpenGL 3.2 hardware rendering) uses X11 GL or Wayland GL in the main process. Since 89, the RDD process had used X11 GL on X11 and Wayland (but was blocked by the sandbox) until it was replaced with GBM GL in 102 (for 10 days),
and then it has been replaced with Mesa surfaceless GL. IIUC, the RDD process must not have X11/Wayland display access.
Would you guys be open to a patch that added an option to disable the import check/preview image feature?
That would cause the problems the check protects against. Mozilla would be blamed for a buggy Firefox. Doesn't sound like a sustainable workaround. (I have nothing to decide, I just file bugs.)
We already have a working vaExportSurfaceHandle implementation
But is it really desired how it is right now? https://github.com/elFarto/nvidia-vaapi-driver/issues/74#issuecomment-1100918826
It's a driver issue. As soon as you initialise cuda, it forces the GPU into a higher power state (at least P2 IIRC), and the nvdec implementation forces you to use cuda to interact with it, so this always happens. It means that using nvdec will never save you power unless you were going to use cuda anyway.
and it's doubtful NVIDIA will want to support a third video decoding API.
https://forums.developer.nvidia.com/t/wayland-information-for-r515-beta-release/214275
The VDPAU library, used for hardware accelerated video decoding and presentation, does not have native Wayland support and does not work with Xwayland.
Nvidia could fix Nouveau VAAPI in Mesa. Microsoft even added VAAPI via D3D12 in Mesa.
https://developer.nvidia.com/blog/nvidia-releases-open-source-gpu-kernel-modules/
There are plans to work on an upstream approach with the Linux kernel community and partners such as Canonical, Red Hat, and SUSE.
In the meantime, published source code serves as a reference to help improve the Nouveau driver. Nouveau can leverage the same firmware used by the NVIDIA driver, exposing many GPU functionalities, such as clock management and thermal management, bringing new features to the in-tree Nouveau driver.
Nvidia and Red Hat seem to plan to improve Mesa:
The plan we are working towards from our side, but which is likely to take a few years to come to full fruition, is to come up with a way for the NVIDIA binary driver and Mesa to share a kernel driver. The details of how we will do that is something we are still working on and discussing with our friends at NVIDIA to address both the needs of the NVIDIA userspace and the needs of the Mesa userspace. Along with that evolution we hope to work with NVIDIA engineers to refactor the userspace bits of Mesa that are now targeting just Nouveau to be able to interact with this new kernel driver and also work so that the binary driver and Nouveau can share the same firmware. This has clear advantages for both the open source community and the NVIDIA. For the open source community it means that we will now have a kernel driver and firmware that allows things like changing the clocking of the GPU to provide the kind of performance people expect from the NVIDIA graphics card and it means that we will have an open source driver that will have access to the firmware and kernel updates from day one for new generations of NVIDIA hardware. For the ‘binary’ driver, and I put that in ” signs because it will now be less binary :), it means as stated above that it can start taking advantage of the GPL-only APIs in the kernel, distros can ship it and enable secure boot, and it gets an open source consumer of its kernel driver allowing it to go upstream. If this new shared kernel driver will be known as Nouveau or something completely different is still an open question, and of course it happening at all depends on if we and the rest of the open source community and NVIDIA are able to find a path together to make it happen, but so far everyone seems to be of good will.
What are the next steps Well there is a lot of work to do here. NVIDIA need to continue the effort to make this new driver feature complete for both Compute and Graphics Display usecases, we’d like to work together to come up with a plan for what the future unified kernel driver can look like and a model around it that works for both the community and NVIDIA, we need to add things like a Mesa Vulkan driver. We at Red Hat will be playing an active part in this work as the only Linux vendor with the capacity to do so and we will also work to ensure that the wider open source community has a chance to participate fully like we do for all open source efforts we are part of.
Seems like this change fixed it, Nvidia panel is showing video engine usage now.
Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.
Seems like this change fixed it, Nvidia panel is showing video engine usage now.
That's good news! I was a little worried we'd be stuck with the MESA surfaceless solution.
Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.
Yes, it's still needed. The cause of this is CUDA, and the weird and wacky things it does when starting up. There's no real way around this unless we get all the things CUDA is using added to the sandbox, and I'm not entirely sure that's a good idea.
Seems like this change fixed it, Nvidia panel is showing video engine usage now.
Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.
I don't understand the commit btw. Any user side temp fix ?
Seems like this change fixed it, Nvidia panel is showing video engine usage now. Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.
I don't understand the commit btw. Any user side temp fix ?
I'm not a developer so I don't really understand any of it either. That said, you'll need to use Firefox Nightly or the latest beta build. The stable build doesn't have the patch yet.
So it's working fine on beta (103.b6) but not on stable. Does that mean whoever on stable either should migrate to beta temporarily or wait for stable to reach 103 ?
Wait until July 26th: https://wiki.mozilla.org/Release_Management/Calendar#Future_branch_dates
VAAPI decode on Firefox is completly broken. Even on my Intel HD graphics, it's not working. Twitch streams often crash showing decoder error message.
VAAPI decode on Firefox is completly broken. Even on my Intel HD graphics, it's not working. Twitch streams often crash showing decoder error message.
Try beta for now. Or wait for firefox v103 which has working patch.
v103 is out with the fix for this. finally.
I wouldn't get too excited. How many releases in a row have they alternated between breaking and fixing it?
Confirm it's fixed in v130
It'll be a while still until Firefox v130. The above comment meant v103.
I'm posting this because I was confused when skimming this thread and thinking there was some long-term plan to fix this in far-off Firefox v130, then realized it was a mistake.
I doubt that this is a firefox issue. I am getting this problem running the eglgears_wayland
demo:
$ eglgears_wayland
libEGL warning: egl: failed to create dri2 screen
EGL_VERSION = 1.5
That's on Kubuntu 23.10 64-bit; nvidia v: 535.129.03
I'm X11 and Firefox 102.0b2 and nvidia driver version 515.48.07
Everything from the readme has been set, except for widget.dmabuf.force-enabled and EGL_PLATFORM
Logs
``` 8663.555154881 [240838-240838] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7fcbac711c40 31 8663.555162122 [240838-240838] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8663.558699262 [240838-240838] ../src/export-buf.c: 159 findGPUIndexFromFd Looking for DRM device index: 0 8663.559614757 [240838-240838] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8663.559667248 [240838-240838] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8663.559670908 [240838-240838] ../src/export-buf.c: 187 findGPUIndexFromFd Found drmDeviceIndex: 0 8663.559673438 [240838-240838] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8663.593959629 [240838-240838] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8663.593966559 [240838-240838] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8663.613960106 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 6 with 0 attributes 8663.613968816 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8663.613972306 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 13 with 0 attributes 8663.613975196 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 14 with 0 attributes 8663.613976556 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 19 with 0 attributes 8663.613979656 [240838-240838] ../src/vabackend.c:1752 nvTerminate Terminating 0x7fcbac711c40 8663.613982536 [240838-240838] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8663.615050752 [240838-240838] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8663.656769237 [240838-240838] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" 8694.009153032 [241591-241786] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872a5c0 31 8694.009159062 [241591-241786] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.012024579 [241591-241786] ../src/export-buf.c: 159 findGPUIndexFromFd Looking for DRM device index: 0 8694.013037684 [241591-241786] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.013098195 [241591-241786] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.013102985 [241591-241786] ../src/export-buf.c: 187 findGPUIndexFromFd Found drmDeviceIndex: 0 8694.013104875 [241591-241786] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.070105240 [241591-241786] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.070114320 [241591-241786] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.070182020 [241591-241786] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.095835981 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 6 with 0 attributes 8694.095850501 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.095853751 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5 8694.096842717 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8694.096850597 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.096851977 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5 8694.099708394 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 13 with 0 attributes 8694.099716424 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.099719224 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5 8694.100939841 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 14 with 0 attributes 8694.100946401 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 9 (nil) 0 8694.100947851 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 9 0x7f6c13193280 5 8694.102650511 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 19 with 0 attributes 8694.102656381 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 10 (nil) 0 8694.102657721 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 10 0x7f6c13193280 5 8694.104496682 [241591-241786] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c3872a5c0 8694.104502202 [241591-241786] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.105564988 [241591-241786] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.140281452 [241591-241786] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8694.141261608 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872b100 31 8694.141268788 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.141274538 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.141492089 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.141516629 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.141520299 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.191052710 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.191062750 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.191163460 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.191533672 [241591-241791] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c3872b100 8694.191542043 [241591-241791] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.192602539 [241591-241791] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.230463012 [241591-241791] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8694.230977445 [241591-241795] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872a5c0 31 8694.230986715 [241591-241795] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.230994015 [241591-241795] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.231262226 [241591-241795] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.231290336 [241591-241795] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.231294076 [241591-241795] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.280559715 [241591-241795] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.280567795 [241591-241795] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.280638046 [241591-241795] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.281060218 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d56880 31 8694.281065648 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 1 (0 max) instances 8694.281069028 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.281471831 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.281498931 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.281502411 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.323710239 [241591-241800] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8694.323889380 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.323892360 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c1400 5 8694.327382140 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 32620 8694.327387990 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c1d00 5 8694.328772498 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b100) 8694.328779608 [241591-241800] ../src/vabackend.c:1211 nvDeriveImage In nvDeriveImage 8694.328784938 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a480) 8694.328788418 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a020) 8694.328792159 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a700) 8694.328795619 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a7a0) 8694.328799069 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a8e0) 8694.328802009 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7aac0) 8694.328805479 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b600) 8694.328808629 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b880) 8694.328813029 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bce0) 8694.328816239 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b4c0) 8694.328823769 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b920) 8694.328827209 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b560) 8694.328833719 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bb00) 8694.328837119 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bc40) 8694.328841729 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bf60) 8694.328845429 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7ba60) 8694.328847569 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bd80) 8694.328852669 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7be20) 8694.328857889 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb1240) 8694.328861239 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb0f20) 8694.328864729 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb0340) 8694.328867479 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb03e0) 8694.328871269 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb12e0) 8694.329654744 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.329659544 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.329692574 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.329920385 [241591-241795] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d56880 8694.329925805 [241591-241795] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.330986972 [241591-241795] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.361406510 [241591-241795] ../src/vabackend.c:1766 nvTerminate Now have 1 (0 max) instances 8694.362111864 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d55f20 31 8694.362118534 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 1 (0 max) instances 8694.362124444 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.362333815 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.362357815 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.362360795 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.387051550 [241591-241800] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8694.387067231 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.387069641 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c0c80 5 8694.388816081 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 32619 8694.388824661 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c0c80 5 8694.390360450 [241591-241800] ../src/vabackend.c: 747 nvCreateContext with 24 render targets, 24 surfaces, at 1920x1088 8694.399360803 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.399368553 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.399437053 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.399695685 [241591-241795] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d55f20 8694.399701255 [241591-241795] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.400738661 [241591-241795] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.400811881 [241591-241807] ../src/vabackend.c: 342 resolveSurfaces [RT] Resolve thread for 0x7f6bfc8da000 started 8694.401674796 [241591-241800] ../src/vabackend.c:1022 nvEndPicture Decoded frame successfully to idx: 0 (0x7f6bfccb12e0) 8694.401683596 [241591-241807] ../src/vabackend.c: 357 resolveSurfaces Reading from queue: 0 1 8694.401688826 [241591-241807] ../src/vabackend.c: 372 resolveSurfaces Mapping surface 0 8694.404506473 [241591-241807] ../src/vabackend.c: 374 resolveSurfaces Mapped surface 0 to 20D600000 (2048) 8694.404514553 [241591-241807] ../src/export-buf.c: 525 realiseSurface No free surfaces found 8694.404518663 [241591-241791] ../src/vabackend.c:1022 nvEndPicture Decoded frame successfully to idx: 1 (0x7f6bfccb03e0) 8694.404657114 [241591-241791] ../src/vabackend.c:1703 nvExportSurfaceHandle Exporting surface: 0 (0x7f6bfccb12e0) 8694.404919535 [241591-241807] ../src/export-buf.c: 441 allocateBackingImage Presenting frame 0 1920x1088 (0x7f6bfccb12e0, 0x7f6bfc847a60, 0x7f6bfc847040) 8694.409534512 [241591-241807] ../src/export-buf.c: 459 allocateBackingImage Adding frame from EGLStream: 0x7f6bfc5c7f61 8694.409542182 [241591-241807] ../src/export-buf.c: 470 allocateBackingImage Acquired image from EGLStream: 0x7f6bfc5c7f61 8694.409547452 [241591-241807] ../src/export-buf.c: 283 exportBackingImage eglExportDMABUFImageQueryMESA: 0x7f6bfc5c0f80 NV12 (3231564e) planes:2 mods:3000000004fe014 3000000004fe014 8694.417349178 [241591-241791] ../src/vabackend.c:1744 nvExportSurfaceHandle Exporting with 1920 1088 0 1920 0 1920 8694.417359728 [241591-241791] ../src/vabackend.c:1052 nvSyncSurface Syncing on surface: 0 (0x7f6bfccb12e0) 8694.417361728 [241591-241791] ../src/vabackend.c:1057 nvSyncSurface Surface 0 not resolved, waiting 8694.417821911 [241591-241791] ../src/vabackend.c:1067 nvSyncSurface Surface 0 resolved (0x7f6bfccb12e0) 8694.417819211 [241591-241807] ../src/vabackend.c: 378 resolveSurfaces Surface 0 exported 8694.417840181 [241591-241807] ../src/vabackend.c: 357 resolveSurfaces Reading from queue: 1 2 8694.417843501 [241591-241807] ../src/vabackend.c: 372 resolveSurfaces Mapping surface 1 8694.417873012 [241591-241807] ../src/vabackend.c: 374 resolveSurfaces Mapped surface 1 to 20D600000 (2048) 8694.417876802 [241591-241807] ../src/export-buf.c: 525 realiseSurface No free surfaces found 8694.418383485 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglGetPlatformDisplay: EGL_BAD_PARAMETER error: In internal function: Additional INFO may be available 8694.418389435 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglGetPlatformDisplay: EGL_BAD_PARAMETER error: In function eglGetPlatformDisplay(), unsupported EGL Platform 8694.424827832 [241591-241807] ../src/export-buf.c: 441 allocateBackingImage Presenting frame 1 1920x1088 (0x7f6bfccb03e0, 0x7f6bfc847dc0, 0x7f6bfc847160) 8694.424967423 [241591-241807] ../src/export-buf.c: 459 allocateBackingImage Adding frame from EGLStream: 0x7f6bfc5c7d01 8694.424972803 [241591-241807] ../src/export-buf.c: 470 allocateBackingImage Acquired image from EGLStream: 0x7f6bfc5c7d01 8694.424978143 [241591-241807] ../src/export-buf.c: 283 exportBackingImage eglExportDMABUFImageQueryMESA: 0x7f6bfc5c0200 NV12 (3231564e) planes:2 mods:3000000004fe014 3000000004fe014 8694.425525856 [241591-241807] ../src/vabackend.c: 378 resolveSurfaces Surface 1 exported 8694.428314443 [241591-241795] ../src/vabackend.c:1766 nvTerminate Now have 1 (0 max) instances 8694.440826066 [241591-241800] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d557a0 31 8694.440831436 [241591-241800] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 1 (0 max) instances 8694.440836406 [241591-241800] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.441063078 [241591-241800] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.441083148 [241591-241800] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.441086138 [241591-241800] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 ATTENTION: default value of option mesa_glthread overridden by environment. libEGL warning: egl: failed to create dri2 screen 8694.446985732 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglInitialize: DRI2: failed to create screen ATTENTION: default value of option mesa_glthread overridden by environment. *** MESA_GLSL_CACHE_DISABLE is deprecated; use MESA_SHADER_CACHE_DISABLE instead *** 8694.458260478 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglCreateImageKHR: _eglParseImageAttribList 8694.469419694 [241591-241800] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.469428114 [241591-241800] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.469503604 [241591-241800] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.469649165 [241591-241791] ../src/vabackend.c: 830 nvDestroyContext Destroying context: 27 8694.469657135 [241591-241791] ../src/vabackend.c: 252 destroyContext Signaling resolve thread to exit 8694.469663185 [241591-241791] ../src/vabackend.c: 258 destroyContext Waiting for resolve thread to exit 8694.469671645 [241591-241807] ../src/vabackend.c: 383 resolveSurfaces [RT] Resolve thread for 0x7f6bfc8da000 exiting 8694.469710356 [241591-241791] ../src/vabackend.c: 260 destroyContext pthread_timedjoin_np finished with 0 8694.479368273 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface 0 (0x7f6bfccb12e0) 8694.479376443 [241591-241791] ../src/export-buf.c: 351 detachBackingImageFromSurface Detaching BackingImage 0x7f6bfc5c0f80 from Surface 0x7f6bfccb12e0 8694.479384763 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface 1 (0x7f6bfccb03e0) 8694.479388063 [241591-241791] ../src/export-buf.c: 351 detachBackingImageFromSurface Detaching BackingImage 0x7f6bfc5c0200 from Surface 0x7f6bfccb03e0 8694.479390853 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfccb0340) 8694.479394133 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479397993 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfccb0f20) 8694.479400953 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479404333 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfccb1240) 8694.479407143 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479409923 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7be20) 8694.479412863 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479416023 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bd80) 8694.479418783 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479420323 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7ba60) 8694.479421753 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479424833 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bf60) 8694.479426093 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479427463 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bc40) 8694.479430053 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479433543 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bb00) 8694.479435773 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479438623 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b560) 8694.479441733 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479445533 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b920) 8694.479447653 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479450243 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b4c0) 8694.479453303 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479455683 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bce0) 8694.479460423 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479462043 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b880) 8694.479466673 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479469453 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b600) 8694.479472023 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479474463 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7aac0) 8694.479479203 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479481973 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a8e0) 8694.479484933 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479486563 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a7a0) 8694.479488833 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479490233 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a700) 8694.479492743 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479496263 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a020) 8694.479498443 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479501843 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a480) 8694.479504523 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479507133 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b100) 8694.479508403 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479512773 [241591-241791] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c3872a5c0 8694.479515133 [241591-241791] ../src/export-buf.c: 318 destroyBackingImage Destroying BackingImage: 0x7f6bfc5c0200 8694.479649644 [241591-241791] ../src/export-buf.c: 318 destroyBackingImage Destroying BackingImage: 0x7f6bfc5c0f80 8694.479761025 [241591-241791] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.480826111 [241591-241791] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.510861197 [241591-241791] ../src/vabackend.c:1766 nvTerminate Now have 1 (0 max) instances 8694.510928588 [241591-241800] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d557a0 8694.510935518 [241591-241800] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.512001404 [241591-241800] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.544613385 [241591-241800] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8694.546206395 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d55200 31 8694.546215075 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.546223665 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.546564947 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.546597707 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.546601347 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.584243808 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.584254128 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.584352429 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.584581870 [241591-241791] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d55200 8694.584587240 [241591-241791] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.585646926 [241591-241791] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.625628910 [241591-241791] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8756.721295971 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing 8756.721305651 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_ATTRIBUTE error: In eglCreateContext: Failure in argument parsing 8756.737157384 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing 8756.737166614 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_ATTRIBUTE error: In eglCreateContext: Failure in argument parsing ```