Jerky renderer jumping around erratically when scrolling

I’m having trouble using GIMP in Ubuntu when a painting region (where a user paints) in the window is not being redrawn correctly. Scrolling the image cause the problem. It happens when using all scrolling methods: drag scrollbars, spacebar + mouse drag, middle click + mouse drag, control key + middle mouse button + drag.

While moving the image around in the window, the rendered image is not repainted appropriately. The previous image buffer that renders the current image being edited should be cleared, and the new position of the image based on the position of the scrollbar should be rendered to take up the full width and height of the screen.

Reproduction steps:

  1. Create a new image
  2. Fill with black
  3. Draw with white using the ink tool
  4. Hold spacebar and reposition the image
  5. ERROR: the window region responsible for rendering the image is not redrawn correctly.

It actually jumps between the incorrect view (shown below) and the correct view of the image painting region after the scroll. The image appears to jerk “back and forth, forever”.

Gimp --version: GNU Image Manipulation Program version 2.10.30
Desktop window manager: i3
OS: uname -a Linux 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 GNU/Linux
Ubuntu Jammy 22.04.4 LTS

~$ free -h
               total        used        free      shared  buff/cache   available
Mem:            62Gi        12Gi       3.5Gi       340Mi        46Gi        48Gi
Swap:          2.0Gi       1.0Mi       2.0Gi
~$ uptime
 12:12:13 up 13 days, 9 min,  1 user,  load average: 0.40, 0.54, 0.57