Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLib-CRITICAL g_key_file_set_string: assertion 'string != NULL' failed #1975

Open
konomikitten opened this issue Jun 13, 2024 · 3 comments
Open

Comments

@konomikitten
Copy link

Profanity contains the following errors in ~/.local/share/profanity/logs/profanity.log

2024-06-13T18:31:02.839692+10: stderr: ERR:
2024-06-13T18:31:02.839766+10: stderr: ERR: (profanity:62979): GLib-CRITICAL **: 18:31:02.833: g_key_file_set_string: assertion 'string != NULL' failed

Environment

$ profanity -v
Profanity, version 0.14.0
Copyright (C) 2012 - 2019 James Booth <[email protected]>.
Copyright (C) 2019 - 2023 Michael Vetter <[email protected]>.
License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Build information:
XMPP library: libstrophe
Desktop notification support: Enabled
OTR support: Enabled (libotr 4.1.1)
PGP support: Enabled (libgpgme 1.18.0)
OMEMO support: Enabled
C plugins: Enabled
Python plugins: Enabled (3.11.9)
GTK icons/clipboard: Enabled
GDK Pixbuf: Enabled
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ dpkg-query --show --showformat='${binary:Package} ${Version}\n' profanity libstrophe0 libglib2.0-0t64
libglib2.0-0t64:amd64 2.80.3-1
libglib2.0-0t64:i386 2.80.3-1
libstrophe0:amd64 0.13.1-1
profanity 0.14.0-1+b2
@jubalh
Copy link
Member

jubalh commented Jun 14, 2024

Those glib messages can just be gibberish. Sometimes we want to insert nothing.

Do you know when this happened? Was there any setting not saved?

@konomikitten
Copy link
Author

I have no clue I know it occurs on both my desktop and laptop both are Debian Unstable.

@jubalh
Copy link
Member

jubalh commented Jun 14, 2024

Then I think there is nothing wrong here.
This just happens when you set a setting to nothing and we insert NULL. Probably a value ?: "" would be good to surpress this bogus message though.

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

No branches or pull requests

2 participants