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

            Bug ID: 357754
           Summary: Crash in eglCreateImageKHR
           Product: kwin
           Version: 5.5.2
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: egl
          Assignee: kwin-bugs-n...@kde.org
          Reporter: fab...@ritter-vogt.de

I accidentially set QT_DEVICE_PIXEL_RATIO=100 when opening a Qt application
that uses OpenGL and kwin_x11 crashes repoducably with the following backtrace
until I kill the application:

#0  0x00007fcc67729d8d in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fcc67729c24 in __sleep (seconds=0) at
../sysdeps/unix/sysv/linux/sleep.c:138
#2  0x00007fcc5f5d2c33 in ?? () from /usr/lib64/libKF5Crash.so.5
#3  0x00007fcc5f5d32a9 in ?? () from /usr/lib64/libKF5Crash.so.5
#4  0x00007fcc5f5d3709 in KCrash::defaultCrashHandler(int) () from
/usr/lib64/libKF5Crash.so.5
#5  <signal handler called>
#6  dri2_create_image_khr_pixmap (ctx=<optimized out>, attr_list=<optimized
out>, buffer=<optimized out>, disp=0x363b480) at
drivers/dri2/platform_x11.c:1051
#7  dri2_x11_create_image_khr (drv=<optimized out>, disp=0x363b480,
ctx=<optimized out>, target=<optimized out>, buffer=<optimized out>,
attr_list=<optimized 
out>)
    at drivers/dri2/platform_x11.c:1074
#8  0x00007fcc598c6279 in eglCreateImageKHR (dpy=0x363b480, ctx=0x0,
target=12464, buffer=0x7657a89, attr_list=0x7ffdd25b8db0) at main/eglapi.c:1331
#9  0x00007fcc6738fada in KWin::AbstractEglTexture::loadTexture
(this=0x4d8c670, pix=124091017, size=...) at 
/usr/src/debug/kwin-5.5.2/abstract_egl_backend.cpp:312
#10 0x00007fcc6739075a in KWin::AbstractEglTexture::loadTexture
(this=0x4d8c670, pixmap=0x514c720) at
/usr/src/debug/kwin-5.5.2/abstract_egl_backend.cpp:289
#11 0x00007fcc6732ba24 in KWin::OpenGLWindowPixmap::bind
(this=this@entry=0x514c720) at /usr/src/debug/kwin-5.5.2/scene_opengl.cpp:1696
#12 0x00007fcc6732bbe8 in KWin::SceneOpenGL::Window::bindTexture
(this=this@entry=0x538a3d0) at /usr/src/debug/kwin-5.5.2/scene_opengl.cpp:1301
#13 0x00007fcc6732e00e in KWin::SceneOpenGL::Window::beginRenderWindow
(this=<optimized out>, mask=<optimized out>, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/scene_opengl.cpp:1362
#14 0x00007fcc6732e4c6 in KWin::SceneOpenGL2Window::performPaint
(this=this@entry=0x538a3d0, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/scene_opengl.cpp:1523
#15 0x00007fcc67333d02 in KWin::SceneOpenGL2::performPaintWindow
(this=this@entry=0x378dee0, w=w@entry=0x1ceb000, mask=<optimized out>,
mask@entry=1, 
region=...,
    data=...) at /usr/src/debug/kwin-5.5.2/scene_opengl.cpp:1174
#16 0x00007fcc67333ef0 in KWin::SceneOpenGL2::finalDrawWindow (this=0x378dee0,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/scene_opengl.cpp:1160
#17 0x00007fcc67340149 in KWin::EffectsHandlerImpl::drawWindow (this=0x387cb70,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/effects.cpp:502
#18 0x00007fcc648c716a in KWin::ContrastEffect::drawWindow
(this=this@entry=0x1634db0, w=w@entry=0x1ceb000, mask=mask@entry=1, region=...,
data=...)
    at /usr/src/debug/kwin-5.5.2/effects/backgroundcontrast/contrast.cpp:387
#19 0x00007fcc673400ee in KWin::EffectsHandlerImpl::drawWindow (this=0x387cb70,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/effects.cpp:499
#20 0x00007fcc648476d2 in KWin::BlurEffect::drawWindow
(this=this@entry=0x170e930, w=w@entry=0x1ceb000, mask=mask@entry=1, region=...,
data=...)
    at /usr/src/debug/kwin-5.5.2/effects/blur/blur.cpp:450
#21 0x00007fcc673400ee in KWin::EffectsHandlerImpl::drawWindow (this=0x387cb70,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/effects.cpp:499
#22 0x00007fcc64d1ebb1 in KWin::Effect::drawWindow (this=this@entry=0x3831b40,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/libkwineffects/kwineffects.cpp:582
#23 0x00007fcc673400ee in KWin::EffectsHandlerImpl::drawWindow (this=0x387cb70,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/effects.cpp:499
#24 0x00007fcc673147c1 in KWin::Scene::finalPaintWindow (this=<optimized out>,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/scene.cpp:606
#25 0x00007fcc6733ff9a in KWin::EffectsHandlerImpl::paintWindow
(this=0x387cb70, w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/effects.cpp:465
#26 0x00007fcc64d1ea91 in KWin::Effect::paintWindow (this=this@entry=0x1634db0,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/libkwineffects/kwineffects.cpp:552
#27 0x00007fcc6733ff4e in KWin::EffectsHandlerImpl::paintWindow
(this=0x387cb70, w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/effects.cpp:462
#28 0x00007fcc64d1ea91 in KWin::Effect::paintWindow (this=this@entry=0x170e930,
w=w@entry=0x1ceb000, mask=mask@entry=1, region=..., data=...)
    at /usr/src/debug/kwin-5.5.2/libkwineffects/kwineffects.cpp:552

AFAICS, in #8, ctx should not be 0x0 when calling eglCreateImageKHR.
With the GLX backend, the application is a huge rectangle, as expected.

Reproducible: Always

Steps to Reproduce:
1. Start kwin_x11 with gdb
2. QT_DEVICE_PIXEL_RATIO=100 marble

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

Reply via email to