Skip to content

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

@PredellaN

Description

@PredellaN

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions