#Failed to transfer Vulkan image to CUDA frame Generic error in an external library

245 messages · Page 1 of 1 (latest)

undone lodge
#

I can even see the vr pov on my monitor, but in the headset it's all black

Quest 3s
ALVR streamer v20.12.0
NixOs
Nvidia GeForce GTX 3060ti
Driver Version: 565.77 CUDA Version: 12.7

Logs:

02:48:42.015 INFO Guessed window scale factor: 1.0833333333333333
SESSION Updated
02:49:22.537 INFO Server connected
02:49:54.097 INFO Initial socket buffer size: send: 87040B, recv: 131072B
02:49:54.232 INFO Initial socket buffer size: send: 87040B, recv: 131072B
02:49:54.232 INFO Set socket send buffer succeeded: 425984
02:49:54.232 INFO Set socket recv buffer succeeded: 425984
02:49:54.235 INFO Render Target: 4288 2240
02:49:54.235 INFO Refresh Rate: 72
02:49:54.235 INFO CEncoder::Run
02:49:54.237 INFO CEncoder Listening
02:49:54.240 INFO CEncoder client connected, pid 4714, cmdline /home/justinm/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor
02:49:54.298 INFO Received new playspace with size: [1.2000008, 1.2000003]
02:49:54.398 INFO Using Vulkan device NVIDIA GeForce RTX 3060 Ti
02:49:54.673 INFO Using device path /dev/dri/renderD128
02:49:54.681 INFO FrameRender: Input size 4288x2240
02:49:54.710 INFO FrameRender: Output size 2560x1184
02:49:55.011 INFO Using NvEnc encoder
02:49:55.013 ERROR Encoder: cu->cuMemcpy2DAsync(&cpy, cuda_dev->stream) failed
02:49:55.014 ERROR Encoder:  -> CUDA_ERROR_INVALID_VALUE: invalid argument
02:49:55.014 ERROR Encoder: 
02:49:55.413 ERROR error in encoder thread: Failed to transfer Vulkan image to CUDA frame Generic error in an external library```
mental smelt
#

not sure anyone got this working on nix, saw a few reports but no fixes

#

the way it handles the gpu libraries is too weird

#

something is interfering with the graphics and breaking the DRM

#

some security related thing maybe

#

are you able to run normal non-vr steam games? people also have vulkan errors trying that

#

needs some special config

mental smelt
#

@fast gorge can maybe helpe?

#

@finite venture uses nix i think?

finite venture
#

no

#

tho you can try patching the alvr nix file with stuff from this

#

should hopefully do the trick

mental smelt
finite venture
#

probably moreso the cuda stuff

mental smelt
#

from logs above cuda seems fine, its only when it tries to copy the data it has problem

#

which is drm related

undone lodge
mental smelt
#

software encoding does not really count as "working"

#

ie its not good enough to actually play games with good quality and fps so noone will use that

undone lodge
undone lodge
mental smelt
#

wow - well you are in for a big shock once your gpu works

#

are you 100% committed to nix? you are some kind of masochist?

#

us lazy people just run arch and dont give a fuck

finite venture
mental smelt
#

i use OCI in work all the time for everything, but never used nix before

undone lodge
mental smelt
#

you have tried proper vr in windows right? you know what its like when it works properly?

#

we try our best to support linux - but windows is just better for this

undone lodge
#

No don’t use windows except on my laptop for software I need for work sometimes

mental smelt
#

yes i hate to boot windows as well, all my work is 100% linux

#

but i do boot windows for certain things like running microsoft flight sim in vr and other weird things

undone lodge
#

Nixos is great for software development. I might just setup a debian partition for gaming

mental smelt
#

DEBIAN

#

are you trolling us now?

undone lodge
#

No, what’s wrong with debian 😂

#

What do you suggest

#

Oh arch right

mental smelt
#

use tha LATEST

#

that means rolling distro

#

we are not saying arch - we are saying latest

#

dont use ancient stuff - and then manually try to patch it

undone lodge
#

Right rolling so nixos

mental smelt
#

haha

#

you are not wrong - but nix has its own complications

#

i use flatpaks a lot on arch

#

container technology is definitely the wya to go

#

but sometimes the isolation causes problems

undone lodge
#

Im well aware. I’ll look at the patches above and see what I can do. I still have some patience left

mental smelt
#

you are obviously experienced linux user - so just use arch tbh

#

or fedora or whatever

#

for gaming

undone lodge
#

Arch was my last distro

#

But .nix files are goated

#

For software development anyway

#

That and desktop configs

mental smelt
#

im not that experienced with it, but duck had me running some nix stuff on arch before

#

(it didnt work lol)

#

yes i use 100% oci in work

#

i dont even get out of bed without using kubectl

#

can u not have multi-distro, and just use arch for your vr?

#

(tbh use fucking windows for your vr lol)

undone lodge
#

I might just multi-distro

#

I lost my window key somewheres

mental smelt
#

you can just run regedit to fix that lol

undone lodge
#

And I nuked the install because I tried installing updates took over an hour and still wasn’t finished

#

So I just nuked it

mental smelt
#

maintaining proper dualboot is not simple

undone lodge
#

Was just using it to play league of legends anyway

mental smelt
#

most people do not understand EFI boot

#

all the guides online are garbage

undone lodge
#

I used to dual boot with windows

mental smelt
#

and autoinstallers just overwrite each other

undone lodge
#

The dual boot doesn’t worry me

mental smelt
#

you are experienced linux user - you have no excuse here - you are now the nix support guy

undone lodge
#

Ok so you don’t want me to dual boot

#

Sounds good

mental smelt
#

we wnat you to figure out nix - and then submit a PR to the wiki documenting it

mental smelt
#

this is oss-dev - stuff only happens because some random person was pissed off about something not working

#

i was pissed off that my nvidia flatpak didnt work

#

im still pissed off, because none of the games i actually want to play work on vr linux (but this is not alvrs fault lol)

undone lodge
#

What were you trying to play?

mental smelt
#

house of the dying sun doesnt work

#

carrier command 2 loads up ok, but switches ot monitor when i hit new game

#

reported bugs to proton github

#

microsoft flight sim runs like shit on linux

mental smelt
#

obscure games have many proton bugs

#

AAA titles get good support

#

obscure stuff gets nothing

undone lodge
#

I see

mental smelt
#

simple games with 2d graphics run like shit = shadow empire, command: modern operations

#

no direct2d support in proton

undone lodge
#

I was using bottles for those games, that and lutris

#

Lutris is actually goated

mental smelt
#

some of these games work fine on flatscreen, but not in vr

#

that i am able to get working - or find by searching net

undone lodge
#

Oh I see what you’re saying

mental smelt
#

its very funny, because VR is such a niche

#

and then you have VR on linux

#

and i am literally hte only person in the world probably that ever tried to play this stuff in vr on linux

#

but yeah beat saber works fine 🙂

undone lodge
#

And that makes you better than everyone else, doubly so because you’re on arch

mental smelt
#

im not better

#

im just a middle aged software engineer

mental smelt
#

i have no magic trick i just use proton like everyone else

#

you want the real truth?

#

all i do these days is play cyberpunk on windows with insane amounts of mods 🙂

#

and not in vr either because those mods are rly not very good - and cyberpunk is too good to stream to a headset

#

only cyberpunk supports AAAAAAAA of gaming - which means all the stupid nvidia stuff, and dolby atmosphere and dualsense haptics and everything else

#

so if you have not played this properly then you are missing out - properly means with an oled monitor, dualsense controller, full dolby atmos setup with huge woofer and properly executed speaker placement with calibration for room

undone lodge
#

I haven’t tried the game yet, all add it to the list.

And Ill add getting an amd card too

mental smelt
#

amd does not have the "stupid nvidia stuff"

undone lodge
#

Ill figure out this bug tho

mental smelt
#

which only cyberpunk uses

#

ie stupid path tracing that only a 4090 can do

undone lodge
#

Oh no, nvidia has its own bullshit on nixos

mental smelt
#

nvidia has bullshit everywhere

#

but we put up with it because its peak pc gaming

undone lodge
#

I’ll figure out how to make this work and then by the latest amd anyway

mental smelt
#

get a payrise and buy the 5090

#

quit fucking aroudn

#

might as well buy a console otherwise

undone lodge
#

Eh, we’ll see how many contracts I can get this year

mental smelt
#

you buy a gpu these days, and then you build the rest of hte pc around it

#

the pc only exists to shove data into the 4090

undone lodge
#

Had the same motherboard for like 10 years now 😅

mental smelt
#

definitely a masochist, i like you

#

i think you can do better tho

#

why not just run stuff on your phone?

#

you can use box64 to emulate most windows games

#

there are lots of phonevr users here

#

run cyberpunk on your phone and stream that - then we can talk

undone lodge
#

Interesting

#

Why would you rather that instead of using a headset

mental smelt
#

the neat part is when you strap the phone to your face

undone lodge
#

Im listening

mental smelt
#

the other guys know more about this than me

#

go to the general channel and ask about "phone vr"

#

it helps to have a very good phone as you can imagine

#

(some of the new chipsets coming out are very powerful)

#

you are right tho - if you have a headset you would NOT use the fucking phone

#

the phone is for when you dont have a headset

#

and you only have bits of cardboard - and a shitty phone

#

this is cyberpunk as fuck when u think avbout it

#

headsets like the quest have a very similar chipset to what phones use - they run android

undone lodge
undone lodge
#

Does this warning mean anything to you guys?

❯ vulkaninfo | grep -i layer
WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MND_enable_timeline_semaphore uses API version 1.2 which is older than the application specified API version of 1.3. May cause issues.
Layers: count = 11
VK_LAYER_ALVR_capture (ALVR display intercept layer) Vulkan version 1.0.68, layer version 1:
    Layer Extensions: count = 4
        Layer-Device Extensions: count = 1
...
finite venture
#

no should be fine

#

but what is the monado layer up to

undone lodge
#

seems fine

VK_LAYER_MND_enable_timeline_semaphore (Monado enable timeline semaphore layer) Vulkan version 1.2.199, layer version 1:
        Layer Extensions: count = 0
                Layer-Device Extensions: count = 0

#

But asking about monado is a good call.

I'm pretty sure this is a problem right? Pretty sure I had an open XR layer here when it used to work

undone lodge
#

But I could already build the server

undone lodge
#

so yea it's just the cuda thing that's messing me up

#

Although he doesn’t even have a gpu 😂

#

It’s a known issue. Makes sense. I was probably just using software encoding and when alvr updated I lost my setting and saw the same error again

undone lodge
#

Eh, I’ll just pawn off my Nvidia card I guess.

Was thinking about getting the 7900 xtx anyway

final edge
#

my god I read this whole thing

#

I only started using linux a week or two ago and setting up vr has been something else man

mental smelt
#

this guy is using nixos - other people dont have it as hard

#

but yes - your choice of distro matters a lot

#

so dont use ubuntu or other awful choice

undone lodge
undone lodge
#

Also use wayland. I don’t know why but steamv’s ui just craps out on x11. Usually x11 is reliable but not this time

#

Im also using nvidia 🙃

final edge
#

I'm using nix and Nvidia

#

And it's been great!

#

So far everything works perfectly, I can play all my games, and Iove configuring my system

#

It's just vr being annoying now

mental smelt
#

you think its "perfect" but you havent really pushed limits

#

do you have hdr working in games?

#

do you have variable refresh rate on monitor?

#

do you have custom proton with all patches?

final edge
#

My monitors are not hdr so I don't really care about it

final edge
mental smelt
#

easy to get old stuff working - hard to get cutting edge features

#

thats not what i mean

#

no published version of proton has all the patches for legal reasons

#

stuff like dualsense haptics

#

or video codecs

final edge
mental smelt
#

if you dont use dualsense or hdr you wont miss this

mental smelt
#

im not willing to compromise in any way - linux has to deliver equivalent to windows - and this is difficult

final edge
#

I mean I also come from windows so there is not much to miss yet XD

mental smelt
#

try to get something like cyberpunk working with all the AAA features - this is tricky on linux

#

new dlss 4.0 just came out for example

final edge
#

I have been playing Marvel rivals and it's runs better than on windows for me

mental smelt
#

yeah that can be the case

final edge
#

Oke dlss idk about lol, but the older dlss works fine I'm games

mental smelt
#

but only cyberpunk is AAAA - everything else is mickey mouse

final edge
#

What makes it AAAA for you?

mental smelt
#

it has everything - every possible modern feature you can think of, and demands the highest end hardware

#

framegen, dlss, path tracing etc - and the game is fucking amazing as well ofc

#

dolby atmos sound - ridiculous

#

peak pc gaming - everyone should be playing this

#

if you played it already - then play it again with v2.2 and DLC - its even better! might as well be new game

final edge
#

I still have not played it, I should. But I als feel like many of these "features" like frame gen and dlss are just ways of patching a poorly optimized game

mental smelt
#

you think wrong

#

it makes the difference between being able to play at ultra quality and not being able to play

#

the new patch seems to have increased fps a lot as well - maybe coz of dlss 4.0

final edge
#

Maybe this is the case for cyberpunk, but many other games just don't optimize and slap dlss and frame gen on to call it a day

mental smelt
#

thats true

#

cyberpunk has no competition rly

#

hold off on playing it until you have the ludicrous setup it deserves

#

ive turned into a huge dualsense fanboy as well - after being a keyboard and mouse games for years

#

i gotta have those haptics now

final edge
#

I got a 3070 ti, with a i7 12000, would that be good?

mental smelt
#

maybe

#

id recommend that as sensible minimum

#

important to have good oled tv/monitor and sound system as well

final edge
#

I'm still running my old 24 inch LCD monitor, 3 of them. And I am waiting to move out for an upgrade

#

I definitely wanna go 27 or larger and probably 3 16/9 again

#

I like that over a big ultrawide

mental smelt
#

if you are wondering whether these new OLEDs are worth it - yes they are

#

you can get cheap ones as well now

final edge
#

I definitely want oled yeah, I'm done looking at LCD for over like 11 years now XD

#

I'm also a game dev and make art from time to time so I would also benefit my work

mental smelt
#

me too (well normal dev now not gamedev)

#

some people online say oled is not good for text - but text looks GREAT to me on it!?

#

its pretty funny that i use a 4k240hz oled monitor just to display linux terminal with vim

final edge
#

Ahahaha I feel that lol

#

I have like 4 free weeks, so that's why I'm committing to fully running Linux for a month, so far I got to learn vim as well, it's quite nice but take some time. I feel quite slow with it still

mental smelt
#

the number 1 question on stackoverflow = "how do i exit vim?"

final edge
#

nha kids these days just ask it to chat gpt /s

undone lodge
#

How did you get past the DRM issue????

undone lodge
#

I gave up on getting it to work on nix so I just setup a single gpu passthrough VM that runs arch as a guest on my nixos machine

#

Once I buy a amd card Ill try to make it work again on nix

final edge
#

@undone lodge I'm like super close to getting it working now

#

I mean I got it working

#

using Wivrn and envision

#

but I got it working like once, and now it just keep disconnecting

#

sooo idk kinda disappointing