b4 review crashes
Hi Konstantin,
Attempting to open a series while b4 review cron is running in the background I can repeatably get a backtrace on current git:
╭────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────╮
│ /home/broonie/git/b4/.venv/lib/python3.13/site-packages/textual/app.py:4082 in on_event │
│ │
│ 4079 │ │ │ │ │ │ # Shouldn't occur, since at the very least this will find the Sc │
│ 4080 │ │ │ │ │ │ self._mouse_down_widget = None │
│ 4081 │ │ │ │ │
│ ❱ 4082 │ │ │ │ self.screen._forward_event(event) │
│ 4083 │ │ │ │ │
│ 4084 │ │ │ │ # If a MouseUp occurs at the same widget as a MouseDown, then we should │
│ 4085 │ │ │ │ # consider it a click, and produce a Click event. │
│ │
│ ╭───────────────────────────────────────────── locals ─────────────────────────────────────────────╮ │
│ │ _ = Region(x=0, y=24, width=128, height=1) │ │
│ │ event = MouseDown(None, x=78, y=24, pointer_x=78.0, pointer_y=24.0, button=1) │ │
│ │ self = TrackingApp(title='b4 review', classes={'-dark-mode'}, pseudo_classes={'dark', 'focus'}) │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /home/broonie/git/b4/.venv/lib/python3.13/site-packages/textual/screen.py:1914 in _forward_event │
│ │
│ 1911 │ │ │ │ │ │ event.screen_offset, │
│ 1912 │ │ │ │ │ │ start=SelectStart( │
│ 1913 │ │ │ │ │ │ │ container, │
│ ❱ 1914 │ │ │ │ │ │ │ event.screen_offset - container.region.offset, │
│ 1915 │ │ │ │ │ │ │ container.region.offset, │
│ 1916 │ │ │ │ │ │ │ container.scroll_offset, │
│ 1917 │ │ │ │ │ │ │ content_widget=content_widget, │
│ │
│ ╭──────────────────────────────────────── locals ────────────────────────────────────────╮ │
│ │ container = None │ │
│ │ content_offset = Offset(x=0, y=0) │ │
│ │ content_widget = Label() │ │
│ │ event = MouseDown(None, x=78, y=24, pointer_x=78.0, pointer_y=24.0, button=1) │ │
│ │ select_offset = Offset(x=0, y=0) │ │
│ │ select_widget = Label() │ │
│ │ self = Screen(id='_default') │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────────╯ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯AttributeError: 'NoneType' object has no attribute 'region'
Thanks,
Mark
Quoted 4 lines · Mark Brown
Hi Konstantin,
Attempting to open a series while b4 review cron is running in the background I can repeatably get a backtrace on current git:
There is an attempted fix for this in the latest master.
Thanks,
-K
Quoted 7 lines · Konstantin Ryabitsev
Quoted 4 lines · Mark Brown
Hi Konstantin,
Attempting to open a series while b4 review cron is running in the background I can repeatably get a backtrace on current git:
There is an attempted fix for this in the latest master.
It seems to have at the very least helped a lot - I'm not seeing the issue with current code. Thanks!