Bug 23504 - KDE's Kubrick has problems with xf86-video-ati driver
Summary: KDE's Kubrick has problems with xf86-video-ati driver
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r200 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 05:55 UTC by Johannes Obermayr
Modified: 2009-08-26 07:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Johannes Obermayr 2009-08-25 05:55:05 UTC
I only post what I communicated with Ian Wadham (Kubrick developer) and KDE games devel:

openSuSE factory:
 - see http://lists.kde.org/?l=kde-games-devel&m=124411754514585&w=2
 - After I had to change my Motherboard and CPU (now Nvidia ION system) and use proprietary Nvidia driver there are no such problems anymore.
 - On my laptop with RV250 Lf (M9) the problem is still alive.
 - In Mar 2009 was this problem also with proprietary fglrx driver (9.3) and my ATI Radeon X1950 Pro.

openSuSE factory and additional packages from http://download.opensuse.org/repositories/home:/oertel:/Radeon_DRI2/openSUSE_Factory/:
 - Mesa 7.6 devel (20090807), drm modules (20090812) and libdrm (20090807)
 - crash on start (see backtrace)
 - It also works with my ION system and Mesa 7.6 devel...

Comment from Ian:
Kubrick has just used a series of OpenGL function calls to draw a cubie,
one of the small cubes of which a Rubik's Cube is made.  It draws 6 quads
for the faces, 12 quads for the bevelled edges and 8 triangles for the
corners --- not very taxing for a modern graphics card ... :-)  Then it does
a glPopAttrib() (item #22 in backtrace) and crashes.  Items #15 to #21
indicate that this may be the time the libraries/drivers choose to unbuffer
the required drawing operations.  Cube::drawCube draws all the cubies,
but I cannot tell from the backtrace which cubie is being drawn (the first,
the last or in between) but I'd bet on it being the first.

backtrace:
Application: Kubrick (kubrick), signal: Aborted
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb658b0bf in raise () from /lib/libc.so.6
#8  0xb658c9d7 in abort () from /lib/libc.so.6
#9  0xb6583eee in __assert_fail () from /lib/libc.so.6
#10 0xb4291cfb in cs_gem_write_reloc () from /usr/lib/libdrm_radeon.so.1
#11 0xb42cd4dc in r200EmitAOS () from /usr/lib/dri/r200_dri.so
#12 0xb42d3122 in r200EmitPrim () from /usr/lib/dri/r200_dri.so
#13 0xb42d18ba in r200EmitPrimitive () from /usr/lib/dri/r200_dri.so
#14 0xb42d1da0 in r200_run_tcl_render () from /usr/lib/dri/r200_dri.so
#15 0xb439fbca in _tnl_run_pipeline () from /usr/lib/dri/r200_dri.so
#16 0xb42c4748 in r200WrapRunPipeline () from /usr/lib/dri/r200_dri.so
#17 0xb43a0760 in _tnl_draw_prims () from /usr/lib/dri/r200_dri.so
#18 0xb43a0a31 in _tnl_vbo_draw_prims () from /usr/lib/dri/r200_dri.so
#19 0xb43987f1 in vbo_exec_vtx_flush () from /usr/lib/dri/r200_dri.so
#20 0xb4394bb9 in vbo_exec_FlushVertices_internal () from /usr/lib/dri/r200_dri.so
#21 0xb4394c78 in vbo_exec_FlushVertices () from /usr/lib/dri/r200_dri.so
#22 0xb4300699 in _mesa_PopAttrib () from /usr/lib/dri/r200_dri.so
#23 0x0806598c in GameGLView::drawACubie (this=0x814c050, size=0.366666675, centre=0xbf99e884, axis=2, angle=0) at /usr/src/debug/kdegames-4.3.0/kubrick/src/gameglview.cpp:523
#24 0x0805f8e4 in Cubie::drawCubie (this=0x8149c40, gameGLView=0x814c050, cubieSize=0.366666675, axis=Z, slice=2, angle=0) at /usr/src/debug/kdegames-4.3.0/kubrick/src/cube.cpp:315
#25 0x0805fad4 in Cube::drawCube (this=0x8151890, gameGLView=0x814c050, cubieSize=0.366666675) at /usr/src/debug/kdegames-4.3.0/kubrick/src/cube.cpp:119
#26 0x08058024 in Game::drawScene (this=0x813ed20) at /usr/src/debug/kdegames-4.3.0/kubrick/src/game.cpp:1132
#27 0x08066960 in GameGLView::paintGL (this=0x814c050) at /usr/src/debug/kdegames-4.3.0/kubrick/src/gameglview.cpp:217
#28 0xb7f33a83 in QGLWidget::glDraw (this=0x814c050) at qgl.cpp:3506
#29 0xb7f324cc in QGLWidget::paintEvent (this=0x814c050) at qgl.cpp:3309
#30 0xb6954986 in QWidget::event (this=0x814c050, event=0xbf99ee74) at kernel/qwidget.cpp:7687
#31 0xb7f35972 in QGLWidget::event (this=0x814c050, e=0xbf99ee74) at qgl.cpp:3292
#32 0xb68fd94c in QApplicationPrivate::notify_helper (this=0x807b578, receiver=0x814c050, e=0xbf99ee74) at kernel/qapplication.cpp:4056
#33 0xb69052ee in QApplication::notify (this=0xbf99f7d4, receiver=0x814c050, e=0xbf99ee74) at kernel/qapplication.cpp:4021
#34 0xb7d09381 in KApplication::notify (this=0xbf99f7d4, receiver=0x814c050, event=0xbf99ee74) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#35 0xb72b8e3e in QCoreApplication::notifyInternal (this=0xbf99f7d4, receiver=0x814c050, event=0xbf99ee74) at kernel/qcoreapplication.cpp:610
#36 0xb695cbb9 in sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:216
#37 QWidgetPrivate::drawWidget (event=<value optimized out>, receiver=<value optimized out>) at kernel/qwidget.cpp:5079
#38 0xb6aefde8 in QWidgetPrivate::repaint_sys (this=0x814c0b8, rgn=...) at painting/qbackingstore.cpp:1547
#39 0xb694d800 in QWidgetPrivate::syncBackingStore (this=0x814c0b8) at kernel/qwidget.cpp:1600
#40 0xb6954760 in QWidget::event (this=0x814c050, event=0x8149788) at kernel/qwidget.cpp:7827
#41 0xb7f35972 in QGLWidget::event (this=0x814c050, e=0x8149788) at qgl.cpp:3292
#42 0xb68fd94c in QApplicationPrivate::notify_helper (this=0x807b578, receiver=0x814c050, e=0x8149788) at kernel/qapplication.cpp:4056
#43 0xb69052ee in QApplication::notify (this=0xbf99f7d4, receiver=0x814c050, e=0x8149788) at kernel/qapplication.cpp:4021
#44 0xb7d09381 in KApplication::notify (this=0xbf99f7d4, receiver=0x814c050, event=0x8149788) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#45 0xb72b8e3e in QCoreApplication::notifyInternal (this=0xbf99f7d4, receiver=0x814c050, event=0x8149788) at kernel/qcoreapplication.cpp:610
#46 0xb72b9aac in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#47 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1247
#48 0xb72b9c6c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#49 0xb72e4e9d in sendPostedEvents () at kernel/qcoreapplication.h:218
#50 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:210
#51 0xb5eaf3f2 in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#52 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#53 0xb5eb2cc8 in g_main_context_iterate (context=0x807d800, block=<value optimized out>, dispatch=1, self=0x807b6b8) at gmain.c:2591
#54 0xb5eb2dee in IA__g_main_context_iteration (context=0x807d800, may_block=1) at gmain.c:2654
#55 0xb72e4aa8 in QEventDispatcherGlib::processEvents (this=0x807b558, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#56 0xb699f23a in QGuiEventDispatcherGlib::processEvents (this=0x807b558, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#57 0xb72b745d in QEventLoop::processEvents (this=0xbf99f734, flags=) at kernel/qeventloop.cpp:149
#58 0xb72b78a9 in QEventLoop::exec (this=0xbf99f734, flags=...) at kernel/qeventloop.cpp:201
#59 0xb72b9d40 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#60 0xb68fd7c4 in QApplication::exec () at kernel/qapplication.cpp:3525
#61 0x08051cb3 in main (argc=1, argv=0xbf99f8e4) at /usr/src/debug/kdegames-4.3.0/kubrick/src/main.cpp:68
Comment 1 Pauli 2009-08-25 08:03:41 UTC
I can't reproduce this with that latest git driver in DRI2 mode.

Can you give more details how to reproduce this? I see a problem that Kubrick is somehow very slow to run and takes a lot more cpu timethan more complex opengl applications.

Also your originl flickering problem with composite is missing redirected rednering (RDR) from DRI1. KMS with DRI2 has that feature so you can use composite with opengl and xv.

Also if you can reproduce the problem it would help if you would install debug symbols and would attach output from gdb commands:
bt full
frame 11
print *rmesa->radeon.cmdbuf
Comment 2 Johannes Obermayr 2009-08-25 14:34:45 UTC
Oh sorry - I forgot... I only try starting Kubrick and then it crashes...
I did a rpmbuild --rebuild for libdrm-2.4.99-9.1.src.rpm and Mesa-7.5.99-16.1.src.rpm (above source) and have now the debugging things...


drkonqi:

Application: Kubrick (kubrick), signal: Aborted
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb64b20bf in raise () from /lib/libc.so.6
#8  0xb64b39d7 in abort () from /lib/libc.so.6
#9  0xb64aaeee in __assert_fail () from /lib/libc.so.6
#10 0xb41c3d04 in cs_gem_write_reloc (cs=0x86c5ef8, bo=0x8756290, read_domain=2, write_domain=0, flags=0) at radeon_cs_gem.c:121
#11 0xb42012f9 in radeon_cs_write_reloc (bo=<value optimized out>, cs=<value optimized out>, read_domain=<value optimized out>, write_domain=<value optimized out>, flags=<value optimized out>)
    at /usr/include/drm/radeon_cs.h:129
#12 r200EmitAOS (bo=<value optimized out>, cs=<value optimized out>, read_domain=<value optimized out>, write_domain=<value optimized out>, flags=<value optimized out>) at r200_cmdbuf.c:361
#13 0xb4206ba0 in r200EmitPrim (ctx=<value optimized out>, prim=<value optimized out>, hwprim=13, start=0, count=72) at r200_tcl.c:194
#14 0xb42053e9 in r200EmitPrimitive (ctx=0x815f968, first=0, last=72, flags=55) at r200_tcl.c:251
#15 0xb420588d in r200_run_tcl_render (ctx=0x815f968, stage=0x846575c) at r200_tcl.c:501
#16 0xb42cc063 in _tnl_run_pipeline (ctx=0x815f968) at tnl/t_pipeline.c:158
#17 0xb41f86e8 in r200WrapRunPipeline (ctx=0x815f968) at r200_state.c:2462
#18 0xb42ccd94 in _tnl_draw_prims (ctx=0x815f968, arrays=0x84538c4, prim=0x84522b8, nr_prims=2, ib=0x0, min_index=0, max_index=95) at tnl/t_draw.c:445
#19 0xb42cd079 in _tnl_vbo_draw_prims (ctx=0x815f968, arrays=0x84538c4, prim=0x84522b8, nr_prims=2, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=95) at tnl/t_draw.c:375
#20 0xb42c4e04 in vbo_exec_vtx_flush (exec=0x8452198, unmap=1 '\001') at vbo/vbo_exec_draw.c:376
#21 0xb42c127a in vbo_exec_FlushVertices_internal (ctx=0x0, unmap=6 '\006') at vbo/vbo_exec_api.c:759
#22 0xb42c1330 in vbo_exec_FlushVertices (ctx=0x815f968, flags=1) at vbo/vbo_exec_api.c:781
#23 0xb4232339 in _mesa_PopAttrib () at main/attrib.c:870
#24 0x0806598c in GameGLView::drawACubie (this=0x814ca58, size=0.275000006, centre=0xbf939b54, axis=2, angle=0) at /usr/src/debug/kdegames-4.3.0/kubrick/src/gameglview.cpp:523
#25 0x0805f8e4 in Cubie::drawCubie (this=0x8152368, gameGLView=0x814ca58, cubieSize=0.275000006, axis=Z, slice=3, angle=0) at /usr/src/debug/kdegames-4.3.0/kubrick/src/cube.cpp:315
#26 0x0805fad4 in Cube::drawCube (this=0x814ae78, gameGLView=0x814ca58, cubieSize=0.275000006) at /usr/src/debug/kdegames-4.3.0/kubrick/src/cube.cpp:119
#27 0x08058024 in Game::drawScene (this=0x8147cc8) at /usr/src/debug/kdegames-4.3.0/kubrick/src/game.cpp:1132
#28 0x08066960 in GameGLView::paintGL (this=0x814ca58) at /usr/src/debug/kdegames-4.3.0/kubrick/src/gameglview.cpp:217
#29 0xb7e59a83 in QGLWidget::glDraw (this=0x814ca58) at qgl.cpp:3506
#30 0xb7e584cc in QGLWidget::paintEvent (this=0x814ca58) at qgl.cpp:3309
#31 0xb687b986 in QWidget::event (this=0x814ca58, event=0xbf93a144) at kernel/qwidget.cpp:7687
#32 0xb7e5b972 in QGLWidget::event (this=0x814ca58, e=0xbf93a144) at qgl.cpp:3292
#33 0xb682494c in QApplicationPrivate::notify_helper (this=0x807b578, receiver=0x814ca58, e=0xbf93a144) at kernel/qapplication.cpp:4056
#34 0xb682c2ee in QApplication::notify (this=0xbf93aaa4, receiver=0x814ca58, e=0xbf93a144) at kernel/qapplication.cpp:4021
#35 0xb7c2f381 in KApplication::notify (this=0xbf93aaa4, receiver=0x814ca58, event=0xbf93a144) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#36 0xb71dfe3e in QCoreApplication::notifyInternal (this=0xbf93aaa4, receiver=0x814ca58, event=0xbf93a144) at kernel/qcoreapplication.cpp:610
#37 0xb6883bb9 in sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:216
#38 QWidgetPrivate::drawWidget (event=<value optimized out>, receiver=<value optimized out>) at kernel/qwidget.cpp:5079
#39 0xb6a16de8 in QWidgetPrivate::repaint_sys (this=0x814cac0, rgn=...) at painting/qbackingstore.cpp:1547
#40 0xb6874800 in QWidgetPrivate::syncBackingStore (this=0x814cac0) at kernel/qwidget.cpp:1600
#41 0xb687b760 in QWidget::event (this=0x814ca58, event=0x814a818) at kernel/qwidget.cpp:7827
#42 0xb7e5b972 in QGLWidget::event (this=0x814ca58, e=0x814a818) at qgl.cpp:3292
#43 0xb682494c in QApplicationPrivate::notify_helper (this=0x807b578, receiver=0x814ca58, e=0x814a818) at kernel/qapplication.cpp:4056
#44 0xb682c2ee in QApplication::notify (this=0xbf93aaa4, receiver=0x814ca58, e=0x814a818) at kernel/qapplication.cpp:4021
#45 0xb7c2f381 in KApplication::notify (this=0xbf93aaa4, receiver=0x814ca58, event=0x814a818) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#46 0xb71dfe3e in QCoreApplication::notifyInternal (this=0xbf93aaa4, receiver=0x814ca58, event=0x814a818) at kernel/qcoreapplication.cpp:610
#47 0xb71e0aac in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#48 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1247
#49 0xb71e0c6c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#50 0xb720be9d in sendPostedEvents () at kernel/qcoreapplication.h:218
#51 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:210
#52 0xb5dd63f2 in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#53 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#54 0xb5dd9cc8 in g_main_context_iterate (context=0x807d800, block=<value optimized out>, dispatch=1, self=0x807b6b8) at gmain.c:2591
#55 0xb5dd9dee in IA__g_main_context_iteration (context=0x807d800, may_block=1) at gmain.c:2654
#56 0xb720baa8 in QEventDispatcherGlib::processEvents (this=0x807b558, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#57 0xb68c623a in QGuiEventDispatcherGlib::processEvents (this=0x807b558, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#58 0xb71de45d in QEventLoop::processEvents (this=0xbf93aa04, flags=) at kernel/qeventloop.cpp:149
#59 0xb71de8a9 in QEventLoop::exec (this=0xbf93aa04, flags=...) at kernel/qeventloop.cpp:201
#60 0xb71e0d40 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#61 0xb68247c4 in QApplication::exec () at kernel/qapplication.cpp:3525
#62 0x08051cb3 in main (argc=1, argv=0xbf93abb4) at /usr/src/debug/kdegames-4.3.0/kubrick/src/main.cpp:68


gdb:
gdb kubrick
GNU gdb (GDB) SUSE (6.8.50.20090811-1.1)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.           
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"   
and "show warranty" for details.                                             
This GDB was configured as "i586-suse-linux".                                
For bug reporting instructions, please see:                                  
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) run                            
Starting program: /usr/bin/kubrick   
Missing separate debuginfo for /lib/ld-linux.so.2
Try: zypper install -C "debuginfo(build-id)=e5a1996d504c285380f7aaec098c2aae588f97df"
warning: the debug information found in "/usr/lib/debug//usr/lib/libstdc++.so.6.0.12.debug" does not match "/usr/lib/libstdc++.so.6" (CRC mismatch).                                                      

warning: the debug information found in "/usr/lib/debug/usr/lib/libstdc++.so.6.0.12.debug" does not match "/usr/lib/libstdc++.so.6" (CRC mismatch).                                                       

Missing separate debuginfo for /usr/lib/libstdc++.so.6
Try: zypper install -C "debuginfo(build-id)=7a23cb3bcf4e7a44325f46051276e8e7872f0ec7"
Missing separate debuginfo for /lib/libm.so.6                                        
Try: zypper install -C "debuginfo(build-id)=a488c775caa0433cb23f9764d683150f40872ef1"
Missing separate debuginfo for /lib/libc.so.6                                        
Try: zypper install -C "debuginfo(build-id)=5dc72d21034d2be82f985c9af55ca53e0c1008cb"
Missing separate debuginfo for /usr/lib/libfreetype.so.6                             
Try: zypper install -C "debuginfo(build-id)=d7c7bd487fb5c451e7ac22e5baab112a1fa18690"
Missing separate debuginfo for /lib/libdl.so.2                                       
Try: zypper install -C "debuginfo(build-id)=3b11efa0364d8857d868fb0bd6c9c4e1ac659c92"
warning: the debug information found in "/usr/lib/debug//lib/libgcc_s.so.1.debug" does not match "/lib/libgcc_s.so.1" (CRC mismatch).                                                                     

