Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrusaSlicer not running with flatpak when running on dedicated gpu #13945

Closed
2 tasks done
PredellaN opened this issue Jan 10, 2025 · 7 comments
Closed
2 tasks done

PrusaSlicer not running with flatpak when running on dedicated gpu #13945

PredellaN opened this issue Jan 10, 2025 · 7 comments

Comments

@PredellaN
Copy link

PredellaN commented Jan 10, 2025

Description of the bug

When starting prusaslicer with "flatpak run com.prusa3d.PrusaSlicer", the application starts and works normally.
When starting with:

  • "flatpak --env=__NV_PRIME_RENDER_OFFLOAD=1 --env=__GLX_VENDOR_LIBRARY_NAME=nvidia run com.prusa3d.PrusaSlicer"
  • "switcherooctl -g 1 com.prusa3d.PrusaSlicer"
    The application stops here:
nicolas@pop-os:~$ flatpak run --env=__NV_PRIME_RENDER_OFFLOAD=1 --env=__GLX_VENDOR_LIBRARY_NAME=nvidia com.prusa3d.PrusaSlicer 
--------------------------------------------------------------------------
Message: 21:35:42: Starting PrusaSlicer flatpak with entrypoint script
--------------------------------------------------------------------------
nicolas@pop-os:~$

Starting the 2.8.0 AppImage version with switcherooctl -g 1 or with the environment variables specified before, the application starts on the dedicated GPU as intended. Other flatpak applications i am using run on the dedicated GPU without issue.
Enabling device=dri won't fix the issue.

Project file & How to reproduce

  • install the flatpak version of prusaslicer on a device with hybrid graphics
  • run prusaslicer with either of the above mentioned commands

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

2.9.0

Operating system

Pop OS 22.04

Printer model

any

@Jan-Soustruznik
Copy link
Collaborator

Hello, @PredellaN , Could you check if PrusaSlicer has permission to use the GPU? You can add the necessary permissions using this command: flatpak override --gpu=all com.prusa3d.PrusaSlicer. Personally I would recommend flatseal to set/manage flatpak permissions in general.

@PredellaN
Copy link
Author

Hello @Jan-Soustruznik ,

nicolas@pop-os:~$ flatpak override --gpu=all com.prusa3d.PrusaSlicer
error: Unknown option --gpu=all

I assume you meant --device=all , however it doesn't solve the issue (it is already on by default). --device=dri also doesn't solve the issue

@benderl
Copy link

benderl commented Jan 27, 2025

Same issue here with current Ubuntu 24.04 with slicer 2.9.0. I was previously using the AppImage without problems, but the flatpack refuses to start on the secondary gpu.

@iff7378
Copy link

iff7378 commented Feb 19, 2025

Same issue Ubuntu 22.04. Appimage was working previously. Before I had the nvidia drivers installed on flatpak, prusa slicer would open but the 3d window wouldnt render. Instaled the Nvidia drivers and now it won't even run.

Used flatseal to give permission to the GPU acceleration and wayland

@PredellaN
Copy link
Author

workaround: there is an appimage build at https://github.com/Samueru-sama/PrusaSlicer/releases/tag/continuous , functions correctly with discrete gpu

@Samueru-sama
Copy link

workaround: there is an appimage build at https://github.com/Samueru-sama/PrusaSlicer/releases/tag/continuous , functions correctly with discrete gpu

Hey doesn't probonos fork work? it is more recent.

See relevant issue: #13653

My build is old and from this old PR probonopd#5

@SachCZ
Copy link
Collaborator

SachCZ commented Mar 4, 2025

Hello this is most probably a duplicate of #13618.

@SachCZ SachCZ closed this as completed Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants