Bug 441041

Summary: Recent nightly builds are slow and can lockup on Windows 10
Product: [Applications] krita Reporter: Ahab Greybeard <ahab.greybeard>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: halla, tamtamy.tymona
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ahab Greybeard 2021-08-16 13:27:07 UTC
SUMMARY
For the 5.0.0-prealpha .zip packages on Windows 10, the Aug 14 (git 0c88aa263e), Aug 15 (git afacd70a7a) and Aug 16 (git 5f53332c93) builds have serious slowlness in some areas and can be made to lock up.

For the 5.0.0-prealpha appimages on Debian 10, the Aug 13 (git e89467b), Aug 14 (git afacd70) and Aug 15 (git c98e3cb) show similar but much less serious slowness and can't be made to lock up.
The appimages are not slow with painting on the canvas.

This does not happen for previous nightly builds.

STEPS TO REPRODUCE
1. Run and create a new image.
2. Paint on the canvas with a preset that does not have a pattern
[Note: Finding and selecting a preset could be affected by the slow response which is shown in later Steps.]
3. Paint on the canvas with a preset that does have a pattern.
4. In the Layers docker, slide the side scroll bar handle up and down.
5. In the Layers docker Search box, quickly type the word "basic".
6. In the Preset History docker, select different presets quickly.
7. In the Layers docker, slide the side scroll bar handle up and down.

OBSERVED RESULT
2. Stroke production speed is normal.
3. Stroke production is very delayed.
4. The scroll bar handle moves after a notable delay.
5. It takes 5 seconds for the letters to appear, one at a time.
6. There is notable delay in the presets becoming selected.
7. There is a lockup which does not recover.

EXPECTED RESULT
The slow and delayed action should not happen.

SOFTWARE/OS VERSIONS
Krita

 Version: 5.0.0-prealpha (git 5f53332)
 Languages: en_US, en
 Hidpi: false

Qt

  Version (compiled): 5.12.11
  Version (loaded): 5.12.11

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.19043
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10

OpenGL Info
 
  Vendor:  "Google Inc." 
  Renderer:  "ANGLE (NVIDIA GeForce GTX 750 Ti Direct3D11 vs_5_0 ps_5_0)" 
  Version:  "OpenGL ES 3.0 (ANGLE 2.1.0.57ea533f79a7)" 
  Shading language:  "OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0.57ea533f79a7)" 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
  Current format:    QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
     Version: 3.0
     Supports deprecated functions false 
     is OpenGL ES: true 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsAngleD3D11: true 
  isQtPreferAngle: true 

Hardware Information

  GPU Acceleration: angle
  Memory: 16381 Mb
  Number of Cores: 8
  Swap Location: C:/Users/adminahab/AppData/Local/Temp
Comment 1 Halla Rempt 2021-08-16 13:38:54 UTC
I wonder whether this got fixed today by merging

commit 1fb0eb8ce1d94869a6ebdf87e83e53081f303914
Author: Mathias Wein <lynx.mw+kde@gmail.com>
Date:   Sun Aug 15 02:57:08 2021 +0200

    Don't search for occurrence of empty strings in resourceExists()
Comment 2 Ahab Greybeard 2021-08-16 13:56:07 UTC
I'll test and report later when that's been incorporated.
Comment 3 Tiar 2021-08-16 15:10:16 UTC
Can you please check if this isn't a duplicate of bug 440951? It has been solved today, so the fix should be in next nightly.
(If it is, just mark it as duplicate).
Comment 4 Ahab Greybeard 2021-08-16 17:51:24 UTC

*** This bug has been marked as a duplicate of bug 440951 ***