warning: the debug information found in "/usr/lib/debug/lib/libgcc_s.so.1.debug" does not match "/lib/libgcc_s.so.1" (CRC mismatch).                                                                      

Missing separate debuginfo for /lib/libgcc_s.so.1
Try: zypper install -C "debuginfo(build-id)=d7d12f7fa08cc56782efdf6ec887bb02452b3646"
Missing separate debuginfo for /lib/libpthread.so.0                                  
Try: zypper install -C "debuginfo(build-id)=10ec70964e3a84e6ef00f5695f008c6c15d31068"
[Thread debugging using libthread_db enabled]                                        
Missing separate debuginfo for /lib/libz.so.1                                        
Try: zypper install -C "debuginfo(build-id)=0ce777687c947d0d1fa6ce205a61460a7e073777"
Missing separate debuginfo for /usr/lib/libfam.so.0                                  
Try: zypper install -C "debuginfo(build-id)=d645239e826e30d38c2f22afb63eedb516bb2052"
Missing separate debuginfo for /lib/libattr.so.1                                     
Try: zypper install -C "debuginfo(build-id)=caeafb765e3ab9ebe0aaac6d58ae83f5292cad22"
Missing separate debuginfo for /lib/liblzma.so.0                                     
Try: zypper install -C "debuginfo(build-id)=60c4e4bd3a6bee76af98bd6b03c642f11c9e92bb"
Missing separate debuginfo for /lib/librt.so.1                                       
Try: zypper install -C "debuginfo(build-id)=4071fc8d876cc4ae9acdbad871cd962038ed632d"
Missing separate debuginfo for /usr/lib/libpng12.so.0                                
Try: zypper install -C "debuginfo(build-id)=c4071f9f5bcf392469fd330c8c4d9f4c57ce7932"
Missing separate debuginfo for /usr/lib/libfontconfig.so.1                           
Try: zypper install -C "debuginfo(build-id)=848c21b878998b831a78c4100df6c33a5e6ae25e"
Missing separate debuginfo for /lib/libdbus-1.so.3                                   
Try: zypper install -C "debuginfo(build-id)=4a2c5e48bd7b6a84b2fbc1fe6efff8124d1f2110"
Missing separate debuginfo for /usr/lib/libxml2.so.2                                 
Try: zypper install -C "debuginfo(build-id)=b6ff526e51bb6fb118bfe29d97e2460c80329ba0"
GL Version (null)                                                                    
kubrick: radeon_cs_gem.c:121: cs_gem_write_reloc: Zusicherung »bo->space_accounted« nicht erfüllt.

