Skip to content

sticky crashes on open #170

Closed
Closed

Description

@dimejaylen

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

  1. collinss commented on May 25, 2026

    @collinss
    Member

    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 to notes.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, deleting notes.json will result in you losing all of your information.

  2. added
    BugThis doesn't seem right
    questionFurther information is requested
    on May 25, 2026
  3. dimejaylen commented on Jun 1, 2026

    @dimejaylen
    Author

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis doesn't seem rightquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions