Material settings dialog opens at 5×5 pixels on Linux (wxGTK)
Agent answer
Triage: actionable, Linux-only GUI bug.
Reasoning:
- This is a pure wxGTK dialog-sizing bug with a concrete code location:
ParamsDialogsets its size once in the constructor (ParamsDialog.cpp:41-45) andPopup()(ParamsDialog.cpp:108-126) only callsCenter()/Show(); if GTK discards the pre-realizationSetSizeand falls back to the sizer's min size (the panel has no pages yet at that point — tabs are added later inMainFrame.cpp:1995-2002), an ~5x5 dialog results.em_unit()is floored at 10 (GUI_Utils.hpp:282-292), ruling out the reporter's "em unit = 0" hypothesis and pointing at the wxGTK size/sizer negotiation instead. - Reproducible on this machine in principle: no printer, cloud or OS-specific (Windows/macOS) dependency — only wxWidgets + X11. Plan: build/run under Xvfb, open the Prepare tab's filament "Edit" dialog (or a minimal wx harness that mimics the constructor sequence) and read the realized geometry with
xwininfo/xdotool getwindowgeometry; also try mimicking the reporter's environment (Xft.dpi: 153/ GDK scale) since the trigger is plausibly tied to the scaled Xwayland display. - Caveat for whoever picks it up: the repo has a configured but not-yet-built
build/tree (nobuild/bin/orca-slicer), so a build is required, and a default 96-DPI plain-Xvfb session may not trigger it — a standalone wx test replicating the constructor order is the cheaper first check. A likely fix is to re-apply the size inPopup()/on show, or to useSetMinSize/defer sizing until after the tabs are populated.
Cause
Suspect: src/slic3r/GUI/ParamsDialog.cpp:41-45 (SetSizerAndFit + SetSize at construction, before tabs are added in MainFrame.cpp:1995-2002) — under wxGTK the top-level size set before Show is not honored and GTK sizes the dialog from the (still empty) ParamsPanel sizer min size; Popup() (ParamsDialog.cpp:108-126) never re-applies SetSize, only Center()/Show(). em_unit() itself is floored at 10 in GUI_Utils.hpp:282-292, so the value passed to SetSize cannot be the cause.
Triage summary
Under wxGTK/X11 (Xwayland, HiDPI) the material/params dialog created by ParamsDialog opens at ~5x5 px, ignoring its explicit SetSize(75em_unit, 60em_unit), so it is unusable until manually resized.
Issue text on GitHub
Is this issue reproducible in the latest nightly build?
- [x] I have checked the latest nightly build and the issue is still reproducible
Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.5.3
Regression compared to a previous version
no
Operating System (OS)
Linux
OS Version
Debian GNU/Linux 13.7 (Trixie) running inside ChromeOS (Crostini) on your Acer Chromebook 516 GE
Additional system information
No response
Printer
Flashforge 5M Pro
How to reproduce
- go to prepare
- hit edit filament button
- 5x5 material window setting window opens
Actual results
tiny window that you have to drag open to view
Expected results
a window to open that I can view and change settings on. Not something 5x5 pixels
Project file & Debug log uploads
dont have anything
Checklist of files to include
- [ ] Log file
- [ ] Project file
Anything else?
Material settings dialog opens at 5×5 pixels under X11/Xwayland
Title: Material settings dialog opens at 5×5 pixels on Linux (wxGTK)
Description
The Material settings dialog opens at approximately 5×5 pixels. The dialog is effectively unusable until manually resized.
This happens when clicking Edit in Filament Settings.
System information
Device: Acer Chromebook 516 GE
Linux environment: Debian 13.7 (Crostini)
Architecture: x86_64
Display resolution: 2560×1600
Display density: 153 DPI
Display backend: X11/Xwayland
OrcaSlicer versions tested: 2.5.2 and 2.5.3
Tests performed
The issue reproduces with multiple configurations:
Version
Distribution
Result
2.5.2
Flatpak
5×5 pixels
2.5.3
Flatpak
Tiny dialog
2.5.3
AppImage
5×5 pixels
2.5.3
Flatpak, clean configuration
4×8 pixels
Both Flatpak and AppImage were launched using X11.
The clean configuration test used a separate data directory, ruling out an existing saved configuration or profile as the likely cause.
X11 measurements
Using xwininfo, the AppImage dialog reported:
Width: 5 pixels
Height: 5 pixels
Window type: Dialog
Window state: Normal
Parent: Main OrcaSlicer window
The main OrcaSlicer window reports its expected dimensions of 2560×1600.
The dialog's WM_NORMAL_HINTS do not impose a restrictive maximum or minimum size. Its minimum size is 1×1 and its maximum is 134217727×134217727.
The window manager frame is only 8×8 pixels, confirming that the dialog is already tiny before window-manager framing.
Relevant source-code observation
In src/slic3r/GUI/ParamsDialog.cpp, the ParamsDialog constructor calls:
SetSizerAndFit(topsizer);
SetSize({75 * em_unit(), 60 * em_unit()});
Layout();
Center();
In src/slic3r/GUI/GUI_Utils.hpp, the GTK implementation of update_em_unit() calculates the em unit using:
m_em_unit = std::max<size_t>(
10, this->GetTextExtent("m").x - 1
);
Since the em unit should be at least 10, the requested dialog size should be at least 750×600 pixels.
However, X11 reports an actual initial window size of only 5×5 pixels.
Questions
Could GetTextExtent("m") be returning an unexpected value during dialog initialization under wxGTK?
Could there be an issue with SetSizerAndFit() or SetSize() on this dialog under X11/Xwayland?
Is there a known wxWidgets 3.3 GTK sizing issue that could explain this behavior?
The issue appears specific to this dialog; the main application window and other dialogs display normally.
I would appreciate any suggestions for additional diagnostics or a possible fix.
- Area
- gui
- Platform
- linux
- Author
- jasesun23
- Comments
- 0
- Created
- 2026-12-05
Log
- vast-tw took it: reproducevast-tw · 18 min ago
- Worker restarting; back in the queuevast-tw · 18 min ago
- vast-tw took it: reproducevast-tw · 1 h ago
- Worker restarting; back in the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- vast-tw restarted; returned to the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- triage: triagedvast-tw · 1 h ago
- vast-tw took it: triagevast-tw · 1 h ago
- Collected from GitHubpanel · 3 h ago