Program received signal SIGABRT, Aborted.
0xffffe424 in __kernel_vsyscall ()       
(gdb) bt full                            
#0  0xffffe424 in __kernel_vsyscall ()   
No symbol table info available.          
#1  0xb65ac0bf in raise () from /lib/libc.so.6
No symbol table info available.               
#2  0xb65ad9d7 in abort () from /lib/libc.so.6
No symbol table info available.               
#3  0xb65a4eee in __assert_fail () from /lib/libc.so.6
No symbol table info available.                       
#4  0xb42bdd04 in cs_gem_write_reloc (cs=0x8731998, bo=0x8147c18, read_domain=2, write_domain=0, 
    flags=0) at radeon_cs_gem.c:121                                                              
        reloc = <value optimized out>                                                            
        idx = 3024830409                                                                         
        i = 0                                                                                    
        __PRETTY_FUNCTION__ = "cs_gem_write_reloc"                                               
#5  0xb42fb2f9 in radeon_cs_write_reloc (bo=<value optimized out>, cs=<value optimized out>,     
    read_domain=<value optimized out>, write_domain=<value optimized out>,                       
    flags=<value optimized out>) at /usr/include/drm/radeon_cs.h:129                             
No locals.                                                                                       
#6  r200EmitAOS (bo=<value optimized out>, cs=<value optimized out>,                             
    read_domain=<value optimized out>, write_domain=<value optimized out>,                       
    flags=<value optimized out>) at r200_cmdbuf.c:361                                            
        __FUNCTION__ = "r200EmitAOS"                                                             
#7  0xb4300ba0 in r200EmitPrim (ctx=<value optimized out>, prim=<value optimized out>, hwprim=4, 
    start=72, count=96) at r200_tcl.c:194                                                        
        rmesa = 0x846b2f8                                                                        
        __FUNCTION__ = "r200EmitPrim"                                                            
#8  0xb42ff3e9 in r200EmitPrimitive (ctx=0x815f730, first=72, last=96, flags=52) at r200_tcl.c:251
No locals.                                                                                        
#9  0xb42ff88d in r200_run_tcl_render (ctx=0x815f730, stage=0x8463c1c) at r200_tcl.c:501          
---Type <return> to continue, or q <return> to quit---                                            
        prim = 6                                                                                  
        start = 72                                                                                
        length = <value optimized out>                                                            
        rmesa = 0x846b2f8                                                                         
        i = 1                                                                                     
        vimap_rev = <value optimized out>                                                         
        map_rev_fixed = "\000\377\002\377\003\377\377\377\377\377\377\377\377\377\377"            
        __FUNCTION__ = "r200_run_tcl_render"                                                      
        __PRETTY_FUNCTION__ = "r200_run_tcl_render"                                               
#10 0xb43c6063 in _tnl_run_pipeline (ctx=0x815f730) at tnl/t_pipeline.c:158                       
        tnl = 0x8463ac8                                                                           
        __tmp = 895                                                                               
        i = 0                                                                                     
#11 0xb42f26e8 in r200WrapRunPipeline (ctx=0x815f730) at r200_state.c:2462                        
        rmesa = 0x846b2f8                                                                         
#12 0xb43c6d94 in _tnl_draw_prims (ctx=0x815f730, arrays=0x8180f54, prim=0x817f948, nr_prims=2,   
    ib=0x0, min_index=0, max_index=95) at tnl/t_draw.c:445                                        
        bo = {0x4, 0x0, 0x8463ac8, 0xbfffddb8, 0x8180d44, 0x815f730, 0xb453fff4, 0xbfffddb8,      
          0xb43b9779, 0x815f730, 0x10000000, 0x0, 0x8463ac8, 0x400000, 0xb453fff4, 0xbfffdde8,    
          0xb43b9458, 0x815f730, 0x10000000, 0x815f730, 0xb4325142, 0x815f730, 0x0, 0x0, 0x8463ac8, 
          0x10000000, 0xb453fff4, 0xbfffde18, 0xb42f179c, 0x815f730, 0x10000000, 0xb6391ccf,        
          0xb42ff88d}                                                                               
        nr_bo = 0                                                                                   
        tnl = <value optimized out>                                                                 
