Bug 496502 - Safe assert when switching between opengl off and on while softproofing is turned on.
Summary: Safe assert when switching between opengl off and on while softproofing is tu...
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: OpenGL Canvas (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-20 17:13 UTC by wolthera
Modified: 2024-11-20 17:13 UTC (History)
0 users

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


Attachments
Assert in krita dialog box. (82.76 KB, image/png)
2024-11-20 17:13 UTC, wolthera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wolthera 2024-11-20 17:13:22 UTC
Created attachment 175977 [details]
Assert in krita dialog box.

SUMMARY
I was checking if softproofing can be activated in the non-opengl canvas (it cannot, btw, a different bug), and an assert popped up.

Git hash dbe71bfb56ff73a9dd59940015801530d442ce82 (That's a development branch without the recent Blackpoint compensation fixes)

STEPS TO REPRODUCE
1.  Turn on softproofing.
2.  Disable opengl in the settings.
3.  Enable opengl in the settings.
4. Get this assert.

GDB backtrace:
-----------------------------------------------------

ASSERT (krita): "bufferSize > 0" in file /home/appimage/persistent/krita/libs/ui/opengl/KisOpenGLBufferCircularStorage.cpp, line 60
--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 "krita" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff4f8e859 in __GI_abort () at abort.c:79
#2  0x00007ffff549bc0f in QMessageLogger::fatal(char const*, ...) const ()
   from /home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
#3  0x00007ffff679cb2b in kis_assert_common (assertion=<optimized out>, file=<optimized out>, 
    line=<optimized out>, abort=<optimized out>, isIgnorable=<optimized out>)
    at /home/appimage/persistent/krita/libs/global/kis_assert.cpp:90
#4  0x00007ffff78d46d5 in KisOpenGLBufferCircularStorage::allocate (this=0x55555e487350, numBuffers=16, 
    bufferSize=0) at /home/appimage/persistent/krita/libs/ui/opengl/KisOpenGLBufferCircularStorage.cpp:60
#5  0x00007ffff78c2080 in KisOpenGLImageTextures::recreateImageTextureTiles (this=0x55555e4872d0)
    at /home/appimage/persistent/krita/libs/ui/opengl/kis_opengl_image_textures.cpp:236
#6  0x00007ffff78c328e in KisOpenGLImageTextures::setInternalColorManagementActive (this=<optimized out>, 
    value=<optimized out>) at /home/appimage/persistent/krita/libs/ui/opengl/kis_opengl_image_textures.cpp:587
#7  0x00007ffff78d8338 in KisOpenGLCanvasRenderer::setDisplayFilterImpl (this=0x55555f50c070, 
    displayFilter=..., initializing=<optimized out>)
    at /home/appimage/persistent/krita/libs/ui/opengl/KisOpenGLCanvasRenderer.cpp:200
#8  0x00007ffff78deaec in KisOpenGLCanvasRenderer::KisOpenGLCanvasRenderer (this=this@entry=0x55555f50c070, 
--Type <RET> for more, q to quit, c to continue without paging--
    canvasBridge=<optimized out>, image=..., colorConverter=colorConverter@entry=0x555558125a18)
    at /home/appimage/persistent/krita/libs/ui/opengl/KisOpenGLCanvasRenderer.cpp:157
#9  0x00007ffff78bc7f0 in KisOpenGLCanvas2::KisOpenGLCanvas2 (this=this@entry=0x55555bd29750, 
    canvas=canvas@entry=0x55555c0024f0, coordinatesConverter=<optimized out>, parent=parent@entry=0x0, 
    image=..., colorConverter=0x555558125a18)
    at /home/appimage/persistent/krita/libs/ui/opengl/kis_opengl_canvas2.cpp:82
#10 0x00007ffff75f4c75 in KisCanvas2::createOpenGLCanvas (this=0x55555c0024f0)
    at /home/appimage/persistent/krita/libs/ui/canvas/kis_canvas2.cpp:553
#11 0x00007ffff75f4f62 in KisCanvas2::createCanvas (this=0x55555c0024f0, useOpenGL=true)
    at /home/appimage/persistent/krita/libs/ui/canvas/kis_canvas2.cpp:586
#12 0x00007ffff75f747b in KisCanvas2::resetCanvas (this=0x55555c0024f0, useOpenGL=<optimized out>)
    at /home/appimage/persistent/krita/libs/ui/canvas/kis_canvas2.cpp:671
#13 0x00007ffff75f753d in KisCanvas2::slotConfigChanged (this=0x55555c0024f0)
    at /home/appimage/persistent/krita/libs/ui/canvas/kis_canvas2.cpp:1227
#14 0x00007ffff570c028 in ?? () from /home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
#15 0x00007ffff7c0911d in KisMainWindow::slotPreferences (this=0x555557d3dae0)
    at /home/appimage/persistent/krita/libs/ui/KisMainWindow.cpp:817