Felipe Abrahao changed bug 1094733
What Removed Added
Flags needinfo?(felipesabrahao@gmail.com)  

Comment # 27 on bug 1094733 from
(In reply to Michal Srb from comment #23)
> (In reply to Felipe Abrahao from comment #22)
> > Attached :)
> 
> Great, thank you! It contains many errors like this:
> 
> Mesa: User error: GL_INVALID_VALUE in glTexSubImage2D(xoffset 754 + width
> 260 > 952)
> 
> It means that plasma called glTexSubImage2D trying to modify part of a
> texture, but that part is out of bounds for the current texture. That could
> explain the visual artifacts.
> 
> Sadly, it is not easy to guess where is the offending call coming from.
> Could you try to run plasmashell in debugger (with the MESA_DEBUG variable
> set), put breakpoint on _mesa_error and generate core file when it is hit?
> The whole procedure may look like this:
> 
>   > MESA_DEBUG=incomplete_tex,incomplete_fbo,context gdb plasmashell
>   ...
>   (gdb) break _mesa_error
>   Function "_mesa_error" not defined.
>   Make breakpoint pending on future shared library load? (y or [n]) y
>   (gdb) run
>   ... Running until first error happens ...
>   Thread 1 "plasmashell" hit Breakpoint 1, _mesa_error ...
>   (gdb) generate-core-file
>   Saved corefile core.1234
>   (gdb) quit
> 
> Then please attach the core file.

Here it is :)

Since it is too big to be uploaded, I'm sending the dropbox link (~3Gb):
https://www.dropbox.com/s/v720oq66h7bccld/mesadebug%20generated%20core%20file%20-%2021051?dl=0


In the case it was useful anyway I'm sending the gdb bt too below:

(gdb)
.
.
.
QXcbConnection: XCB error: 2 (BadValue), sequence: 21826, resource id:
83886719, major code: 142 (Unknown), minor code: 3
QXcbConnection: XCB error: 2 (BadValue), sequence: 21827, resource id:
83889928, major code: 142 (Unknown), minor code: 3

Thread 1 "plasmashell" hit Breakpoint 1, _mesa_error (
    ctx=ctx@entry=0x555556424f80, error=1281, 
    fmtString=0x7fff477860b8 "%s(xoffset %d + width %d > %u)") at
main/errors.c:268
268     {
(gdb) generate-core-file
Saved corefile core.21051
(gdb) bt
#0  _mesa_error (ctx=ctx@entry=0x555556424f80, error=1281, 
    fmtString=0x7fff477860b8 "%s(xoffset %d + width %d > %u)") at
main/errors.c:268
#1  0x00007fff471e2d69 in error_check_subtexture_dimensions (
    ctx=ctx@entry=0x555556424f80, dims=dims@entry=2, 
    destImage=destImage@entry=0x555557d64120, xoffset=xoffset@entry=1322, 
    yoffset=yoffset@entry=86, zoffset=zoffset@entry=0, subWidth=34,
subHeight=1, 
    subDepth=1, func=0x7fff47786549 "glTexSubImage2D") at main/teximage.c:1199
#2  0x00007fff471e6169 in texsubimage_error_check
(ctx=ctx@entry=0x555556424f80, 
    dimensions=dimensions@entry=2, texObj=texObj@entry=0x555557d6d310, 
    target=target@entry=3553, level=level@entry=0, xoffset=xoffset@entry=1322, 
    yoffset=86, zoffset=0, width=34, height=1, depth=1, format=32993,
type=5121, 
    pixels=0x7fffffffc450, callerName=0x7fff47786549 "glTexSubImage2D", 
    dsa=<optimized out>) at main/teximage.c:2249
#3  0x00007fff471e6706 in texsubimage_error_check (dsa=false, 
    callerName=<optimized out>, pixels=0x7fffffffc450, type=5121, format=32993, 
    depth=1, height=1, width=34, zoffset=0, yoffset=86, xoffset=1322, level=0, 
---Type <return> to continue, or q <return> to quit---
    target=3553, texObj=0x555557d6d310, dimensions=2, ctx=0x555556424f80)
    at main/teximage.c:2199
#4  texsubimage_err (ctx=0x555556424f80, dims=2, target=3553, level=0, 
    xoffset=1322, yoffset=86, zoffset=0, width=34, height=1, depth=1, 
    format=32993, type=5121, pixels=0x7fffffffc450, 
    callerName=0x7fff47786549 "glTexSubImage2D") at main/teximage.c:3358

#5  0x00007fff471e9b88 in _mesa_TexSubImage2D (target=<optimized out>, 
    level=<optimized out>, xoffset=<optimized out>, yoffset=<optimized out>, 
    width=<optimized out>, height=<optimized out>, format=32993, type=5121, 
    pixels=0x7fffffffc450) at main/teximage.c:3594
#6  0x00007ffff57abb3d in QOpenGLFunctions::glTexSubImage2D (
    pixels=<optimized out>, type=5121, format=<optimized out>, height=1,
width=34, 
    yoffset=<optimized out>, xoffset=<optimized out>, level=0, target=3553, 
    this=<optimized out>) at /usr/include/qt5/QtGui/qopenglfunctions.h:1074
#7  QSGAtlasTexture::Atlas::uploadBgra (this=0x555555d2b490, 
    texture=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/util/qsgatlastexture.cpp:305
#8  0x00007ffff57ac85d in QSGAtlasTexture::Atlas::bind (this=0x555555d2b490, 
    filtering=QSGTexture::Nearest)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/util/qsgatlastexture.cpp:408
#9  0x00007ffff57a909a in QSGOpaqueTextureMaterialShader::updateState (
    this=0x555555d23020, state=..., newEffect=<optimized out>, 
    oldEffect=0x555559b46b80)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/util/qsgtexturematerial.cpp:116
