Repository navigation
Description
sticky crashes and gives error message when run from command line
Traceback (most recent call last):
File "/usr/lib/sticky/sticky.py", line 695, in do_activate
self.file_handler = FileHandler(self.settings, self.dummy_window)
File "/usr/lib/sticky/common.py", line 49, in init
self.load_notes()
File "/usr/lib/sticky/common.py", line 57, in load_notes
info = json.loads(file.read())
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_lib_sticky_sticky.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/lib/sticky/sticky.py", line 695, in do_activate
self.file_handler = FileHandler(self.settings, self.dummy_window)
File "/usr/lib/sticky/common.py", line 49, in init
self.load_notes()
File "/usr/lib/sticky/common.py", line 57, in load_notes
info = json.loads(file.read())
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Activity
collinss commentedon May 25, 2026
It looks like maybe the file where the notes are stored became corrupted somehow. The file is
~/.config/sticky/notes.json. You can try to fix the file yourself with a text editor (if you know json), or else delete the file and then grab the backup with the highest number (these are found in the same folder) and rename it tonotes.json. Note: the second option could result in data loss as the backup may not contain the most recent changes. If you don't have any backups, deletingnotes.jsonwill result in you losing all of your information.dimejaylen commentedon Jun 1, 2026
Yeah, I realized looking through the code that it was all left in 'notes.json' so I must've deleted it accidentally. Doubly embarrassing as I forgot to close the issue when I found all this out, going to ask author to delete this issue to recover my pride. Thanks!