Bug 337016

Summary: Kwin_x11 crash when back from text mode (ctrl+alt+f1)
Product: [Plasma] kwin Reporter: Luiz Angelo De Luca <luizluca>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: crash    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luiz Angelo De Luca 2014-07-03 17:58:07 UTC
If I go to text mode and back to x11, kwin crashes. In some conditions, this happens every time.

Thread 2 (Thread 0x7f03292fb700 (LWP 2787)):
[KCrash Handler]
#5  0x00007f0335a112d3 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#6  0x00007f0335a11d50 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#7  0x00007f0335855916 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#8  0x00007f0335592cf1 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#9  0x00007f033559576d in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#10 0x00007f0335595960 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#11 0x00007f03426178f7 in glBindFramebuffer (framebuffer=1, target=36160, this=0x24713c0) at /usr/include/qt5/QtGui/qopenglfunctions.h:1124
#12 QSGBindableFboId::bind (this=0x7f03292fac00) at scenegraph/coreapi/qsgrenderer.cpp:107
#13 0x00007f0342617dbb in QSGRenderer::renderScene (this=this@entry=0x2ad7f40, bindable=...) at scenegraph/coreapi/qsgrenderer.cpp:242
#14 0x00007f0342626872 in QSGRenderContext::renderNextFrame (this=0x2ae5ed0, renderer=0x2ad7f40, fboId=<optimized out>) at scenegraph/qsgcontext.cpp:354
#15 0x00007f0342662174 in QQuickWindowPrivate::renderSceneGraph (this=this@entry=0x2c66d00, size=...) at items/qquickwindow.cpp:386
#16 0x00007f0342642cc1 in QSGRenderThread::syncAndRender (this=this@entry=0x2f00570) at scenegraph/qsgthreadedrenderloop.cpp:616
#17 0x00007f03426436f8 in QSGRenderThread::run (this=0x2f00570) at scenegraph/qsgthreadedrenderloop.cpp:704
#18 0x00007f033bc0006f in QThreadPrivate::start (arg=0x2f00570) at thread/qthread_unix.cpp:345
#19 0x00007f033aefb0db in start_thread () from /lib64/libpthread.so.0
#20 0x00007f034373990d in clone () from /lib64/libc.so.6

And these are other crashes:

Thread 3 (Thread 0x7f03aa260700 (LWP 13044)):
[KCrash Handler]
#5  0x00007f03bc6902d3 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#6  0x00007f03bc690d50 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#7  0x00007f03bc4d4916 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#8  0x00007f03bc211cf1 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#9  0x00007f03bc21476d in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#10 0x00007f03bc214960 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#11 0x00007f03c92968f7 in glBindFramebuffer (framebuffer=7, target=36160, this=0x20a1b90) at /usr/include/qt5/QtGui/qopenglfunctions.h:1124
#12 QSGBindableFboId::bind (this=0x7f03aa25fc00) at scenegraph/coreapi/qsgrenderer.cpp:107
#13 0x00007f03c9296dbb in QSGRenderer::renderScene (this=this@entry=0x20948b0, bindable=...) at scenegraph/coreapi/qsgrenderer.cpp:242
#14 0x00007f03c92a5872 in QSGRenderContext::renderNextFrame (this=0x20016f0, renderer=0x20948b0, fboId=<optimized out>) at scenegraph/qsgcontext.cpp:354
#15 0x00007f03c92e1174 in QQuickWindowPrivate::renderSceneGraph (this=this@entry=0x2001160, size=...) at items/qquickwindow.cpp:386
#16 0x00007f03c92c1cc1 in QSGRenderThread::syncAndRender (this=this@entry=0x1ffbc30) at scenegraph/qsgthreadedrenderloop.cpp:616
#17 0x00007f03c92c26f8 in QSGRenderThread::run (this=0x1ffbc30) at scenegraph/qsgthreadedrenderloop.cpp:704
#18 0x00007f03c287f06f in QThreadPrivate::start (arg=0x1ffbc30) at thread/qthread_unix.cpp:345
#19 0x00007f03c1b7a0db in start_thread () from /lib64/libpthread.so.0
#20 0x00007f03ca3b890d in clone () from /lib64/libc.so.6 

Thread 4 (Thread 0x7fc31610b700 (LWP 2931)):
[KCrash Handler]
#5  0x00007fc32b5622d3 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#6  0x00007fc32b562d50 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#7  0x00007fc32b3a6916 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#8  0x00007fc32b0e3cf1 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#9  0x00007fc32b0e676d in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#10 0x00007fc32b0e6960 in ?? () from /usr/lib64/libnvidia-glcore.so.331.79
#11 0x00007fc3381688f7 in glBindFramebuffer (framebuffer=7, target=36160, this=0x2034eb0) at /usr/include/qt5/QtGui/qopenglfunctions.h:1124
#12 QSGBindableFboId::bind (this=0x7fc31610ac00) at scenegraph/coreapi/qsgrenderer.cpp:107
#13 0x00007fc338168dbb in QSGRenderer::renderScene (this=this@entry=0x201b620, bindable=...) at scenegraph/coreapi/qsgrenderer.cpp:242
#14 0x00007fc338177872 in QSGRenderContext::renderNextFrame (this=0x18a9580, renderer=0x201b620, fboId=<optimized out>) at scenegraph/qsgcontext.cpp:354
#15 0x00007fc3381b3174 in QQuickWindowPrivate::renderSceneGraph (this=this@entry=0x1732fd0, size=...) at items/qquickwindow.cpp:386
#16 0x00007fc338193cc1 in QSGRenderThread::syncAndRender (this=this@entry=0x17f8280) at scenegraph/qsgthreadedrenderloop.cpp:616
#17 0x00007fc3381946f8 in QSGRenderThread::run (this=0x17f8280) at scenegraph/qsgthreadedrenderloop.cpp:704
#18 0x00007fc33175106f in QThreadPrivate::start (arg=0x17f8280) at thread/qthread_unix.cpp:345
#19 0x00007fc330a4c0db in start_thread () from /lib64/libpthread.so.0
#20 0x00007fc33928a90d in clone () from /lib64/libc.so.6

Reproducible: Always
Comment 1 Thomas Lübking 2014-07-03 17:59:23 UTC
crashes in nvidia blob.

-> dmesg | grep NVRM
does it say sth. about unsupported usage of framebuffer console?
Comment 2 Luiz Angelo De Luca 2014-07-03 18:10:16 UTC
You mean this?

[   13.429210] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  331.79  Sun May 18 03:55:59 PDT 2014
[   34.760230] NVRM: Your system is not currently configured to drive a VGA console
[   34.760233] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
[   34.760234] NVRM: requires the use of a text-mode VGA console. Use of other console
[   34.760235] NVRM: drivers including, but not limited to, vesafb, may result in
[   34.760236] NVRM: corruption and stability problems, and is not supported.

I'll search how I can disable it. Thanks.
Comment 3 Thomas Lübking 2014-07-03 19:01:54 UTC
Yupp - see https://wiki.archlinux.org/index.php/GRUB#Disable_framebuffer
Comment 4 Thomas Lübking 2014-10-15 20:34:04 UTC
*** Bug 340005 has been marked as a duplicate of this bug. ***