#13 0xb43c7079 in _tnl_vbo_draw_prims (ctx=0x815f730, arrays=0x8180f54, prim=0x817f948, nr_prims=2, 
    ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=95) at tnl/t_draw.c:375             
No locals.                                                                                          
#14 0xb43bee04 in vbo_exec_vtx_flush (exec=0x817f828, unmap=1 '\001') at vbo/vbo_exec_draw.c:376    
        ctx = 0x815f730                                                                             
---Type <return> to continue, or q <return> to quit---                                              
#15 0xb43bb27a in vbo_exec_FlushVertices_internal (ctx=0x0, unmap=6 '\006')                         
    at vbo/vbo_exec_api.c:759                                                                       
        exec = 0x817f828                                                                            
#16 0xb43bb330 in vbo_exec_FlushVertices (ctx=0x815f730, flags=1) at vbo/vbo_exec_api.c:781         
No locals.                                                                                          
#17 0xb432c339 in _mesa_PopAttrib () at main/attrib.c:870                                           
        attr = <value optimized out>                                                                
        next = 0xbfffdfc8                                                                           
#18 0x0806598c in GameGLView::drawACubie (this=0x814c950, size=0.183333337, centre=0xbfffe104,      
    axis=2, angle=0) at /usr/src/debug/kdegames-4.3.0/kubrick/src/gameglview.cpp:523                
        lenA = 0.0916666687                                                                         
        bevel = 0.0806666687                                                                        
        lenB = 0.0806666687                                                                         
        p = {0.0806666687, -0.0806666687, 0.0916666687}                                             
        normal = {0.707106709, 0, 0.707106709}                                                      
#19 0x0805f8e4 in Cubie::drawCubie (this=0x814b070, gameGLView=0x814c950, cubieSize=0.183333337,    
    axis=Z, slice=2, angle=0) at /usr/src/debug/kdegames-4.3.0/kubrick/src/cube.cpp:315             
        centre = {-0.366666675, 0.458333343, 0.183333337}                                           
        myAngle = 0                                                                                 
        faceCentre = {-0.366666675, 0.550000012, 0}                                                 
        faceNormal = {0, 1, 0}                                                                      
#20 0x0805fad4 in Cube::drawCube (this=0x8152398, gameGLView=0x814c950, cubieSize=0.183333337)      
    at /usr/src/debug/kdegames-4.3.0/kubrick/src/cube.cpp:119                                       
        cubie = 0x6                                                                                 
        _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 1}, alloc = 0, begin = 0, 
                  end = 0, sharable = 1, array = {0x0}}, d = 0x87c29c0}, d = 0x87c29c0}}, brk = 0,  
          i = {i = 0x87c2a18}, e = {i = 0x87c2b3c}}                                                 
#21 0x08058024 in Game::drawScene (this=0x8147c50)                                                  
    at /usr/src/debug/kdegames-4.3.0/kubrick/src/game.cpp:1132                                      
---Type <return> to continue, or q <return> to quit---                                              
        v = 0x87f7720                                                                               
        _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 1}, alloc = 0, begin = 0, 
                  end = 0, sharable = 1, array = {0x0}}, d = 0x87a41b8}, d = 0x87a41b8}}, brk = 0,  
          i = {i = 0x87a41d8}, e = {i = 0x87a41e4}}                                                 
        fieldWidth = 3.97651792                                                                     
#22 0x08066960 in GameGLView::paintGL (this=0x814c950)                                              
    at /usr/src/debug/kdegames-4.3.0/kubrick/src/gameglview.cpp:217                                 
No locals.                                                                                          
#23 0xb7f53a83 in QGLWidget::glDraw (this=0x814c950) at qgl.cpp:3506                                
No locals.                                                                                          
#24 0xb7f524cc in QGLWidget::paintEvent (this=0x814c950) at qgl.cpp:3309                            
No locals.                                                                                          
#25 0xb6975986 in QWidget::event (this=0x814c950, event=0xbfffe6f4) at kernel/qwidget.cpp:7687      
No locals.                                                                                          
#26 0xb7f55972 in QGLWidget::event (this=0x814c950, e=0xbfffe6f4) at qgl.cpp:3292                   
        d = 0x814c9b8                                                                               
#27 0xb691e94c in QApplicationPrivate::notify_helper (this=0x807b540, receiver=0x814c950,           
    e=0xbfffe6f4) at kernel/qapplication.cpp:4056                                                   
        consumed = <value optimized out>                                                            
#28 0xb69262ee in QApplication::notify (this=0xbffff054, receiver=0x814c950, e=0xbfffe6f4)          
    at kernel/qapplication.cpp:4021                                                                 
        res = 64                                                                                    
