Bug 416948 - Internal error encountered after closing the canvas
Summary: Internal error encountered after closing the canvas
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.2.8
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-30 15:27 UTC by Emilio
Modified: 2020-05-04 10:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio 2020-01-30 15:27:51 UTC
SUMMARY
The canvas froze suddenly, so I saved the latest work and closed it.
I was working with an XP-Pen Artist Pro 12, its driver program (Ver. 2.1.6) was opened in the background. I had also Firefox and Music opened and running but I think that's irrelevant.
I should mention that before the canvas crashed, the cursor would sometimes display the mouse on top of the shape of the brush.

STEPS TO REPRODUCE
1. Draw normally
2. .. canvas unresponsive, unlike the rest of the UI
3. Close the canvas

OBSERVED RESULT
A pop-up alert showed
Krita has encountered an internal error:

SAFE ASSERT (krita) :"!sanityCheckPointer.isValid()" 
in file /Users/boud/dev/ivanbuild/krita-4.2.8/libs/ui/KisDocument.cpp, line 517

Please report a bug to the developpers!

EXPECTED RESULT
The canvas to close normally, it shouldn't freeze in the first place.

SOFTWARE/OS VERSIONS
macOS: 10.15.3
The window "Report a bug" also shows this:
Operating system: Darwin (x86_64) release 19.3.0

ADDITIONAL INFORMATION

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 30 Jan 2020 16:01:44 +0100. Executing /Applications/krita.app/Contents/MacOS/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 Dialog.

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

Krita

 Version: 4.2.8
 Languages: fr
 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: darwin
  Kernel Version: 19.3.0
  Pretty Productname: macOS 10.15
  Product Type: osx
  Product Version: 10.15

OpenGL Info
 
  Vendor:  "Intel Inc." 
  Renderer:  "Intel HD Graphics 5000 OpenGL Engine" 
  Version:  "4.1 INTEL-14.4.23" 
  Shading language:  "4.10" 
  Requested format:  QSurfaceFormat(version 3.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile) 
  Current format:    QSurfaceFormat(version 4.1, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile) 
     Version: 4.1
     Supports deprecated functions false 
     is OpenGL ES: false 

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

Hardware Information

  GPU Acceleration: desktop
  Memory: 4096 Mb
  Number of Cores: 4
  Swap Location: /private/var/folders/y7/h_kg9qb17dz88hj97gyb_90r0000gn/T

Current Settings

	Current Swap Location: /private/var/folders/y7/h_kg9qb17dz88hj97gyb_90r0000gn/T
	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 1 Emilio 2020-01-30 15:47:30 UTC
I tried to reproduce the bug and found that maybe the canvas crash had nothing to do with the error message I got.
Indeed, I can get it to pop by following these steps:

1. Select the x)_Filter_Sharpen brush
2. Command + Alt + Shift + & (Command + Alt + 1) in order to select the a)_Eraser_Circle brush (that I previously set)
3. Do the same thing to return to the filter brush
4. Close the canvas

Every single time it will show me the message "Krita has encountered an internal error ... "
Comment 2 Emilio 2020-01-30 15:51:21 UTC
I'm sorry for posting again another comment within minutes, but I discovered that in fact no matter what I do beforehand, as long as I change brushes at least once, if I close the document with the x)_Filter_Sharpen brush krita will display the aforementioned message.
Comment 3 Halla Rempt 2020-02-17 15:05:25 UTC
I cannot reproduce it, but this popup box is something we should only show in beta's... It shouldn't have sneaked out in the final releases. I'll ask Ivan to check on his macOS system.
Comment 4 Halla Rempt 2020-05-04 08:44:26 UTC
We still haven't found a way to reproduce this issue. Have you seen it happen again, with the latest release, 4.2.9? See https://krita.org/en/item/krita-4-2-9-released/
Comment 5 Emilio 2020-05-04 10:32:01 UTC
I tried to reproduce it this morning on Krita 4.2.9, to no avail. I couldn't do it again, no matter what I tried. Maybe it had something to do with the canvas size or the history of the brushes, but I can't remember what I was doing back then. I guess we could consider it resolved.
Comment 6 Halla Rempt 2020-05-04 10:35:55 UTC
Okay, thanks for checking!