Bug 415891 - Project file loads perfectly fine in seconds in 4.2.7.1, never finishes loading in 4.2.8
Summary: Project file loads perfectly fine in seconds in 4.2.7.1, never finishes loadi...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.2.8
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords: regression, release_blocker
Depends on:
Blocks:
 
Reported: 2020-01-05 12:16 UTC by Tonja
Modified: 2020-02-19 10:12 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
An archive containing a Krita file illustrating the issue, and some picture files used as File Layers in the sample file (1.23 MB, application/gzip)
2020-01-05 12:16 UTC, Tonja
Details
System informations as shown by Krita 4.2.8 (46.65 KB, text/plain)
2020-01-05 16:59 UTC, Tonja
Details
Console content from running GDB (60.00 KB, text/plain)
2020-01-05 19:04 UTC, Tonja
Details
Help sysinfo text ahab-1 (19.10 KB, text/plain)
2020-01-05 20:59 UTC, Ahab Greybeard
Details
Trace after interrumpting loading document. (16.59 KB, text/plain)
2020-02-14 03:35 UTC, vanyossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tonja 2020-01-05 12:16:40 UTC
Created attachment 124902 [details]
An archive containing a Krita file illustrating the issue, and some picture files used as File Layers in the sample file

SUMMARY
A particular project file authored in Krita 4.1.7 (appimage) can't be opened in Krita 4.2.8 (appimage). Krita 4.2.8 will use a full CPU core for a seemingly infinite amount of time, not showing any error message in console, and never exit this state of loading the file (needs to be killed with CTRL+C)

Tested on a Thinkpad x230 (Intel I5 2th gen, 16GB memory)

STEPS TO REPRODUCE
1. Unpack the NoLoadTest.tar.gz archive. Open the file 41/NoLoadTest.kra with Krita 4.1.7 ; it should work fine, showing a Lorem Ipsum text on a yellow and blue background.
2. Now open the same file with Krita 4.2.8. Wait for a very long time, maybe hours, without any progress in sight. 
3. It seems like removing anything from the sample file (a File layer, the Fill layer,...) will solve the issue. Only the file as a whole seems to trigger the issue.

OBSERVED RESULT
File doesn't open, doesn't show the text on the colored background, Krita 4.2.8 can't even be properly exited

EXPECTED RESULT
File opens, ready to be worked on

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Linux Parabola
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Tonja 2020-01-05 12:23:35 UTC
"it should work fine, showing a Lorem Ipsum text on a yellow and blue background."

Turned into a sky blue background for making the archive <4mb ; omitted to update description
Comment 2 Shlomi Fish 2020-01-05 12:53:47 UTC
Can confirm here on Mageia Linux v8 x86-64.
Comment 3 Tiar 2020-01-05 15:57:07 UTC
@Tonja and @Shlomi Fish please include your Help -> Show system information for bug reports. Save the content as text file and attach here, you can add just the system information as comment as well so it's easier accessible.

I *cannot* reproduce it on Linux Mint with appimage. My System information:

Krita

 Version: 4.2.8
 Languages: en_US
 Hidpi: true

