pimutils / pimutils/khal

khal error message

Open
#1,445 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

I keep getting this when I try to open the interactive UI:

Traceback (most recent call last):
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/khal/ui/__init__.py", line 1494, in start_pane
    loop.run()
    ~~~~~~~~^^
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/urwid/event_loop/main_loop.py", line 337, in run
    self._run()
    ~~~~~~~~~^^
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/urwid/event_loop/main_loop.py", line 439, in _run
    self.event_loop.run()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/urwid/event_loop/select_loop.py", line 182, in run
    self._loop()
    ~~~~~~~~~~^^
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/urwid/event_loop/select_loop.py", line 224, in _loop
    alarm_callback()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/urwid/event_loop/main_loop.py", line 650, in entering_idle
    self.draw_screen()
    ~~~~~~~~~~~~~~~~^^
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/urwid/event_loop/main_loop.py", line 664, in draw_screen
    self.screen_size = self.screen.get_cols_rows()
                       ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/Cellar/khal/0.13.0/libexec/lib/python3.14/site-packages/urwid/display/_posix_raw_display.py", line 406, in get_cols_rows
    buf = fcntl.ioctl(self._term_output_file.fileno(), termios.TIOCGWINSZ, b" " * 4)
SystemError: buffer overflow

Anyone else getting this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by opening khal's interactive UI, then start at khal/ui/init.py around start_pane and follow the traceback into urwid's display code. Confirm the terminal conditions that trigger SystemError: buffer overflow and add a regression test or documented verification that the UI opens without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.