Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

GLib-GIO-CRITICAL #745

Open
g0rdonL opened this issue Apr 13, 2021 · 1 comment
Open

GLib-GIO-CRITICAL #745

g0rdonL opened this issue Apr 13, 2021 · 1 comment

Comments

@g0rdonL
Copy link

g0rdonL commented Apr 13, 2021

Describe the bug
I am using arch linux with timeshift-autosnap from aur. I have googled this error and this might be due to broken symlinks, but I have cleared them so that shouldn't be the problem.

(process:1226968): GLib-GIO-CRITICAL **: 22:39:54.431: g_file_get_path: assertion 'G_IS_FILE (file)' failed

** (process:1226968): CRITICAL **: 22:39:54.431: tee_jee_file_system_path_combine: assertion 'path1 != NULL' failed

** (process:1226968): CRITICAL **: 22:39:54.431: tee_jee_file_system_dir_exists: assertion 'dir_path != NULL' failed

(process:1227012): GLib-GIO-CRITICAL **: 22:39:54.511: g_file_get_path: assertion 'G_IS_FILE (file)' failed

** (process:1227012): CRITICAL **: 22:39:54.512: tee_jee_file_system_path_combine: assertion 'path1 != NULL' failed

** (process:1227012): CRITICAL **: 22:39:54.512: tee_jee_file_system_dir_exists: assertion 'dir_path != NULL' failed

To Reproduce
Steps to reproduce the behavior:

  1. intall timeshift and timeshift-autosnap
  2. install a package
  3. error shows up when it makes the backup

Expected behavior
no errors

Screenshots
If applicable, add screenshots to help explain your problem.

System:

  • Linux Distribution Name and Version: 5.11.13-arch1-1
  • Desktop: qtile
  • Application Version: 20.11.1
@Lothiraldan
Copy link

I've tried to run the cron script in debug mode to understand why daily snapshots weren't created (still digging), but I think I found some leads regarding the root cause of the issue, extract from the output of timeshift --check --debug --scripted:

juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (D: Main: load_app_config())
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (App config loaded: /etc/timeshift.json)
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (D: IconManager: init())
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (D: bin_path: /bin/timeshift)
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (D: found images directory: /usr/share/timeshift/images)
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT ()
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT ((process:256272): GLib-GIO-CRITICAL **: 20:04:02.024: g_file_get_path: assertion 'G_IS_FILE (file)' failed)
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (D: base_path: (null))
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT ()
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (** (process:256272): CRITICAL **: 20:04:02.024: tee_jee_file_system_path_combine: assertion 'path1 != NULL' failed)
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT ()
juil. 15 20:04:02 fedora CROND[256271]: (root) CMDOUT (** (process:256272): CRITICAL **: 20:04:02.024: tee_jee_file_system_dir_exists: assertion 'dir_path != NULL' failed)

I think because the bin path is /bin/timeshift, the following line

string base_path = file_parent(file_parent(file_parent(binpath)));
will returns null, hence triggering the errors. I've installed using the fedora system package.

System:

  • Linux Distribution Name and Version: Fedora 34
  • Desktop: Gnome
  • Application Version: v20.03

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants