Closed username227 closed 2 weeks ago
Hey, thanks for reporting this issue. Can you try building this PR: #2542 and running without explicitly setting WEBKIT_DISABLE_DMABUF_RENDERER
to see if it works
hmmm....it's possible I did something wrong during compiling, but this version doesn't seem to work at all, both with and without the variable I get a segfault...
this branch DOES still work on Wayland. on x11 gives segfault (similar backtrace) now both with and without the environment variable.
I can also confirm that the executable from this branch also DOES work if the nvidia card is not used - on integrated AMD GPU with X11. So whatever's going on is still definitely related to this issue.
Updated the PR, @username227 can you try again?
Appears to start properly now. Great work.
@username227 I updated the PR again. I think that now that we are not statically compiling dbus into the app, it should run fine on Nvidia, even without the WEBKIT_DISABLE_DMABUF_RENDERER
env var being set internally, as I was previously doing. Could you try it again to make sure it continues to work properly?
OK; with the environment variable, it works normally. without the environment variable, it no longer segfaults, but graphics do not come up properly either. I get the following error:
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer
which seems to repeat until I close the window.
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer
Hun, seems like this is a known issue: https://github.com/tauri-apps/tauri/issues/9304
Most likely, something is broken in webkit2gtk. I will put back the code to inject WEBKIT_DISABLE_DMABUF_RENDERER
when running under Nvidia on Linux, as that seems to be the best alternative for now.
@username227 thanks for the help with the tests.
makes sense. I'm not convinced that it's really the fault of webkit2gtk. I think it's a combination of the interaction of rust, tauri, and webkit2gtk. good thing they have the workaround is all I can say.
Hey, @username227 I updated the logic for detecting nvidia cards (replaced gl/glfw with wgpu), could you give it a test to check if it is still working properly...
@HeavenVolkoff Yes, still works.
Describe the bug
Program segfaults when opening with x11. Issue is related to this rust problem: https://internals.rust-lang.org/t/global-symbols-from-statically-linked-system-libraries/19954 Problem is present when running on nvidia card, and is not an issue with your program per se (see easy proposed fix below).
Reproduction
Start program with nvidia graphics on x11
Expected behavior
program should open normally.
Platform and versions
Stack trace
Additional context
The program will start normally with the following environment variable: WEBKIT_DISABLE_DMABUF_RENDERER=1 I have fixed the spacedrive-bin package on the AUR. You should consider adding this to the desktop file Exec to avoid issues until rust fixes the problem.