Package: khal
Version: 1:0.11.2-2
X-Debbugs-Cc: cacat...@tuxfamily.org

Hello dear maintainers,

I confirm I'm hit by this bug, which makes ikhal unusable:
https://github.com/pimutils/khal/issues/1329

Steps to reproduce :
- run ikhal
- try adding a new event, hit 'n' key

Result:
- crashes, and produces the error in attachment

Likely related bug:
https://github.com/pimutils/khal/issues/1330

I confirm this patch fixes the issue:
https://github.com/pimutils/khal/pull/1328/commits/ed5ce33d3c2012ee79e4c65b4aa4f9efe2e4fb42

I'm unsure it was worth to fill this bug since it's fixed upstream, but because of its severity I prefered to keep track of it.

Have a good day,

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-5-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages khal depends on:
ii  python3                3.11.6-1
ii  python3-atomicwrites   1.4.1-1
ii  python3-click          8.1.6-1
ii  python3-click-log      0.3.2-1
ii  python3-configobj      5.0.8-3
ii  python3-dateutil       2.8.2-3
ii  python3-icalendar      5.0.11-1
ii  python3-pkg-resources  68.1.2-2
ii  python3-tz             2023.3.post1-2
ii  python3-tzlocal        5.2-1
ii  python3-urwid          2.4.6-0.1
ii  python3-xdg            0.28-2

Versions of packages khal recommends:
pn  python3-setproctitle  <none>

Versions of packages khal suggests:
pn  bash-completion  <none>
pn  khal-doc         <none>

-- no debconf information
ikhal
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/khal/ui/__init__.py", line 1385, in 
start_pane
    loop.run()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 
343, in run
    self._run()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 
445, in _run
    self.event_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/select_loop.py", line 
182, in run
    self._loop()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/select_loop.py", line 
218, in _loop
    self._entering_idle()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/select_loop.py", line 
171, in _entering_idle
    callback()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 
652, in entering_idle
    self.draw_screen()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 
669, in draw_screen
    canvas = self._topmost_widget.render(self.screen_size, focus=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/popup.py", line 116, in 
render
    self._update_overlay(size, focus)
  File "/usr/lib/python3/dist-packages/urwid/widget/popup.py", line 89, in 
_update_overlay
    canv = self._original_widget.render(size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/frame.py", line 408, in 
render
    body = self.body.render((maxcol, maxrow - ftrim - htrim), focus and 
self.focus_part == "body")
           
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/columns.py", line 931, in 
render
    w.render(w_size, focus=focus and self.focus_position == i),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 780, in 
render
    canv = get_delegate(self).render(size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 780, in 
render
    canv = get_delegate(self).render(size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/listbox.py", line 556, in render
    canvas = widget.render((maxcol,))
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 780, in 
render
    canv = get_delegate(self).render(size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/pile.py", line 816, in 
render
    canv = w.render(w_size, focus=focus and item_focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/columns.py", line 931, in 
render
    w.render(w_size, focus=focus and self.focus_position == i),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 112, in 
cached_render
    canv = fn(self, size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 780, in 
render
    canv = get_delegate(self).render(size, focus=focus)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 113, in 
cached_render
    validate_size(self, size, canv)
  File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 92, in 
validate_size
    raise WidgetError(
urwid.widget.widget.WidgetError: Widget <Padding selectable fixed/flow widget 
<CalendarPopUp selectable flow widget <ValidatedEdit selectable flow widget>> 
right=1 width=11> rendered (11 x 1) canvas when passed size (10,)!

Reply via email to