backintime-kde crashes (kde4systrayicon.py)

Bug #1332126 reported by Thomas Maeder
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
backintime (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I have setup backup runs every 30 minutes.

Now I get an error message popup every 30 minutes. The crash infos look like this:

Application: Back In Time (kde4systrayicon.py), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#5 0x00007f3add508f79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#6 0x00007f3add50c388 in __GI_abort () at abort.c:89
#7 0x00007f3ad6ab7c92 in qt_message_output(QtMsgType, char const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8 0x00007f3ad777cbe9 in ?? () from /usr/lib/libkdeui.so.5
#9 0x00007f3ad7854df8 in ?? () from /usr/lib/libkdeui.so.5
#10 0x00007f3ad78557d2 in KApplication::KApplication(bool) () from /usr/lib/libkdeui.so.5
#11 0x00007f3ad85daf6d in sipKApplication::sipKApplication(bool) () from /usr/lib/python2.7/dist-packages/PyKDE4/kdeui.so
#12 0x00007f3ad85db442 in ?? () from /usr/lib/python2.7/dist-packages/PyKDE4/kdeui.so
#13 0x00007f3ad1fc0b4c in ?? () from /usr/lib/python2.7/dist-packages/sip.so
#14 0x00000000004f5d0b in ?? ()
#15 0x000000000052cc20 in PyEval_EvalFrameEx ()
#16 0x000000000056d0aa in ?? ()
#17 0x00000000004d9854 in ?? ()
#18 0x00000000004da20b in PyEval_CallObjectWithKeywords ()
#19 0x0000000000497c7d in PyInstance_New ()
#20 0x000000000052cc20 in PyEval_EvalFrameEx ()
#21 0x000000000055c594 in PyEval_EvalCodeEx ()
#22 0x00000000005b7392 in PyEval_EvalCode ()
#23 0x0000000000469663 in ?? ()
#24 0x00000000004699e3 in PyRun_FileExFlags ()
#25 0x0000000000469f1c in PyRun_SimpleFileExFlags ()
#26 0x000000000046ab81 in Py_Main ()
#27 0x00007f3add4f3ec5 in __libc_start_main (main=0x46ac3f <main>, argc=3, argv=0x7fff697271d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff697271c8) at libc-start.c:287
#28 0x000000000057497e in _start ()

Tags: patch
Revision history for this message
Germar (germar) wrote :

Please open a terminal and run 'crontab -l'. Copy & paste the command (starting with 'nice -n 19 ...') and execute it. Then post the output in here.

Revision history for this message
Thomas Maeder (maeder+launchpad) wrote :

$ crontab -l
#Back In Time system entry, this will be edited by the gui:
*/30 * * * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --backup-job >/dev/null 2>&1

BTW: I should have mentioned that this cron job was created by backintime-gnome. I have recently switched to KDE, and the error message popup has right then.

Revision history for this message
Germar (germar) wrote :

That command is the same with gnome and kde GUI.
Please run '/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --backup-job' in Terminal and post the output.

Revision history for this message
Thomas Maeder (maeder+launchpad) wrote :
Download full text (7.0 KiB)

$ /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --backup-job

Back In Time
Version: 1.0.34

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.

INFO: Lock
INFO: Mountpoint /tmp/backintime/maeder/mnt/31B6C79F/mountpoint is already mounted
INFO: on process begins
INFO: Profile_id: 1
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. please move it to /home/maeder/.config/fontconfig/fonts.conf manually
INFO: [kde4systrayicon] begin loop
INFO: Command "find "/tmp/backintime/maeder/1_2705/backintime/madbox/maeder/1/new_snapshot" -type d -exec chmod u+wx {} +" returns 0
INFO: Command "rm -rf "/tmp/backintime/maeder/1_2705/backintime/madbox/maeder/1/new_snapshot"" returns 0
INFO: Call rsync to take the snapshot
INFO: Command "rsync -rtDH --links -pEgo --delete --delete-excluded -v --chmod=Du+wx --exclude="/tmp/backintime/maeder/1_2705" --exclude="/home/maeder/.local/share/backintime" --exclude="/tmp/backintime" --include="/home/maeder/" --include="/home/" --exclude=".gvfs" --exclude=".cache*" --exclude="[Cc]ache*" --exclude=".thumbnails*" --exclude="[Tt]rash*" --exclude="*.backup*" --exclude="*~" --exclude="/home/maeder/Ubuntu One" --exclude=".dropbox*" --exclude="/proc/*" --exclude="/sys/*" --exclude="/dev/*" --exclude="/run/*" --exclude="Downloads" --exclude=".thunderbird/XXXXXXXXXXX.default/ImapMail" --exclude=".mozilla/firefox/XXXXXXXXXXX.default/Cache" --exclude=".gnupg" --exclude=".thunderbird/XXXXXXXXXXX.default/global-messages-db.sqlite" --include="/home/maeder/**" --exclude="*" / "/tmp/backintime/maeder/1_2705/backintime/madbox/maeder/1/new_snapshot/backup/" --link-dest="../../20140620-123002-908/backup" -i --out-format="BACKINTIME: %i %n%L" 2>&1" returns 0
INFO: Save config file
INFO: Command "cp /home/maeder/.config/backintime/config /tmp/backintime/maeder/1_2705/backintime/madbox/maeder/1/new_snapshot/backup/.." returns 0
INFO: Create info file
INFO: Remove backups older than: 20040601-000000
INFO: [smart remove] considered: ['20140620-123207-463', '20140620-123002-908', '20140620-120237-184', '20140620-120001-961', '20140620-113001-198', '20140620-110001-798', '20140620-103001-600', '20140620-100001-252', '20140620-093001-167', '20140620-090001-199', '20140620-083001-894', '20140620-080001-436', '20140619-170001-287', '20140619-163001-306', '20140619-160001-388', '20140619-153001-531', '20140619-150001-476', '20140619-143001-548', '20140619-140002-568', '20140619-133001-119', '20140619-130002-723', '20140619-123001-568', '20140619-120001-773', '20140619-113001-139', '20140619-110002-693', '20140619-103001-563', '20140619-100002-759', '20140619-093001-691', '20140619-090002-630', '20140617-173001-274', '20140616-160001-224', '20140615-180001-377', '20140606-160002-682', '20140528-143001-469']
INFO: [smart remove] keep all >= 20140619-000000-128 and < 20140621-000000-221
INFO: [smart remove] keep first >= 20140620-000000-556 and < 20140621-000000-620
INFO: [smart remove] keep first >= 20140619-000000-638 and < 20140620-00000...

Read more...

Revision history for this message
Germar (germar) wrote :

If that returned no errors, it must be related to missing environ variables.
Can you please run the command again with leading 'env -i PATH=<path> USER=<user> LANG=<lang> <command>'
Where <path>, <user> and <lang> is the output of 'echo $PATH', 'echo $USER' and 'echo $LANG'.

Revision history for this message
Thomas Maeder (maeder+launchpad) wrote :

... and HOME. If I do:

env -i PATH=... USER=maeder LANG=... HOME=... /usr/bin/nice -n 19 ...

the error does pop up. The output contains:

WARNING: import keyring failed
backintime(5806)/kdeui (kdelibs): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)
KCrash: Application 'kde4systrayicon.py' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/maeder/.kde/socket-madbox/kdeinit4__0
Unable to start Dr. Konqi
Re-raising signal for Apport handling.

after which the rsync is done successfully.

If I add DBUS_SESSION_BUS_ADDRESS, DBUS_SESSION_BUS_PID and DBUS_SESSION_BUS_WINDOWID to the mix (according to the output of echo $(dbus-launch)), everything runs smoothly:

env -i PATH=... USER=maeder LANG=... HOME=... DBUS_SESSION_BUS_ADDRESS=... DBUS_SESSION_BUS_PID=... DBUS_SESSION_BUS_WINDOWID=... /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --backup-job

INFO: Lock
INFO: mount local_encfs: ... on /tmp/backintime/maeder/mnt/31B6C79F/mountpoint
INFO: on process begins
INFO: Profile_id: 1
INFO: Call rsync to take the snapshot
etc.

Revision history for this message
Germar (germar) wrote :

Please apply attached patch with 'sudo patch /usr/share/backintime/common/tools.py < dbus.patch'. Than run 'backintime --pw-cache stop; backintime --pw-cache start' and try again.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "dbus.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Germar (germar)
Changed in backintime (Ubuntu):
status: New → Fix Committed
Revision history for this message
Thomas Maeder (maeder+launchpad) wrote :

Sorry for not responding earlier, but the bug hadn't occurred since a reboot at the weekend. I still applied the patch some days ago.

Unfortunately, the error popup has just started to appear again some minutes ago.

The difference to earlier is that I haven't done a reboot, but switched from one user's KDE session to another's. Could this pose a problem?

Revision history for this message
Germar (germar) wrote :

Sure. If you switch users you'll have a new dbus session. But BIT has still the old session in cache. So it will fail. Not sure yet how to handle this. I'll think about it. Did you switch users last time, too?

Germar (germar)
Changed in backintime (Ubuntu):
status: Fix Committed → Confirmed
Revision history for this message
Thomas Maeder (maeder+launchpad) wrote :

I don't remember whether I switched users, but I may well have.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package backintime - 1.0.36-1

---------------
backintime (1.0.36-1) unstable; urgency=medium

  * Acknowledge NMU; thanks Julian
  * New upstream release
    (LP: #1340131, #1335545, #1276348, #1332126, #1316288, #1269991)
  * Install libnotify plugin in common package
  * debian/watch: consider only numeric versions
  * d/rules: add additional files to be removed in clean
  * Standards version 3.9.6 (no changes)
  * Update debian/copyright (Closes: #747212)
  * Add patch header to install-docs-move.patch
  * d/control: add additional suggested packages and tweak GNOME
    package description (Closes: #745122)

 -- Jonathan Wiltshire <email address hidden> Sun, 26 Oct 2014 12:10:12 +0000

Changed in backintime (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Thomas Maeder (maeder+launchpad) wrote :

Thanks.

I now have the following versions:

ii backintime-common 1.0.40
ii backintime-gnome 1.0.40
ii backintime-kde 1.0.40
ii backintime-kde4 1.0.40
ii backintime-notify 1.0.40

I have just switched KDE user for testing. I am not able to start backintime-kde4 currently (see below).

I haven't determined yet whether it's switching users that causes the problem.

backintime-gnome starts and works.

$ backintime-kde4

Back In Time
Version: 1.0.40

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

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
Traceback (most recent call last):
  File "/usr/share/backintime/kde4/app.py", line 1216, in <module>
    main_window = MainWindow( cfg, app_instance, kapp, kaboutdata )
  File "/usr/share/backintime/kde4/app.py", line 354, in __init__
    hash_id = mnt.mount()
  File "/usr/share/backintime/common/mount.py", line 79, in mount
    return tools.mount(check = check)
  File "/usr/share/backintime/common/mount.py", line 199, in mount
    self._mount()
  File "/usr/share/backintime/common/encfstools.py", line 76, in _mount
    self.password = self.config.get_password(self.parent, self.profile_id, self.mode)
  File "/usr/share/backintime/common/config.py", line 576, in get_password
    return self.pw.get_password(parent, profile_id, mode, pw_id, only_from_keyring)
  File "/usr/share/backintime/common/password.py", line 385, in get_password
    password = self._get_password_from_user(parent, profile_id, mode, pw_id)
  File "/usr/share/backintime/common/password.py", line 456, in _get_password_from_user
    timeout = 300)
  File "/usr/share/backintime/gnome/messagebox.py", line 95, in ask_password_dialog
    hide_input = True, timeout = timeout)
  File "/usr/share/backintime/gnome/messagebox.py", line 63, in text_input_dialog
    dialog.set_transient_for( parent )
TypeError: parent should be a GtkWindow or None

Revision history for this message
Germar (germar) wrote :

Please report this in a new bug report filled against https://launchpad.net/backintime (not the Ubuntu package). This has nothing to do with this bug.

This happens because you have installed both backintime-kde4 and backintime-gnome. As soon as you remove backintime-gnome the kde4 app will work again. But for sure I consider this as a bug.

Revision history for this message
Thomas Maeder (maeder+launchpad) wrote :

> As soon as you remove backintime-gnome the kde4 app will work again.

Confirmed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.