#10 0x00007ffff57986d8 in QSGBatchRenderer::Renderer::renderMergedBatch (
    this=0x555558dcf680, batch=0x555558357ad0)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp:2326
#11 0x00007ffff5799a25 in QSGBatchRenderer::Renderer::renderBatches (
---Type <return> to continue, or q <return> to quit---
    this=this@entry=0x555558dcf680)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp:2569
#12 0x00007ffff579eecc in QSGBatchRenderer::Renderer::render (this=<optimized
out>)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp:2763
#13 0x00007ffff578fedd in QSGRenderer::renderScene (this=0x555558dcf680, 
    bindable=...)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/coreapi/qsgrenderer.cpp:243
#14 0x00007ffff579036b in QSGRenderer::renderScene (this=<optimized out>, 
    fboId=<optimized out>)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/coreapi/qsgrenderer.cpp:196
#15 0x00007ffff57c8e20 in QSGDefaultRenderContext::renderNextFrame (
    this=0x555555fffc80, renderer=0x555558dcf680, fboId=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/qsgdefaultrendercontext.cpp:181
#16 0x00007ffff5822b78 in QQuickWindowPrivate::renderSceneGraph (
    this=this@entry=0x555558493c60, size=...)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/items/qquickwindow.cpp:476
#17 0x00007ffff57bbab4 in QSGGuiThreadRenderLoop::renderWindow (
    this=this@entry=0x555556157600, window=<optimized out>)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/qsgrenderloop.cpp:417
#18 0x00007ffff57bc9da in QSGGuiThreadRenderLoop::exposureChanged (
    this=0x555556157600, window=<optimized out>)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/scenegraph/qsgrenderloop.cpp:465
#19 0x00007ffff220d6db in QWindow::event (this=this@entry=0x55555849c120, 
    ev=ev@entry=0x7fffffffd760) at kernel/qwindow.cpp:2267
---Type <return> to continue, or q <return> to quit---
#20 0x00007ffff582bf45 in QQuickWindow::event (this=this@entry=0x55555849c120, 
    e=e@entry=0x7fffffffd760)
    at
/usr/src/debug/libqt5-qtdeclarative-5.9.4-lp150.1.6.x86_64/src/quick/items/qquickwindow.cpp:1609
#21 0x00007ffff799cbc3 in PlasmaQuick::Dialog::event (
    this=this@entry=0x55555849c120, event=event@entry=0x7fffffffd760)
    at
/usr/src/debug/plasma-framework-5.45.0-lp150.2.1.x86_64/src/plasmaquick/dialog.cpp:1301
#22 0x00007fff41b3b015 in ToolTipDialog::event (this=0x55555849c120, 
    e=0x7fffffffd760)
    at
/usr/src/debug/plasma-framework-5.45.0-lp150.2.1.x86_64/src/declarativeimports/core/tooltipdialog.cpp:99
#23 0x00007ffff2e13e8c in QApplicationPrivate::notify_helper (
    this=this@entry=0x55555582ea20, receiver=receiver@entry=0x55555849c120, 
    e=e@entry=0x7fffffffd760) at kernel/qapplication.cpp:3723
#24 0x00007ffff2e1b244 in QApplication::notify (this=0x7fffffffdb20, 
---Type <return> to continue, or q <return> to quit---
    receiver=0x55555849c120, e=0x7fffffffd760) at kernel/qapplication.cpp:3482
#25 0x00007ffff1c30a88 in QCoreApplication::notifyInternal2 (
    receiver=receiver@entry=0x55555849c120, event=event@entry=0x7fffffffd760)
    at kernel/qcoreapplication.cpp:1016
#26 0x00007ffff2202fe9 in QCoreApplication::sendSpontaneousEvent (
    event=0x7fffffffd760, receiver=0x55555849c120)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#27 QGuiApplicationPrivate::processExposeEvent (e=0x7fffdc025160)
    at kernel/qguiapplication.cpp:2875
#28 0x00007ffff2203b4d in QGuiApplicationPrivate::processWindowSystemEvent (
    e=e@entry=0x7fffdc025160) at kernel/qguiapplication.cpp:1798
#29 0x00007ffff21dc65b in QWindowSystemInterface::sendWindowSystemEvents (
    flags=...) at kernel/qwindowsysteminterface.cpp:946
#30 0x00007fffe3e780f0 in userEventSourceDispatch (
    source=source@entry=0x555555884700) at qeventdispatcher_glib.cpp:77
#31 0x00007fffebc47f57 in g_main_dispatch (context=0x7fffdc004fc0) at
gmain.c:3142
---Type <return> to continue, or q <return> to quit---
#32 g_main_context_dispatch (context=context@entry=0x7fffdc004fc0) at
gmain.c:3795
#33 0x00007fffebc48190 in g_main_context_iterate (
    context=context@entry=0x7fffdc004fc0, block=block@entry=1, 
    dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3868
#34 0x00007fffebc4821c in g_main_context_iteration (context=0x7fffdc004fc0, 
    may_block=may_block@entry=1) at gmain.c:3929
#35 0x00007ffff1c86bef in QEventDispatcherGlib::processEvents (
    this=0x555555886560, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#36 0x00007ffff1c2f09a in QEventLoop::exec (this=this@entry=0x7fffffffda30, 
    flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#37 0x00007ffff1c379e4 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:1289
#38 0x0000555555574e20 in main (argc=<optimized out>, argv=<optimized out>)
    at
/usr/src/debug/plasma5-workspace-5.12.5-lp150.1.1.x86_64/shell/main.cpp:172
(gdb)


You are receiving this mail because: