SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
6.79k stars 798 forks source link

Prepare area completely blank when using Compiz on Linux #5906

Open torriem opened 3 months ago

torriem commented 3 months ago

Is there an existing issue for this problem?

OrcaSlicer Version

2.1.1

Operating System (OS)

Linux

OS Version

Fedora 40, Mate Spin

Additional system information

Using Compiz as the window manager with the Mate Desktop. Graphics card is AMD Radion Vega.

Printer

Irrelevant

How to reproduce

  1. Run Compiz as the compositing window Manager under X.org session
  2. Run OrcaSlicer, not for the first time.

This problem does not occur when using the Marco window manager, so the problem is a specific interaction between OrcaSlicer and Compiz. Interestingly, if I delete the configuration files in .config, and run OrcaSlicer, it does load and shows the prepare plate just fine. But subsequent loads will show a blank prepare area.

Actual results

Prepare area of the window is completely blank

Expected results

Prepare area should show the build plate

Project file & Debug log uploads

I can attach the output of stderr, but it does not shed light on this problem. All that's printed out are various GTK warnings that come from wxWidgets.

Checklist of files to include

Anything else?

This is only a problem between Compiz and OrcaSlicer, as near as I can tell. Under other window managers and desktop environments there is no issue.

and1gum commented 2 months ago

Same issue with Win11 and AMD 24.6.1 drivers, it is possible to force "prepare" tab to the normal view - when changing the language, application does "rebuild" and displays the tab normally. But after closing and reopening - black tab again.

torriem commented 2 months ago

Interesting. I didn't think to try that on Linux. I will next time I get a chance. At the moment I'm trying out KDE on Wayland and OrcaSlicer works fine in this environment.

bepstein111 commented 2 months ago

Can confirm, Debian 12 on Ryzen 5800X, NVIDIA 3070Ti, 32GB RAM, KDE + Compiz + Emerald = no graphics on prepare tab, but I can see all the menus and settings on the left side, just no 3D. GCode preview Tab works fine. Once I switch back over to kwin, I need to quit out and re-open OrcaSlicer, but then it works fine. I will note that PrusaSlicer works fine under compiz, bambustudio seems to exhibit the same behavior as orca.

raunchyneworleans commented 2 months ago

same problem. nothing showing in the prepare or preview window while everything else works. 7700x, rx6950xt 64gb on windows 11 and everything updated. have a voron so nothing from bambu. no way to get it working.

bepstein111 commented 1 month ago

I tried playing around with application profiles in the NVIDIA control panel to no avail. The similar thread for AMD drivers seems to have solved their issue by turning off sharpening in the driver, but the same thing with NVIDIA doesn't seem to help.

adolfotregosa commented 1 month ago

does this help ??

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json ./OrcaSlicer_Linux_Ubuntu2404_V2.2.0-dev_c6d7155092af9b224253666b778b5e75.AppImage

eteq commented 1 month ago

@adolfotregosa - thank you so much! The __EGL_VENDOR_LIBRARY_FILENAMES envar did it for me.

(Note I am not on compiz, but rather on hyprland, but otherwise the problem is the same)

phdmetallurgist commented 2 weeks ago

does this help ??

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json ./OrcaSlicer_Linux_Ubuntu2404_V2.2.0-dev_c6d7155092af9b224253666b778b5e75.AppImage

@adolfotregosa +1 upvote

This solved my graphics card issue with OrcaSlicer - Thank you! Fedora Workstation 40 Nvidia RTX 3060 driver 560.35.03 OrcaSlicer v2.1.1

The solution that worked: run this in the CLI: __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json ./OrcaSlicer_Linux_V2.1.1.AppImage

I suspect that it will also work with Bambu Studio as well since I was having the same issue with both.

torriem commented 1 week ago

Unfortunately the environment variable solution does not work on Fedora 40 with Mate and Compiz on an AMD graphics card.

As much as I love Mate and Compiz, I've been trying KDE Plasma 6 and OrcaSlicer is working great there.