https://bugs.winehq.org/show_bug.cgi?id=50496
Bug ID: 50496 Summary: OpenGL executable crashes unless wine is run as superuser. Product: Wine Version: 5.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: adam@pimentel.space Distribution: ---
on linux-gentoo-5.4.80-r1 with wine-vanilla-5.22-r2, opengl .exe's cause wine to crash. however they do work when wine is run with super-user privleges (e.g. sudo wine ./saddle.exe). I have reason to believe this is a regression, because I was able to run and test windows opengl executables in the past without having to be logged in as root. i've attached the error log.
(the package was compiled with the opengl, abi_x86_64, abi_x86_32 features enabled, amount others)
The executable is an OpenGL/SDL2 program I wrote and compiled with mingw-w64-gcc. it is staticially-linked with GLEW and SDL2. would it help if I attached the libraries I compiled against? I can also attach the executable if you need, but I know .exe files usually get flagged as malware by email and these sorts of things.
I am also using a wayland compositor (sway), and my x11 server is Xwayland. but like I said earlier, wine has ran these executables in the past without having to log in as root or log into an x11 server (e.g. xfce4). but I can test it in xfce4 if you want.
In a windows VM the executable doesn't crash or require administrator privileges. I've done some testing with it in virtualbox, but opengl in virtualbox is an older incompatible version. I can also try with KVM/QEMU to double check that that it's not a problem with the executable.
is it possible that it is just a file permissions error?