shkhln / libc6-shim

Cheap glibc knockoff
MIT License
29 stars 5 forks source link

Nv-sglrun with obs (Assertion failed: (0), aborts) #3

Closed st1905 closed 3 years ago

st1905 commented 3 years ago
info: OBS 26.0.2-113-gffe4c855 (freebsd)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter NVIDIA Corporation GeForce GTX 750 Ti/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 455.38, shading language 3.30 NVIDIA via Cg compiler
shim_fcntl_impl(44, 1033, ...) is not implemented
Assertion failed: (0), function shim_fcntl_impl, file src/libc/fcntl.c, line 124.

I wonder if it would be possible to run obs ?

shkhln commented 3 years ago

Well, OBS works for me… 1033 corresponds to F_ADD_SEALS, which is only useful for descriptors returned by memfd_create, which we don't support either. So, this shouldn't really be called.

st1905 commented 3 years ago

I know its kinda stupid thing to do but i removed UNIMPLEMENTED_ARGS("%d, %d, ...", fd, cmd); from fcntl.c and now it works.

nvenc1 nvenc2

st1905 commented 3 years ago

I also see that F_ADD_SEALS was added to Linuxulator recently

shkhln commented 3 years ago

memfd_create was implemented in CURRENT quite a while ago, however since I don't use CURRENT, I'm not going to do anything with it until FreeBSD 13 is actually released.

st1905 commented 3 years ago

I can now close this issue, thank you.