Back In Time (Qt) crashes on Gnome Wayland

Hi everybody,
I just tried to run Back In Time with its Qt frontend on my Manjaro Unstable notebook with Gnome Wayland DE.
While at first everything looks decent and this dialog occurs, asking me if i want to import an existing profile (which i don’t have), as soon as i press “Nein” the application crashes with the following error:

removed unnecessary image

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.

The cached device pixel ratio value was stale on window update.  Please file a QTBUG which explains how to reproduce.
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 am not quite sure what’s going on here, but I can tell that it works on my KDE Wayland Desktop PC that is also using Manjaro Wayland.
Interestingly, it opens successfully if I start it as root.

Do you think this is an upstream issue or is something wrong with my configuration?
I am using the QAdwaitaDecorations and the Breeze theme if that makes any difference.

System Details Report


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.85-1-MANJARO

How did you do that?
… to specifically run the QT frontend …?

I ask because I just installed from AUR “backintime”

On a Gnome DE fully updated system.

In a VM - so it is not running Wayland - it is running x11/xorg

and I don’t get that response.

I do get:

backintime

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.

WARNING: Failed to connect to Udev serviceHelper daemon via D-Bus: org.freedesktop.DBus.Error.ServiceUnknown
WARNING: D-Bus message: The name is not activatable
WARNING: Udev-based profiles cannot be changed or checked due to Udev serviceHelper connection failure

but this is on Manjaro stable - not unstable like yours

same result if I start it as root

1 Like

I installed backintime from the extra repo, not from the AUR.
Then I just entered backintime-qt in the terminal and the crash happend.

When I only execute backintime, no error message is shown, but also no window opens:

backintime                                                       ✔ 

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.

Should backintime without the -qt suffix open a different type of frontend? Maybe a GTK based one?

I have no explanation.
I can’t get it to start either.

It asks for something that isn’t there - or isn’t be supplied - and it just crashes …

Okay, thanks for your confirmation.
It’s good to know that I’m not the only one with this issue, at least.

@MajorMayer

I wonder if this is a problem specific to gnome.
It works fine in Cinnamon and works steadily every hour.
Wayland?

edit :
launch backintime-qt in terminal.

❱ 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.

I guess so.
As mentioned before, I use BackInTime also on KDE where I never had such issues.
And yes, I am on Wayland.

Edit: I just tried opening it under X11, but it seems like my Gnome X11 session is pretty much broken. I wasn’t even able to open a terminal there…

I am on XFCE stable branch and backintime just works. From my menue it is run as root with this command:

/usr/bin/backintime-qt_polkit %f

1 Like

I previously said:

I used the command:
backintime-qt in a terminal to start it - which doesn’t work

but after seeing this:

of course it works with this command - it never occurred to me that this was the correct command.

In Cinnamon this works well to integrate into a GTK based system. I also use this setup in my iSO.

You need to have qt5ct installed, and qt6ct for newer KDE apps.
Then in your user directory, edit the .profile file and add:
export QT_QPA_PLATFORMTHEME="qt5ct"

Then make sure Breeze theme and Breeze-Icons are install.

Then run QT5 Configuration tool and adjust your themes and settings to match your system.

1 Like

Can’t reproduce on two GNOME systems using Wayland sessions.

FYI, I package it differently than the AUR maintainer. :wink:

1 Like

Thanks for the hint, but I had the environment variable already set:

env | grep QT                                                                                                                                                                                     1 ✘ 
QT_IM_MODULE=ibus
QT_QPA_PLATFORM=wayland
QT_AUTO_SCREEN_SCALE_FACTOR=1
QT_WAYLAND_DECORATION=adwaita
QT_QPA_PLATFORMTHEME=qt6ct

The Breeze theme and Breeze-Icons were also already installed and can be seen in the Qt6 Configuration tool:

Other Qt/ KDE applications like Okular open normally on my system.

Using the command backintime-qt_polkit works as well for me.
That what I meant when I said:

But is it really recommended or even required to open Back in Time as root under Gnome/ Wayland?
I don’t want to enter my password every time a new backup is started.

At least on my KDE system, the non-root variant works as well.

Just out of curiosity, I installed backintime from the AUR as well, but I am seeing the same issue.
The non-root variant crashes, while the root one doesn’t.

… under what DE and protocol is rather irrelevant,
but the tool needs to read and be able to write root owned files - some of them are only even readable by root
/etc/shadow, for instance

What is the non-root variant?

How often are you creating backups? :wink:
… root is needed to even read some files - to back them up

Until recently I was only backing up my home folder, but yeah I noticed as well, that I’m unable to create backups from the /etc folder without root permissions.

At least when I install backintime from the extra repo, two entries in the application launcher are created. “Back in Time” and “Back in Time (root)”.
The non-root variant is the first one and can also be started by executing backintime-qt.

I see your point in creating backups with the root user, but still I think that the starting Back in Time as a non-root user should be possible without it crashing.

@MajorMayer

Screenshot from 2025-04-04 06-16-58

I’m interested. I’d be happy if someone who knows more about it could tell me for sure.
Now that you mention it, I’ve never really thought about it that deeply.

In the Cinnamon environment, these two menu icons are set. My hourly backintime usage is for /home.

In the past, I used to configure the /etc subdirectory with backintime started by root to backup everything in detail. I don’t use it anymore.
AND. you don’t need to enter password every time a new backup is started with root backintime.

1 Like

I just tested this on a fresh Manjaro Stable Gnome VM and got the same crash:

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

This time using X11:

System Details Report


Report details

  • Date generated: 2025-04-06 23:52:19

Hardware Information:

  • Hardware Model: QEMU Standard PC Q35 + ICH9, 2009
  • Memory: 4.0 GiB
  • Processor: Intel® Core™ i5-8600K × 4
  • Graphics: Unknown
  • Disk Capacity: 26.8 GB

Software Information:

  • Firmware Version: Arch Linux 1.16.3-1-1
  • OS Name: Manjaro Linux
  • OS Build: rolling
  • OS Type: 64-bit
  • GNOME Version: 48
  • Windowing System: X11
  • Kernel Version: Linux 6.12.4-1-MANJARO

What is the output of:

pip show pyqt6

Not on the VM this time, but here you go:

 pip show pyqt6                                                 1 ✘ 
Name: PyQt6
Version: 6.8.1
Summary: Python bindings for the Qt cross platform application toolkit
Home-page: https://www.riverbankcomputing.com/software/pyqt/
Author: 
Author-email: Riverbank Computing Limited <info@riverbankcomputing.com>
License: GPL v3
Location: /usr/lib/python3.13/site-packages
Requires: PyQt6-sip
Required-by: aqt, PyQt6-WebEngine

I updated and rebooted my system before executing it.