Qt

  Version (compiled): 5.12.5
  Version (loaded): 5.12.5

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.3.7-050307-generic
  Pretty Productname: Linux Mint 19.2
  Product Type: linuxmint
  Product Version: 19.2

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) Iris(R) Plus Graphics (Ice Lake 8x8 GT2) " 
  Version:  "3.0 Mesa 19.0.8" 
  Shading language:  "1.30" 
  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>(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::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

Hardware Information

  GPU Acceleration: auto
  Memory: 15633 Mb
  Number of Cores: 8
  Swap Location: /tmp

Current Settings

	Current Swap Location: /tmp
	Undo Enabled: 1
	Undo Stack Limit: 30
	Use OpenGL: 1
	Use OpenGL Texture Buffer: 1
	Use AMD Vectorization Workaround: 0
	Canvas State: OPENGL_SUCCESS
	Autosave Interval: 180
	Use Backup Files: 1
	Number of Backups Kept: 1
	Backup File Suffix: ~
	Backup Location: Same Folder as the File
	Use Win8 Pointer Input: 0
	Use RightMiddleTabletButton Workaround: 0
	Levels of Detail Enabled: 1
	Use Zip64: 0
Comment 4 Tonja 2020-01-05 16:59:04 UTC
Created attachment 124911 [details]
System informations as shown by Krita 4.2.8

Here are my system informations
Comment 5 Shlomi Fish 2020-01-05 17:10:39 UTC
(In reply to Tonja from comment #4)
> Created attachment 124911 [details]
> System informations as shown by Krita 4.2.8
> 
> Here are my system informations

My system info:

================================================================================
SESSION: 14 Dec 2019 13:12:34 +0200. Executing krita ./article-css-borders.png

WARNING: This file contains information about your system and the
images you have been working with.

If you have problems with Krita, the Krita developers might ask
you to share this file with them. The information in this file is
not shared automatically with the Krita developers in any way. You
can disable logging to this file in Krita's Configure Krita Dialogue.

Please review the contents of this file before sharing this file with
anyone.

Krita

 Version: 4.2.8
 Languages: en_GB, en
 Hidpi: true

Qt

  Version (compiled): 5.13.1
  Version (loaded): 5.13.1

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.3-desktop-1.mga8
  Pretty Productname: Mageia 8
  Product Type: mageia
  Product Version: 8

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) Sandybridge Desktop " 
  Version:  "3.0 Mesa 19.3.0" 
  Shading language:  "1.30" 
  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>(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::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

Hardware Information

  GPU Acceleration: auto
  Memory: 7871 Mb
  Number of Cores: 4
  Swap Location: /tmp

Current Settings

	Current Swap Location: /tmp
	Undo Enabled: 1
	Undo Stack Limit: 30
	Use OpenGL: 1
	Use OpenGL Texture Buffer: 1
	Use AMD Vectorization Workaround: 0
	Canvas State: OPENGL_NOT_TRIED
	Autosave Interval: 900
	Use Backup Files: 1
	Number of Backups Kept: 1
	Backup File Suffix: ~
	Backup Location: Same Folder as the File
	Use Win8 Pointer Input: 0
	Use RightMiddleTabletButton Workaround: 0
	Levels of Detail Enabled: 0
	Use Zip64: 0


14 Dec 2019 13:12:49 +0200: Importing image/png to application/x-krita. Location: /home/shlomif/./article-css-borders.png. Real location: /home/shlomif/./article-css-borders.png. Batchmode: 0
14 Dec 2019 13:12:49 +0200: Loaded image from image/png. Size: 1920 * 1050 pixels, 1.3335 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2
14 Dec 2019 13:17:24 +0200: Saving Document /home/shlomif/./article-css-borders.png as /home/shlomif/article-css-borders--w-hilight.png (mime: image/png). 1920 * 1050 pixels, 2 layers.  101 frames, 24 framerate. Export configuration: No configuration
14 Dec 2019 13:17:27 +0200: Converting from application/x-krita to image/png. Location: /home/shlomif/article-css-borders--w-hilight.png. Real location: /home/shlomif/article-css-borders--w-hilight.png. Batchmode: 0. Configuration: <!DOCTYPE params>
<params>
 <param name="alpha" type="internal">true</param>
 <param name="compression" type="internal">3</param>
 <param name="forceSRGB" type="internal">true</param>
 <param name="indexed" type="internal">false</param>
 <param name="interlaced" type="internal">false</param>
 <param name="saveAsHDR" type="internal">false</param>
 <param name="saveSRGBProfile" type="internal">false</param>
 <param name="storeAuthor" type="internal">false</param>
 <param name="storeMetaData" type="internal">false</param>
 <param name="transparencyFillcolor" type="color"><![CDATA[<!DOCTYPE color>
<color>
 <RGB r="1" b="1" space="sRGB-elle-V2-g10.icc" g="1"/>
</color>
]]></param>
</params>

14 Dec 2019 13:17:28 +0200: Completed saving /home/shlomif/article-css-borders--w-hilight.png (mime: image/png). Result: OK. Size: 820615. MD5 Hash: 14eb1bd3d2fc2c35883e862c10c46d26
14 Dec 2019 13:17:31 +0200: CLOSING SESSION

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 05 Jan 2020 14:47:20 +0200. Executing krita ./NoLoadSample.kra

WARNING: This file contains information about your system and the
images you have been working with.

If you have problems with Krita, the Krita developers might ask
you to share this file with them. The information in this file is
not shared automatically with the Krita developers in any way. You
can disable logging to this file in Krita's Configure Krita Dialogue.

Please review the contents of this file before sharing this file with
anyone.

Krita

 Version: 4.2.8
 Languages: en_GB, en
 Hidpi: true

Qt

  Version (compiled): 5.13.1
  Version (loaded): 5.13.1

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.8-desktop-1.mga8
  Pretty Productname: Mageia 8
  Product Type: mageia
  Product Version: 8

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) Sandybridge Desktop " 
  Version:  "3.0 Mesa 19.3.1" 
  Shading language:  "1.30" 
  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>(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::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

Hardware Information

  GPU Acceleration: auto
  Memory: 7871 Mb
  Number of Cores: 4
  Swap Location: /tmp

Current Settings

	Current Swap Location: /tmp
	Undo Enabled: 1
	Undo Stack Limit: 30
	Use OpenGL: 1
	Use OpenGL Texture Buffer: 1
	Use AMD Vectorization Workaround: 0
	Canvas State: OPENGL_SUCCESS
	Autosave Interval: 900
	Use Backup Files: 1
	Number of Backups Kept: 1
	Backup File Suffix: ~
	Backup Location: Same Folder as the File
	Use Win8 Pointer Input: 0
	Use RightMiddleTabletButton Workaround: 0
	Levels of Detail Enabled: 0
	Use Zip64: 0


05 Jan 2020 14:47:35 +0200: Importing application/x-krita to application/x-krita. Location: /home/shlomif/tmp/krita/NoLoadTest/./NoLoadSample.kra. Real location: /home/shlomif/tmp/krita/NoLoadTest/./NoLoadSample.kra. Batchmode: 0
05 Jan 2020 14:47:35 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_1160804247.exr. Real location: /tmp/krita_file_layer_copy_10919_1160804247.exr. Batchmode: 0
05 Jan 2020 14:47:36 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 14:47:36 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_1038489413.exr. Real location: /tmp/krita_file_layer_copy_10919_1038489413.exr. Batchmode: 0
05 Jan 2020 14:47:36 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 14:47:36 +0200: Importing image/png to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_211683002.png. Real location: /tmp/krita_file_layer_copy_10919_211683002.png. Batchmode: 0
05 Jan 2020 14:47:37 +0200: Loaded image from image/png. Size: 3040 * 2512 pixels, 4.16665 dpi. Color model: 8-bit integer/channel Greyscale/Alpha (gray built-in). Layers: 2
05 Jan 2020 14:47:37 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_422997116.exr. Real location: /tmp/krita_file_layer_copy_10919_422997116.exr. Batchmode: 0
05 Jan 2020 14:47:37 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 14:47:37 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_219270760.exr. Real location: /tmp/krita_file_layer_copy_10919_219270760.exr. Batchmode: 0
05 Jan 2020 14:47:38 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 14:47:38 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_1619443544.exr. Real location: /tmp/krita_file_layer_copy_10919_1619443544.exr. Batchmode: 0
05 Jan 2020 14:47:39 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 14:47:39 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_1607077977.exr. Real location: /tmp/krita_file_layer_copy_10919_1607077977.exr. Batchmode: 0
05 Jan 2020 14:47:39 +0200: Loaded image from application/x-extension-exr. Size: 128 * 128 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 14:47:39 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_1709247186.exr. Real location: /tmp/krita_file_layer_copy_10919_1709247186.exr. Batchmode: 0
05 Jan 2020 14:47:39 +0200: Loaded image from application/x-extension-exr. Size: 128 * 128 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 14:47:39 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_10919_749197666.exr. Real location: /tmp/krita_file_layer_copy_10919_749197666.exr. Batchmode: 0
05 Jan 2020 14:47:39 +0200: Loaded image from application/x-extension-exr. Size: 128 * 128 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 05 Jan 2020 14:49:56 +0200. Executing krita

WARNING: This file contains information about your system and the
images you have been working with.

If you have problems with Krita, the Krita developers might ask
you to share this file with them. The information in this file is
not shared automatically with the Krita developers in any way. You
can disable logging to this file in Krita's Configure Krita Dialogue.

Please review the contents of this file before sharing this file with
anyone.

Krita

 Version: 4.2.8
 Languages: en_GB, en
 Hidpi: true

Qt

  Version (compiled): 5.13.1
  Version (loaded): 5.13.1

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.8-desktop-1.mga8
  Pretty Productname: Mageia 8
  Product Type: mageia
  Product Version: 8

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) Sandybridge Desktop " 
  Version:  "3.0 Mesa 19.3.1" 
  Shading language:  "1.30" 
  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>(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::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

Hardware Information

  GPU Acceleration: auto
  Memory: 7871 Mb
  Number of Cores: 4
  Swap Location: /tmp

Current Settings

	Current Swap Location: /tmp
	Undo Enabled: 1
	Undo Stack Limit: 30
	Use OpenGL: 1
	Use OpenGL Texture Buffer: 1
	Use AMD Vectorization Workaround: 0
	Canvas State: OPENGL_SUCCESS
	Autosave Interval: 900
	Use Backup Files: 1
	Number of Backups Kept: 1
	Backup File Suffix: ~
	Backup Location: Same Folder as the File
	Use Win8 Pointer Input: 0
	Use RightMiddleTabletButton Workaround: 0
	Levels of Detail Enabled: 0
	Use Zip64: 0


05 Jan 2020 14:50:57 +0200: Importing image/jpeg to application/x-krita. Location: /home/shlomif/Docs/Images/Photos/kpat/kpat-solving-1941.jpg. Real location: /home/shlomif/Docs/Images/Photos/kpat/kpat-solving-1941.jpg. Batchmode: 0
05 Jan 2020 14:50:57 +0200: Loaded image from image/jpeg. Size: 1024 * 768 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2
05 Jan 2020 14:51:46 +0200: CLOSING SESSION

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 05 Jan 2020 14:52:02 +0200. Executing krita

WARNING: This file contains information about your system and the
images you have been working with.

If you have problems with Krita, the Krita developers might ask
you to share this file with them. The information in this file is
not shared automatically with the Krita developers in any way. You
can disable logging to this file in Krita's Configure Krita Dialogue.

Please review the contents of this file before sharing this file with
anyone.

Krita

 Version: 4.2.8
 Languages: en_GB, en
 Hidpi: true

Qt

  Version (compiled): 5.13.1
  Version (loaded): 5.13.1

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.8-desktop-1.mga8
  Pretty Productname: Mageia 8
  Product Type: mageia
  Product Version: 8

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) Sandybridge Desktop " 
  Version:  "3.0 Mesa 19.3.1" 
  Shading language:  "1.30" 
  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>(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::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

Hardware Information

  GPU Acceleration: auto
  Memory: 7871 Mb
  Number of Cores: 4
  Swap Location: /tmp

Current Settings

	Current Swap Location: /tmp
	Undo Enabled: 1
	Undo Stack Limit: 30
	Use OpenGL: 1
	Use OpenGL Texture Buffer: 1
	Use AMD Vectorization Workaround: 0
	Canvas State: OPENGL_SUCCESS
	Autosave Interval: 900
	Use Backup Files: 1
	Number of Backups Kept: 1
	Backup File Suffix: ~
	Backup Location: Same Folder as the File
	Use Win8 Pointer Input: 0
	Use RightMiddleTabletButton Workaround: 0
	Levels of Detail Enabled: 0
	Use Zip64: 0


05 Jan 2020 14:52:33 +0200: Importing image/jpeg to application/x-krita. Location: /home/shlomif/Docs/Images/Photos/kpat/kpat-solving-1941.jpg. Real location: /home/shlomif/Docs/Images/Photos/kpat/kpat-solving-1941.jpg. Batchmode: 0
05 Jan 2020 14:52:33 +0200: Loaded image from image/jpeg. Size: 1024 * 768 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2
05 Jan 2020 14:52:40 +0200: CLOSING SESSION

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 05 Jan 2020 19:07:10 +0200. Executing krita NoLoadSample.kra

WARNING: This file contains information about your system and the
images you have been working with.

If you have problems with Krita, the Krita developers might ask
you to share this file with them. The information in this file is
not shared automatically with the Krita developers in any way. You
can disable logging to this file in Krita's Configure Krita Dialogue.

Please review the contents of this file before sharing this file with
anyone.

Krita

 Version: 4.2.8
 Languages: en_GB, en
 Hidpi: true

Qt

  Version (compiled): 5.13.1
  Version (loaded): 5.13.1

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.8-desktop-1.mga8
  Pretty Productname: Mageia 8
  Product Type: mageia
  Product Version: 8

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) Sandybridge Desktop " 
  Version:  "3.0 Mesa 19.3.1" 
  Shading language:  "1.30" 
  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>(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::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

Hardware Information

  GPU Acceleration: auto
  Memory: 7871 Mb
  Number of Cores: 4
  Swap Location: /tmp

Current Settings

	Current Swap Location: /tmp
	Undo Enabled: 1
	Undo Stack Limit: 30
	Use OpenGL: 1
	Use OpenGL Texture Buffer: 1
	Use AMD Vectorization Workaround: 0
	Canvas State: OPENGL_SUCCESS
	Autosave Interval: 900
	Use Backup Files: 1
	Number of Backups Kept: 1
	Backup File Suffix: ~
	Backup Location: Same Folder as the File
	Use Win8 Pointer Input: 0
	Use RightMiddleTabletButton Workaround: 0
	Levels of Detail Enabled: 0
	Use Zip64: 0


05 Jan 2020 19:07:21 +0200: Importing application/x-krita to application/x-krita. Location: /home/shlomif/tmp/krita/NoLoadTest/NoLoadSample.kra. Real location: /home/shlomif/tmp/krita/NoLoadTest/NoLoadSample.kra. Batchmode: 0
05 Jan 2020 19:07:22 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_2082920207.exr. Real location: /tmp/krita_file_layer_copy_31341_2082920207.exr. Batchmode: 0
05 Jan 2020 19:07:22 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 19:07:22 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_1604443204.exr. Real location: /tmp/krita_file_layer_copy_31341_1604443204.exr. Batchmode: 0
05 Jan 2020 19:07:23 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 19:07:23 +0200: Importing image/png to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_1227654876.png. Real location: /tmp/krita_file_layer_copy_31341_1227654876.png. Batchmode: 0
05 Jan 2020 19:07:23 +0200: Loaded image from image/png. Size: 3040 * 2512 pixels, 4.16665 dpi. Color model: 8-bit integer/channel Greyscale/Alpha (gray built-in). Layers: 2
05 Jan 2020 19:07:23 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_317280431.exr. Real location: /tmp/krita_file_layer_copy_31341_317280431.exr. Batchmode: 0
05 Jan 2020 19:07:24 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 19:07:24 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_1737798044.exr. Real location: /tmp/krita_file_layer_copy_31341_1737798044.exr. Batchmode: 0
05 Jan 2020 19:07:24 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 19:07:24 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_243162810.exr. Real location: /tmp/krita_file_layer_copy_31341_243162810.exr. Batchmode: 0
05 Jan 2020 19:07:25 +0200: Loaded image from application/x-extension-exr. Size: 3040 * 2512 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 19:07:25 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_1713870655.exr. Real location: /tmp/krita_file_layer_copy_31341_1713870655.exr. Batchmode: 0
05 Jan 2020 19:07:25 +0200: Loaded image from application/x-extension-exr. Size: 128 * 128 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 19:07:25 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_590370477.exr. Real location: /tmp/krita_file_layer_copy_31341_590370477.exr. Batchmode: 0
05 Jan 2020 19:07:25 +0200: Loaded image from application/x-extension-exr. Size: 128 * 128 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2
05 Jan 2020 19:07:25 +0200: Importing application/x-extension-exr to application/x-krita. Location: /tmp/krita_file_layer_copy_31341_665299577.exr. Real location: /tmp/krita_file_layer_copy_31341_665299577.exr. Batchmode: 0
05 Jan 2020 19:07:25 +0200: Loaded image from application/x-extension-exr. Size: 128 * 128 pixels, 1 dpi. Color model: 16-bit float/channel RGB/Alpha (sRGB-elle-V2-g10.icc). Layers: 2

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 05 Jan 2020 19:08:09 +0200. Executing krita

WARNING: This file contains information about your system and the
images you have been working with.

If you have problems with Krita, the Krita developers might ask
you to share this file with them. The information in this file is
not shared automatically with the Krita developers in any way. You
can disable logging to this file in Krita's Configure Krita Dialogue.

Please review the contents of this file before sharing this file with
anyone.

Krita

 Version: 4.2.8
 Languages: en_GB, en
 Hidpi: true

Qt

  Version (compiled): 5.13.1
  Version (loaded): 5.13.1

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.8-desktop-1.mga8
  Pretty Productname: Mageia 8
  Product Type: mageia
  Product Version: 8

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) Sandybridge Desktop " 
  Version:  "3.0 Mesa 19.3.1" 
  Shading language:  "1.30" 
  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>(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::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

Hardware Information

  GPU Acceleration: auto
  Memory: 7871 Mb
  Number of Cores: 4
  Swap Location: /tmp

Current Settings

	Current Swap Location: /tmp
	Undo Enabled: 1
	Undo Stack Limit: 30
	Use OpenGL: 1
	Use OpenGL Texture Buffer: 1
	Use AMD Vectorization Workaround: 0
	Canvas State: OPENGL_SUCCESS
	Autosave Interval: 900
	Use Backup Files: 1
	Number of Backups Kept: 1
	Backup File Suffix: ~
	Backup Location: Same Folder as the File
	Use Win8 Pointer Input: 0
	Use RightMiddleTabletButton Workaround: 0
	Levels of Detail Enabled: 0
	Use Zip64: 0
Comment 6 Tiar 2020-01-05 17:19:26 UTC
@Tanja can you please also try this:
- $ gdb [path to appimage]
- $ run
- $ [open the file in Krita]
- ctrl+C [after it freezes/takes all the CPU etc.]
- $ thread apply all bt
and save the content as text file and attach here? make sure you copied the whole output; it might ask you to press enter a few times.

Also I noticed you have this file on /mnt/ramdisk, have you tried using a standard hard drive for this? If it works there it might give us a clue...

@Shlomi Fish - and you have it on /tmp, can you try using a standard partition/location as well?

Of course if it freezes on /tmp I guess it should be fixed as well, but it would be good to know what is it that is different between systems it freezes on and those that it doesn't (Lynx3d on irc also said they can't reproduce it).
Comment 7 Shlomi Fish 2020-01-05 18:18:33 UTC
(In reply to Tymond from comment #6)
> 
> @Shlomi Fish - and you have it on /tmp, can you try using a standard
> partition/location as well?
>

That was not "/tmp" but rather "$HOME/tmp" and the same symptoms happened after I unpacked it in  "/home/shlomif/Download/NoLoadTest" as well and ran krita there.

thanks!
 
> Of course if it freezes on /tmp I guess it should be fixed as well, but it
> would be good to know what is it that is different between systems it
> freezes on and those that it doesn't (Lynx3d on irc also said they can't
> reproduce it).
Comment 8 Tonja 2020-01-05 19:04:32 UTC
Created attachment 124912 [details]
Console content from running GDB
Comment 9 Tonja 2020-01-05 19:07:31 UTC
(In reply to Tymond from comment #6)
> @Tanja can you please also try this:
> - $ gdb [path to appimage]
> - $ run
> - $ [open the file in Krita]
> - ctrl+C [after it freezes/takes all the CPU etc.]
> - $ thread apply all bt
> and save the content as text file and attach here? make sure you copied the
> whole output; it might ask you to press enter a few times.
> 
> Also I noticed you have this file on /mnt/ramdisk, have you tried using a
> standard hard drive for this? If it works there it might give us a clue...
> 
> @Shlomi Fish - and you have it on /tmp, can you try using a standard
> partition/location as well?
> 
> Of course if it freezes on /tmp I guess it should be fixed as well, but it
> would be good to know what is it that is different between systems it
> freezes on and those that it doesn't (Lynx3d on irc also said they can't
> reproduce it).

Thanks for your answer, here is the output ; a bit cropped at the top but it's regular error messages I get anyway. All of $ thread apply all bt command is present.

Using a regular folder (home folder) didn't solved the problem
Comment 10 Ahab Greybeard 2020-01-05 20:40:36 UTC
For me, opening NoLoadSample.kra with version 4.2.8 locks up and has to be killed.

If I rename the Fragments folder as X-Fragments, krita tells me it can't find various files for the file layers and asks if I want to locate them manually.

If I locate them manually, in X-Fragments, they all load fine and all works well, or seems to.

If I then Save the file as a different name and try to open it, it locks up again. Then I can rename X-Fragments as Y-Fragments and do manual locating again.

Is this a problem with .exr files?
Comment 11 Ahab Greybeard 2020-01-05 20:59:04 UTC
Created attachment 124914 [details]
Help sysinfo text ahab-1

I forgot to add this.

This is where I manually located the Fragments files and then Saved as a new name.
Comment 12 Tiar 2020-01-06 18:24:52 UTC
Does it open fine in 4.2.7? If not, does it open fine in 4.2.0? If yes, which is the oldest version that can open it fine?
Comment 13 Ahab Greybeard 2020-01-06 19:33:15 UTC
It opens fine in 4.2.7.1 (and 4.2.6) showing just the sky blue background as noted in Comment 1.

It may be a good idea to provide the orignal multicoloured background file, maybe via a personal Dropbox or file sharing website.

The image is RGB/Alpha (16-bit float/channel) scRGB (linear)
Comment 14 Tonja 2020-01-06 19:44:23 UTC
(In reply to Tymond from comment #12)
> Does it open fine in 4.2.7? If not, does it open fine in 4.2.0? If yes,
> which is the oldest version that can open it fine?

Can confirm it opens fine in 4.2.7.1 (this one https://download.kde.org/stable/krita/4.2.7.1/krita-4.2.7.1b-x86_64.appimage )

And it doesn't open in one of the last nightly build, 4.3.0-prealpha-1464bed
Comment 15 Tonja 2020-01-06 19:52:37 UTC
(In reply to Ahab Greybeard from comment #13)
> It opens fine in 4.2.7.1 (and 4.2.6) showing just the sky blue background as
> noted in Comment 1.
> 
> It may be a good idea to provide the orignal multicoloured background file,
> maybe via a personal Dropbox or file sharing website.
> 
> The image is RGB/Alpha (16-bit float/channel) scRGB (linear)

Here are the original backgrounds (just replace the files) : https://we.tl/t-9Sbb2nmIlw

But it doesn't seems to change anything here...
Comment 16 Ahab Greybeard 2020-01-06 20:13:25 UTC
@Tonja re. Comment 15:
Thank you for that, I just wanted to check. They open fine in 4.2.7.1
Comment 17 Shlomi Fish 2020-01-06 20:28:13 UTC
(In reply to Tonja from comment #14)
> (In reply to Tymond from comment #12)
> > Does it open fine in 4.2.7? If not, does it open fine in 4.2.0? If yes,
> > which is the oldest version that can open it fine?
> 
> Can confirm it opens fine in 4.2.7.1 (this one
> https://download.kde.org/stable/krita/4.2.7.1/krita-4.2.7.1b-x86_64.appimage
> )
> 
> And it doesn't open in one of the last nightly build, 4.3.0-prealpha-1464bed

It opens fine using the 4.2.7.1b-x86_64.appimage here too (mageia 8 x64).
Comment 18 Halla Rempt 2020-01-07 14:51:36 UTC
Hm, I can load the file fine. I notice that both Ahab and Tonja have an en_GB locale. Let's see whether that's relevant.
Comment 19 Halla Rempt 2020-01-07 14:52:55 UTC
No, that wasn't it... I've tested with the 4.2.8 appimage and with current master.
Comment 20 Tonja 2020-01-07 23:52:01 UTC
(In reply to Boudewijn Rempt from comment #19)
> No, that wasn't it... I've tested with the 4.2.8 appimage and with current
> master.

I had issues compiling the project from source recently, but maybe it could be worth giving it another try... would trying to open this file in a debug version be useful for investigating the problem, maybe by displaying more error messages?
Comment 21 Halla Rempt 2020-01-08 09:06:52 UTC
The debug output should be the same, and the backtrace is fairly clear. It's just that I cannot reproduce it :-(
Comment 22 Tonja 2020-01-08 21:42:29 UTC
(In reply to Boudewijn Rempt from comment #21)
> The debug output should be the same, and the backtrace is fairly clear. It's
> just that I cannot reproduce it :-(

That's weird... I have it everywhere here ( = on the mentioned x230, but also on a older x200, Intel core 2 duo from maybe 2009, but the OS is almost exactly the same)

Command line mode for trying to export the sample file into a PNG gets stuck the same way too.

Will try with a regular Debian live CD in the following days to see if it makes a difference
Comment 23 Tonja 2020-01-09 20:07:30 UTC
(In reply to Boudewijn Rempt from comment #21)
> The debug output should be the same, and the backtrace is fairly clear. It's
> just that I cannot reproduce it :-(

Just checked with last debian Live CD, and it makes no difference, still can't load. Also can't either when OpenGL is disabled in Krita settings. Wonder if it could be some hardware incompatibility...?

These are old Intel CPUs. I'll try the Live CD on an AMD-based platform if I can get one.
Comment 24 vanyossi 2020-01-09 20:57:45 UTC
I can reproduce this bug.

It is an infinite wait trying to process all events. I still don't know why it happens but I can at least get out of the waiting by changing the call in kis_file_layer.cpp:70 calls reloadImage() -> fileChangedCompressed(true) to false, which makes the image load normally
Comment 25 vanyossi 2020-01-10 20:05:15 UTC
Bug introduced by

commit 2d98dc83db71eba0f8775604ee75d049da505c20 (HEAD)
Author: Dmitry Kazakov <dimula73@gmail.com>
Date:   Wed Sep 11 20:13:33 2019 +0300

    Implement undoable and thread-safe Assign Profile functionality
    
    The patch basically implements KisAssignProfileProcessingVisitor
    which assigns a profile using strokes framework.
    
    The action is also undoable now.
Comment 26 Dmitry Kazakov 2020-01-31 14:43:38 UTC
I'll take this bug
Comment 27 Dmitry Kazakov 2020-02-13 11:10:56 UTC
Hi, Tonja!

Could you please check the latest nightly build? I think I have fixed this bug in this commit: https://invent.kde.org/kde/krita/commit/45fa9fb936bb00faa75865b8663d20bbb0785ea3

Here is a link for packages:
https://binary-factory.kde.org/job/Krita_Nightly_Appimage_Build/
Comment 28 Dmitry Kazakov 2020-02-13 12:16:15 UTC
Ah, wait, the bug is in 4.2, not in master :)
Comment 29 Dmitry Kazakov 2020-02-13 12:42:52 UTC
The bug is still reproducible in 4.2 branch
Comment 30 vanyossi 2020-02-14 03:35:27 UTC
Created attachment 125999 [details]
Trace after interrumpting loading document.

Im getting almost the same behaviour in master. The only difference now is that the waiting bar "Waiting for image operation to complete" is now displayed. However it never ends loading.

I interrupted execution and attached the backtrace.
Comment 31 Tonja 2020-02-14 21:05:44 UTC
(In reply to Dmitry Kazakov from comment #27)
> Hi, Tonja!
> 
> Could you please check the latest nightly build? I think I have fixed this
> bug in this commit:
> https://invent.kde.org/kde/krita/commit/
> 45fa9fb936bb00faa75865b8663d20bbb0785ea3
> 
> Here is a link for packages:
> https://binary-factory.kde.org/job/Krita_Nightly_Appimage_Build/

Hi! Thanks for your work ; however, I can only confirm that today's nightly build (a6d06f8) still has the issue... With the waiting operation pop-up, as Vanyossi mentioned
Comment 32 Shlomi Fish 2020-02-16 08:41:42 UTC
The bug still happens with krita-4.2.8.2-2.mga8 on mageia x86-64 v8.
Comment 33 Halla Rempt 2020-02-16 12:00:19 UTC
I doubt that a mageia build has the patches; better test with the nightly stable appimage.
Comment 34 Shlomi Fish 2020-02-16 13:12:54 UTC
(In reply to Boudewijn Rempt from comment #33)
> I doubt that a mageia build has the patches; better test with the nightly
> stable appimage.

It happens with the prealpha appimage from https://binary-factory.kde.org/job/Krita_Nightly_Appimage_Build/lastStableBuild/ too. Checked now (mageia v8 x86-64).
Comment 35 Dmitry Kazakov 2020-02-16 13:33:29 UTC
Git commit a2276890fa0e2d32535e98796ef6b6ec1f906bf8 by Dmitry Kazakov.
Committed on 14/02/2020 at 14:13.
Pushed by rempt into branch 'krita/4.2'.

Fix hangup when loaging image with generator/file layers

When loading layers we shouldn't "block" updates, we shoudl just drop them.
When loading is finished, KisImage::initialRefreshGraph() will be called
anyway, and the projections will become initialized.

To implement proper dropping of the updates I had to (finally) implement
nested projection updates filters. Before the patch, there could be only
one filter installed. Now they can be stacked in a nested way. What is
more the caller now gets a special ticket ("cookie") for the installed
filter, so the system can catch interleaved/non-nested filter handling,
which is prohibited.

M  +52   -23   libs/image/kis_image.cc
M  +43   -6    libs/image/kis_image.h
M  +4    -2    libs/image/kis_image_interfaces.h
M  +3    -2    libs/image/kis_projection_updates_filter.h
M  +9    -5    libs/image/kis_regenerate_frame_stroke_strategy.cpp
M  +4    -2    libs/image/kis_stroke_strategy_factory.h
M  +6    -11   libs/image/kis_strokes_queue.cpp
M  +1    -2    libs/image/kis_strokes_queue.h
M  +29   -17   libs/image/kis_suspend_projection_updates_stroke_strategy.cpp
M  +8    -2    libs/image/kis_suspend_projection_updates_stroke_strategy.h
M  +1    -0    libs/image/kis_types.h
M  +2    -7    libs/image/kis_update_scheduler.cpp
M  +3    -8    libs/image/kis_update_scheduler.h
M  +8    -8    libs/image/tests/kis_strokes_queue_test.cpp
M  +3    -1    libs/ui/KisDocument.cpp
M  +0    -14   libs/ui/tool/strokes/kis_filter_stroke_strategy.cpp
M  +2    -2    plugins/impex/kra/kra_converter.cpp

https://invent.kde.org/kde/krita/commit/a2276890fa0e2d32535e98796ef6b6ec1f906bf8
Comment 36 Halla Rempt 2020-02-16 13:45:46 UTC
I'll kick off builds.
Comment 37 Dmitry Kazakov 2020-02-17 07:49:05 UTC
Hi, Tonja!

Could you please check this AppImage package? Does it fix the problem for you?
https://binary-factory.kde.org/job/Krita_Stable_Appimage_Build/651/
Comment 38 Shlomi Fish 2020-02-17 09:06:04 UTC
(In reply to Dmitry Kazakov from comment #37)
> Hi, Tonja!
> 
> Could you please check this AppImage package? Does it fix the problem for
> you?
> https://binary-factory.kde.org/job/Krita_Stable_Appimage_Build/651/

Just for the record - the bug seems fixed with that .appimage here. Thanks!
Comment 39 Dmitry Kazakov 2020-02-17 09:06:06 UTC
Git commit df9d1aafd52d4bbdfe78ec6f742d9d321a3dc8b5 by Dmitry Kazakov.
Committed on 17/02/2020 at 08:25.
Pushed by dkazakov into branch 'master'.

Fix hangup when loaging image with generator/file layers

When loading layers we shouldn't "block" updates, we shoudl just drop them.
When loading is finished, KisImage::initialRefreshGraph() will be called
anyway, and the projections will become initialized.

To implement proper dropping of the updates I had to (finally) implement
nested projection updates filters. Before the patch, there could be only
one filter installed. Now they can be stacked in a nested way. What is
more the caller now gets a special ticket ("cookie") for the installed
filter, so the system can catch interleaved/non-nested filter handling,
which is prohibited.

# Conflicts:
#	libs/image/kis_suspend_projection_updates_stroke_strategy.cpp
#	libs/image/tests/kis_strokes_queue_test.cpp

M  +52   -23   libs/image/kis_image.cc
M  +43   -6    libs/image/kis_image.h
M  +4    -2    libs/image/kis_image_interfaces.h
M  +3    -2    libs/image/kis_projection_updates_filter.h
M  +9    -5    libs/image/kis_regenerate_frame_stroke_strategy.cpp
M  +4    -2    libs/image/kis_stroke_strategy_factory.h
M  +6    -11   libs/image/kis_strokes_queue.cpp
M  +1    -2    libs/image/kis_strokes_queue.h
M  +29   -17   libs/image/kis_suspend_projection_updates_stroke_strategy.cpp
M  +8    -2    libs/image/kis_suspend_projection_updates_stroke_strategy.h
M  +1    -0    libs/image/kis_types.h
M  +2    -7    libs/image/kis_update_scheduler.cpp
M  +3    -8    libs/image/kis_update_scheduler.h
M  +8    -8    libs/image/tests/kis_strokes_queue_test.cpp
M  +3    -1    libs/ui/KisDocument.cpp
M  +0    -14   libs/ui/tool/strokes/kis_filter_stroke_strategy.cpp
M  +2    -2    plugins/impex/kra/kra_converter.cpp

https://invent.kde.org/kde/krita/commit/df9d1aafd52d4bbdfe78ec6f742d9d321a3dc8b5
Comment 40 Tonja 2020-02-17 18:58:44 UTC
(In reply to Dmitry Kazakov from comment #37)
> Hi, Tonja!
> 
> Could you please check this AppImage package? Does it fix the problem for
> you?
> https://binary-factory.kde.org/job/Krita_Stable_Appimage_Build/651/

Hello Dmitry,

it's fixed for me too in this package. Sample file opened without problem after a few moments.

Thanks you all! You're doing an amazing work.
Comment 41 Dmitry Kazakov 2020-02-19 10:12:31 UTC
Thank you a lot for testing! :)