https://bugs.kde.org/show_bug.cgi?id=529273

            Bug ID: 529273
           Summary: Main window layer stops updating on Movinkpad 14 pro
                    (Android). Fixed by minimising. Appears tied to vsync
                    being off
    Classification: Applications
           Product: krita
      Version First 5.3.4.1
       Reported In:
          Platform: Android
                OS: Android 15.x
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: OpenGL Canvas
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 198776
  --> https://bugs.kde.org/attachment.cgi?id=198776&action=edit
Krita System Information (Help/Show system information for bug reports)

DESCRIPTION
On Android the main window stops redrawing or updating for the canvas, tools
and dockers. The main settings options in the header are unaffected and work as
normal including any window popups they make such as the configure krita menu. 

When minimising  (not closing) the app and reopening the window starts updating
again and the bug does not occur for the rest of the session. The screen
updating again shows that any actions done while frozen such as drawing are
applied, but the screen is not updated to show them, when the screen starts
updating again the changes are present on the canvas.

The issue appears to happen regardless of canvas size and settings. It occurs
on both 120hz and 60hz, however the bug has happened instantly on 60hz on every
attempt on 20 tries.

Compiling the same build with vsync turned on has fixed the bug as far as I can
tell. The minimising and reopening turns vsync back on which is likely fixing
the issue.
No changes to the graphics acceleration settings have stopped the bug occuring.

STEPS TO REPRODUCE
1. Set device to 60hz.
2. Launch krita, create a canvas, draw pan and zoom.
3. It could be intermittent with it happening within seconds or after several
minutes of use 
4. Once the window has stopped updating go to the device home menu to minimise
the app and open
5. The canvas should start updating as normal

OBSERVED RESULT
The canvas stops updating to drawing, movement and zooming. The toolbars and
dockers do not update visually. The main menu options in the header work as
normal and do not lag. Using USB debugging it showed that krita's main window
layer stopped receiving frames, androids frame counter for the main window
stops increasing and becomes stuck. 

Krita does not crash and android does not report it as unresponsive. 
Minimising (not closing) and opening causes it to work as normal again. Any
lines drawn on the canvas while frozen appear once it starts updating again
including with any changes to tools and dockers, so the lines appeared with
their correct brushes and colours that I attempted to change while frozen.

EXPECTED RESULT
The canvas keeps updating and I can draw and interact with tools and menus as
expected.

SOFTWARE/OS VERSIONS
Operating System: Android 15
KDE Frameworks Version: 5.101.0
Qt Version:  5.15.7

ADDITIONAL INFORMATION
Device: Wacom Movinkpad 14 pro (Europe DTHA140)
Processor: Qualcomm Snapdragon 8s Gen 3
GPU: Adreno 735
Graphics driver: OpenGL ES 3.2 [email protected]

On Android on starting the app vsync is turned off, on minimising (not closing)
and opening vsync gets turned back on and the bug does not occur the rest of
the session. I compiled a version of commit bd6e8d0 (5.3.4.1) as well as a
version of that commit with vsync turned on by default. The bug occurred on the
unchanged build with vsync off as described above, but I have not had it occur
on the build with vsync turned on so far on both 60hz and 120hz.

In my build without the bug, in libs/ui/opengl/kis_opengl.cpp I changed
format.setSwapInterval(0); // Disable vertical refresh syncing
to
format.setSwapInterval(1);
which forced vsync on regardless of the device to test it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to