#29 0xb7d29381 in KApplication::notify (this=0xbffff054, receiver=0x814c950, event=0xbfffe6f4)      
    at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302                               
No locals.                                                                                          
#30 0xb72d9e3e in QCoreApplication::notifyInternal (this=0xbffff054, receiver=0x814c950,            
    event=0xbfffe6f4) at kernel/qcoreapplication.cpp:610                                            
        threadData = 0x80756d8                                                                      
        returnValue = <value optimized out>                                                         
---Type <return> to continue, or q <return> to quit---                                              
        result = false                                                                              
        cbdata = {0x814c950, 0xbfffe6f4, 0xbfffe66f}                                                
#31 0xb697dbb9 in sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>)
    at ../../src/corelib/kernel/qcoreapplication.h:216                                              
No locals.                                                                                          
#32 QWidgetPrivate::drawWidget (event=<value optimized out>, receiver=<value optimized out>)        
    at kernel/qwidget.cpp:5079                                                                      
        paintEngine = 0x87a83f8                                                                     

        e = {<QEvent> = {_vptr.QEvent = 0xb71795b0, d = 0x0, t = 12, posted = 0, spont = 1, 
            m_accept = 1, reserved = 0}, m_rect = {x1 = 0, y1 = 0, x2 = 1023, y2 = 689},    
          m_region = {d = 0x87f5348, static shared_empty = {ref = {_q_value = 162}, rgn = 0x0, 
              xrectangles = 0x0, qt_rgn = 0x0}}, m_erased = false}                             
        onScreen = true                                                                        
        asRoot = true                                                                          
        toBePainted = {d = 0x87f5348, static shared_empty = {ref = {_q_value = 162}, rgn = 0x0, 
            xrectangles = 0x0, qt_rgn = 0x0}}                                                   
#33 0xb6b10de8 in QWidgetPrivate::repaint_sys (this=0x814c9b8, rgn=...)                         
    at painting/qbackingstore.cpp:1547                                                          
        q = 0x814c950                                                                           
        engine = 0x0                                                                            
        toBePainted = {d = 0x87f5348, static shared_empty = {ref = {_q_value = 162}, rgn = 0x0, 
            xrectangles = 0x0, qt_rgn = 0x0}}                                                   
#34 0xb696e800 in QWidgetPrivate::syncBackingStore (this=0x814c9b8) at kernel/qwidget.cpp:1600  
No locals.                                                                                      
#35 0xb6975760 in QWidget::event (this=0x814c950, event=0x87a59f8) at kernel/qwidget.cpp:7827   
No locals.                                                                                      
#36 0xb7f55972 in QGLWidget::event (this=0x814c950, e=0x87a59f8) at qgl.cpp:3292                
        d = 0x814c9b8                                                                           
#37 0xb691e94c in QApplicationPrivate::notify_helper (this=0x807b540, receiver=0x814c950,       
---Type <return> to continue, or q <return> to quit---                                          
    e=0x87a59f8) at kernel/qapplication.cpp:4056                                                
        consumed = <value optimized out>                                                        
#38 0xb69262ee in QApplication::notify (this=0xbffff054, receiver=0x814c950, e=0x87a59f8)       
    at kernel/qapplication.cpp:4021                                                             
        res = 64                                                                                
#39 0xb7d29381 in KApplication::notify (this=0xbffff054, receiver=0x814c950, event=0x87a59f8)   
    at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302                           
No locals.                                                                                      
#40 0xb72d9e3e in QCoreApplication::notifyInternal (this=0xbffff054, receiver=0x814c950,        
    event=0x87a59f8) at kernel/qcoreapplication.cpp:610                                         
        threadData = 0x80756d8                                                                  
        returnValue = <value optimized out>                                                     
        result = false                                                                          
        cbdata = {0x814c950, 0x87a59f8, 0xbfffecbf}                                             
#41 0xb72daaac in sendEvent (event=<value optimized out>, receiver=<value optimized out>)       
    at kernel/qcoreapplication.h:213                                                            
No locals.                                                                                      
#42 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>,                     
    receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1247                         
        pe = @0x814a558                                                                         
        e = 0x87a59f8                                                                           
        r = 0x814c950                                                                           
        locker = {{mtx = 0x8075700, val = 134698752}}                                           
        startOffset = 0                                                                         
        i = @0x80756f8                                                                          
#43 0xb72dac6c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0)               
    at kernel/qcoreapplication.cpp:1140                                                         
        data = <value optimized out>                                                            
#44 0xb7305e9d in sendPostedEvents () at kernel/qcoreapplication.h:218                          
---Type <return> to continue, or q <return> to quit---                                          
No locals.                                                                                      
#45 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:210                          
No locals.                                                                                      
#46 0xb5ed03f2 in g_main_dispatch (context=<value optimized out>) at gmain.c:1960               
        dispatch = 0xb7305e70 <postEventSourceDispatch(GSource*, GSourceFunc, gpointer)>        
        user_data = 0x0                                                                         
        callback = 0                                                                            
        cb_funcs = 0x0                                                                          
        cb_data = 0x0                                                                           
        current_source_link = {data = 0x807ec18, next = 0x0}                                    
        source = 0x807ec18                                                                      
        current = 0x807cd90                                                                     
        i = 0                                                                                   
