Skip to content

Crashes ("TypeError: standardPixmap(...") when running with qt6ct and Breeze theme #2128

@major-mayer

Description

@major-mayer

Describe the problem, feature or ask a question:

As reported downstream in the Manjaro forums, I am getting crashes when running Back in Time as a normal user with qt6ct Breeze theme activated.
I use this theme because usually it provides the best look for programs originally developed with Qt for the KDE desktop environment (like Okular e.g.).
I have never experienced inconsistent or unreadable UI element, in comparison to e.g. some Kvantum themes, not to speak of crashes.

Here is what happens when i run it with QT_QPA_PLATFORMTHEME=qt6ct (exported for my login shell, so active by default for all programs):

QT_QPA_PLATFORMTHEME=qt6ct backintime-qt                        ✔ 

Back In Time
Version: 1.5.4

Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime --license' for details.

Traceback (most recent call last):
  File "/usr/share/backintime/qt/app.py", line 2472, in <module>
    mainWindow = MainWindow(cfg, appInstance, qapp)
  File "/usr/share/backintime/qt/app.py", line 342, in __init__
    SettingsDialog(self).exec()
    ~~~~~~~~~~~~~~^^^^^^
  File "/usr/share/backintime/qt/manageprofiles/__init__.py", line 253, in __init__
    self._tab_retention = RemoveRetentionTab(self)
                          ~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/share/backintime/qt/manageprofiles/tab_remove_retention.py", line 65, in __init__
    self._label_rule_execute_order()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/share/backintime/qt/manageprofiles/tab_remove_retention.py", line 177, in _label_rule_execute_order
    icon = self.style().standardPixmap(
        QStyle.StandardPixmap.SP_MessageBoxInformation)
TypeError: standardPixmap(self, standardPixmap: QStyle.StandardPixmap, opt: Optional[QStyleOption], widget: Optional[QWidget] = None): not enough arguments

I can see the first dialog, that mentions that no configuration has been found.
When i choose to not import and existing one, the crash occurs.

This does not happen if I unset the environment variable QT_QPA_PLATFORMTHEME= backintime-qt.

This is my qt6ct configuration:

[Appearance]
color_scheme_path=/usr/share/qt6ct/colors/airy.conf
custom_palette=false
icon_theme=breeze
standard_dialogs=default
style=Breeze

[Fonts]
fixed="Noto Sans Mono,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
general="Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"

[Interface]
activate_item_on_single_click=1
buttonbox_layout=3
cursor_flash_time=1200
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=4
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3

[PaletteEditor]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x4\x15\0\0\x1\x11\0\0\x6\x8b\0\0\x3\x42\0\0\x4\x15\0\0\x1\x32\0\0\x6\x8b\0\0\x3\x42\0\0\0\0\0\0\0\0\a\x80\0\0\x4\x15\0\0\x1\x32\0\0\x6\x8b\0\0\x3\x42)

[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\xff\xff\xff\xf5\xff\xff\xff\xcf\0\0\x2\xe9\0\0\x2p\0\0\0\0\0\0\0\0\0\0\x2\xde\0\0\x2\x65\0\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\x2\xde\0\0\x2\x65)

[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()

And my system info:

# System Details Report
---

## Report details
- **Date generated:**                              2025-05-06 13:46:28

## Hardware Information:
- **Hardware Model:**                              Lenovo Lenovo Yoga C940-14IIL
- **Memory:**                                      16.0 GiB
- **Processor:**                                   Intel® Core™ i7-1065G7 × 8
- **Graphics:**                                    Intel® Iris® Plus Graphics (ICL GT2)
- **Disk Capacity:**                               1.0 TB

## Software Information:
- **Firmware Version:**                            AUCN57WW
- **OS Name:**                                     Manjaro Linux
- **OS Build:**                                    rolling
- **OS Type:**                                     64-bit
- **GNOME Version:**                               48
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.6.87-1-MANJARO

If you think that this is not a problem with Backintime but rather with the Breeze theme, feel free to tell me where else I should report it.

Edit: On a side note, this crash doesn't happen when I use the same theme (Breeze) on KDE.
It seems to be specific to Gnome with the Breeze theme.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions