Bug 29725

Summary: EXT_framebuffer_object extension with free radeon driver
Product: Mesa Reporter: jonathan <bioinfornatics>
Component: Drivers/DRI/R100Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: dmesg log
xorg log

Description jonathan 2010-08-21 06:35:01 UTC
hi,
i am fedora packager and i package this game: http://os.wildfiregames.com/

i see for radeon driver a crash because  with EXT_framebuffer_object extension with free radeon driver.

beta rpm can be found here: http://koji.fedoraproject.org/koji/taskinfo?taskID=2415654

rpm -qa | grep mesa
mesa-dri-drivers-7.8.1-8.fc13.x86_64
mesa-libGL-devel-7.8.1-8.fc13.x86_64
mesa-libGL-7.8.1-8.fc13.x86_64
mesa-debuginfo-7.8.1-8.fc13.x86_64
mesa-libGLU-devel-7.8.1-8.fc13.x86_64
mesa-libGLU-7.8.1-8.fc13.x86_64
Comment 1 Alex Deucher 2010-08-21 07:45:49 UTC
Can you attach the backtrace?
Comment 2 jonathan 2010-08-21 10:49:15 UTC
log error:
___________________________________________________________________
(gdb) bt full
#0  0x00007fffe9926e99 in next_ins (pAsm=0x2a3ff70) at
r700_assembler.c:2619
        pILInst = <value optimized out>
#1  0x00007fffe992776c in assemble_MOV (pAsm=0x2a3ff70) at
r700_assembler.c:3874
No locals.
#2  0x00007fffe992b594 in AssembleInstr (uiFirstInst=<value optimized
out>, uiIL_Shift=0, uiNumberInsts=4, pILInst=0x2a41e30,
pR700AsmCode=0x2a3ff70) at r700_assembler.c:5622
        i = 1
#3  0x00007fffe992c7fd in r700TranslateFragmentShader (fp=0x2a3bcc0,
mesa_fp=0x2a3bcc0, ctx=0xb493f0) at r700_fragprog.c:412
        number_of_colors_exported = <value optimized out>
        z_enabled = 0 '\000'
        unBit = <value optimized out>
        shadow_unit = <value optimized out>
        i = <value optimized out>
        inst = <value optimized out>
        shadow_ambient = {STATE_INTERNAL, STATE_SHADOW_AMBIENT, 0, 0, 0}
#4  0x00007fffe99360af in r700UpdateShaders (ctx=0xb493f0) at
r700_state.c:72
        context = 0xb454f0
#5  0x00007fffe9938953 in r700TryDrawPrims (ctx=0xb493f0,
arrays=0xb988b8, prim=0x7fffffffdba0, nr_prims=1, ib=0x7fffffffdb80,
index_bounds_valid=<value optimized out>, min_index=0, max_index=75)
    at r700_render.c:904
        context = 0xb454f0
        i = <value optimized out>
        radeon = 0xb454f0
        rrb = <value optimized out>
        emit_end = <value optimized out>
        id = 0
#6  r700DrawPrims (ctx=0xb493f0, arrays=0xb988b8, prim=0x7fffffffdba0,
nr_prims=1, ib=0x7fffffffdb80, index_bounds_valid=<value optimized out>,
min_index=0, max_index=75) at r700_render.c:993
        retval = 0 '\000'
#7  0x00007fffe99c1e05 in vbo_validated_drawrangeelements (ctx=0xb493f0,
mode=4, index_bounds_valid=1 '\001', start=0, end=75, count=138,
type=5123, indices=0x29f1450, basevertex=0)
    at vbo/vbo_exec_array.c:663
        vbo = 0xb95c40
        exec = 0xb96860
        ib = {count = 138, type = 5123, obj = 0xafb500, ptr = 0x29f1450}
        prim = {{mode = 4, indexed = 1, begin = 1, end = 1, weak = 0,
pad = 0, start = 0, count = 138, basevertex = 0}}
#8  0x00007fffe99c2086 in vbo_exec_DrawRangeElementsBaseVertex (mode=4,
start=0, end=75, count=138, type=5123, indices=0x29f1450, basevertex=0)
at vbo/vbo_exec_array.c:771
        warnCount = 0
        ctx = 0xb493f0
        __PRETTY_FUNCTION__ = "vbo_exec_DrawRangeElementsBaseVertex"
#9  0x00007fffe99c20f0 in vbo_exec_DrawRangeElements (mode=<value
optimized out>, start=<value optimized out>, end=<value optimized out>,
count=<value optimized out>, type=<value optimized out>, 
    indices=<value optimized out>) at vbo/vbo_exec_array.c:788
No locals.
#10 0x0000000000559d2d in FixedFunctionModelRenderer::RenderModel
(this=0xf02d80, streamflags=<value optimized out>, model=<value
optimized out>, data=<value optimized out>)
    at ../../../source/renderer/FixedFunctionModelRenderer.cpp:290
        mdldef = {px = 0x20d9f70, pn = {pi_ = 0x20da460}}
        ffmodel = <value optimized out>
        numFaces = 46
        base = 0x474e0 <Address 0x474e0 out of bounds>
        stride = 16
#11 0x0000000000568b38 in SortModelRenderer::Render (this=0xf01ff0,
modifier=..., flags=1)
at ../../../source/renderer/TransparencyRenderer.cpp:576
        tex = 0x20efdf0
        smdl = 0x29f13a0
        mdl = 0x20efd30
        mdef = {px = 0x20d9f70, pn = {pi_ = 0x20da460}}
        it = 
        streamflags = 9
        texturematrix = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        lastmdef = {px = 0x20d9f70, pn = {pi_ = 0x20da460}}
        lasttex = 0x20efdf0
        pass = 0
        __func__ = "Render"
#12 0x000000000054d230 in CRenderer::RenderShadowMap (this=0xe9ffb0)
at ../../../source/renderer/Renderer.cpp:858
        __profile = {static evMap = <optimized out>}
        shadowTransp = <value optimized out>
        transparentShadows = {px = 0xf07bf0, pn = {pi_ = 0xf07c10}}
#13 0x000000000054d754 in CRenderer::RenderSubmissions (this=0xe9ffb0)
at ../../../source/renderer/Renderer.cpp:1223
No locals.
#14 0x000000000054d834 in CRenderer::RenderScene (this=0xe9ffb0,
scene=0x1418e20) at ../../../source/renderer/Renderer.cpp:1450
        frustum = {m_aPlanes = {{m_Norm = {X = -3.43084455, Y = -0.5, Z
= 0.866025448}, m_Dist = 204.526093}, {m_Norm = {X = 3.43084455, Y =
-0.5, Z = 0.866025448}, m_Dist = -669.317993}, {m_Norm = {X = 0, 
                Y = 3.25116825, Z = 3.03176332}, m_Dist = -1405.6604},
{m_Norm = {X = 0, Y = -4.25116825, Z = -1.29971242}, m_Dist =
940.868408}, {m_Norm = {X = 0, Y = 0.000977516174, Z = -0.00169312954}, 
              m_Dist = 8.4621582}, {m_Norm = {X = 0, Y = -1.00097752, Z
= 1.73374403}, m_Dist = -473.254089}, {m_Norm = {X = 0, Y = 0, Z = 0},
m_Dist = 0}, {m_Norm = {X = 0, Y = 0, Z = 0}, m_Dist = 0}, {
              m_Norm = {X = 0, Y = 0, Z = 0}, m_Dist = 0}, {m_Norm = {X
= 0, Y = 0, Z = 0}, m_Dist = 0}}, m_NumPlanes = 6}
#15 0x00000000004cf061 in Render ()
at ../../../source/ps/GameSetup/GameSetup.cpp:212
        skystring = {<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >> = "61 193 255", <No data fields>}
        skycol = {r = 0.239215687, g = 0.75686276, b = 1, a = 1}
        cursorName = {<std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >> = Traceback (most
recent call last):
  File "/usr/lib64/../share/gdb/python/libstdcxx/v6/printers.py", line
558, in to_string
    return self.val['_M_dataplus']['_M_p'].lazy_string (length = len)
RuntimeError: Cannot access memory at address 0x4c6f0a2a
, <No data fields>}
#16 0x0000000000411e4b in Frame () at ../../../source/main.cpp:344
        __profile = {static evMap = <optimized out>}
        TimeSinceLastFrame = 0.0136488527
        __func__ = "Frame"
        need_render = true
        time = <value optimized out>
        need_update = true
        is_building_archive = false
#17 0x00000000004122d5 in RunGameOrAtlas (argc=<value optimized out>,
argv=<value optimized out>) at ../../../source/main.cpp:441
        args = {m_Args = std::vector of length 0, capacity 0, m_Arg0 =
{<std::basic_string<char, std::char_traits<char>, std::allocator<char>
>> = "/usr/bin/pyrogenesis", <No data fields>}}
        ran_atlas = <value optimized out>
        res = <value optimized out>
#18 main (argc=<value optimized out>, argv=<value optimized out>)
at ../../../source/main.cpp:460
No locals.
______________________________
Comment 3 jonathan 2010-08-21 11:06:29 UTC
with gam configuration file:
shadows = true
noframebufferobject = false

==> crash
____________________
shadows = false
noframebufferobject = false

==> crash
____________________
shadows = true
noframebufferobject = true

==> no crash

____________________
shadows = true
noframebufferobject = true

==> no crash

then in 0ad code when noframebufferobject is false it try use EXT_framebuffer_object extension
Comment 4 jonathan 2010-08-25 22:55:15 UTC
Created attachment 38167 [details] [review]
dmesg log

dmesg log
Comment 5 jonathan 2010-08-25 22:55:43 UTC
Created attachment 38168 [details] [review]
xorg log

xorg log
Comment 6 Andre Maasikas 2010-08-25 23:58:23 UTC
seems to start & run a bit in mesa git
maybe it  was fixed by 1ec492a366e236569dc68f4de32e641c88cbcd63
or 1f7bc87391bc42eb9003020b7654e985494c6e61
These are also queued in 7.8 branch for 7.8.3
Can you try with these ?
Comment 7 Timothy Arceri 2017-10-08 23:35:45 UTC
Assuming fixed.

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.