#47 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513                 
No locals.                                                                                      
#48 0xb5ed3cc8 in g_main_context_iterate (context=0x807e078, block=<value optimized out>,       
    dispatch=1, self=0x807b680) at gmain.c:2591                                                 
        max_priority = 0                                                                        
        timeout = 0                                                                             
        some_ready = 1                                                                          
        nfds = <value optimized out>                                                            
        allocated_nfds = <value optimized out>                                                  
        fds = <value optimized out>                                                             
        __PRETTY_FUNCTION__ = "g_main_context_iterate"                                          
#49 0xb5ed3dee in IA__g_main_context_iteration (context=0x807e078, may_block=1) at gmain.c:2654 
        retval = <value optimized out>                                                          
#50 0xb7305aa8 in QEventDispatcherGlib::processEvents (this=0x807b500, flags=...)               
    at kernel/qeventdispatcher_glib.cpp:327                                                     
        d = 0x807b6c8                                                                           
---Type <return> to continue, or q <return> to quit---                                          
        canWait = true                                                                          
        result = <value optimized out>                                                          
#51 0xb69c023a in QGuiEventDispatcherGlib::processEvents (this=0x807b500, flags=...)            
    at kernel/qguieventdispatcher_glib.cpp:202                                                  
        d = 0x807b6c8                                                                           
        returnValue = false                                                                     
#52 0xb72d845d in QEventLoop::processEvents (this=0xbfffefb4, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.                           
) at kernel/qeventloop.cpp:149                                                                       
        d = 0x87b5c08                                                                                
#53 0xb72d88a9 in QEventLoop::exec (this=0xbfffefb4, flags=...) at kernel/qeventloop.cpp:201         
        d = 0x87b5c08                                                                                
        app = <value optimized out>                                                                  
#54 0xb72dad40 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888                       
        threadData = 0x80756d8                                                                       
        eventLoop = {<QObject> = {_vptr.QObject = 0xb73cc7a8, static staticMetaObject = {d = {       
                superdata = 0x0, stringdata = 0xb73755e0 "QObject", data = 0xb7375680,               
                extradata = 0xb73c81b8}}, d_ptr = 0x87b5c08, static staticQtMetaObject = {d = {      
                superdata = 0x0, stringdata = 0xb737ede0 "Qt", data = 0xb7381cc0,
                extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x806f8c0,
              stringdata = 0xb7386a80 "QEventLoop", data = 0xb7386aa0, extradata = 0x0}}}
        returnCode = -1
#55 0xb691e7c4 in QApplication::exec () at kernel/qapplication.cpp:3525
No locals.
#56 0x08051cb3 in main (argc=1, argv=0xbffff164)
    at /usr/src/debug/kdegames-4.3.0/kubrick/src/main.cpp:68
        about = {d = 0x80779f0}
        app = {<QApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0xb7f2bbc8,
                static staticMetaObject = {d = {superdata = 0x0, stringdata = 0xb73755e0 "QObject",
                    data = 0xb7375680, extradata = 0xb73c81b8}}, d_ptr = 0x807b540,
                static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0xb737ede0 "Qt",
---Type <return> to continue, or q <return> to quit---
                    data = 0xb7381cc0, extradata = 0x0}}}, static staticMetaObject = {d = {
                  superdata = 0x806f8c0, stringdata = 0xb7386b00 "QCoreApplication",
                  data = 0xb7386ba0, extradata = 0x0}}, static self = 0xbffff054},
            static staticMetaObject = {d = {superdata = 0xb73cc7e4,
                stringdata = 0xb6fb6d80 "QApplication", data = 0xb6fb6f80, extradata = 0x0}}},
          static staticMetaObject = {d = {superdata = 0xb7179208,
              stringdata = 0xb7eb8bc0 "KApplication", data = 0xb7eb8d60, extradata = 0x0}},
          static loadedByKdeinit = false, static KApp = 0xbffff054, d = 0x80beeb0}
(gdb) frame 11
#11 0xb42f26e8 in r200WrapRunPipeline (ctx=0x815f730) at r200_state.c:2462
2462    r200_state.c: Datei oder Verzeichnis nicht gefunden.
        in r200_state.c
Current language:  auto; currently c
(gdb) print *rmesa->radeon.cmdbuf
Structure has no component named operator*.
(gdb)
Comment 3 Pauli 2009-08-25 17:51:42 UTC
Can you try latest version from git?

commit ce7ed63f0c2f5cb1c030f73a5d8f6544eaac0f81 did merge fix or that space check problem. So no surprise that I can't trigger it any more in git version :)
Comment 4 Johannes Obermayr 2009-08-26 07:43:13 UTC
Latest drm and mesa (git) -> it runs

But it is very slow...

*********************************WARN_ONCE*********************************
File radeon_dma.c function radeon_bo_is_idle line 311
Your libdrm or kernel doesn't have support for busy query.
This may cause small performance drop for you.
***************************************************************************

I think it is time for close this bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.