freeze when setting GARTSize to "64"

Bug #144865 reported by Sébastien Valette
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
X.Org X server
Won't Fix
High
xserver-xorg-video-ati (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-ati

tested on xorg driver version 6.7.194:

when setting GARTSize to "64" to avoid memory problems..... memory problems seem to occur :
with "heavy" 3D applications, the display gets corrupt and X hangs, without being able to restart it.

I attach the full gdb log obtained via SSH.

Revision history for this message
Sébastien Valette (sebastien-valette) wrote :

The debugging log

description: updated
Revision history for this message
Sébastien Valette (sebastien-valette) wrote :

Forgot to print my xorg.conf relevant part:

Section "Device"
Identifier "ATI Technologies Inc RV370 5B64 [FireGL V3100 (PCIE)]"
Driver "ati"
Option "GARTSize" "64"
BusID "PCI:1:0:0"
EndSection

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Could you attach /var/log/Xorg.0.log when it has hung.

Changed in xserver-xorg-video-ati:
status: New → Incomplete
Revision history for this message
Sébastien Valette (sebastien-valette) wrote :

as X freezes, the log does not show anything (I think) but here is what I got.

Revision history for this message
Sébastien Valette (sebastien-valette) wrote :

here is a screenshot of a pathologic 3D rendering : holes are clearly visible, in the form of "stripes" and corrupted triangles. This artifact is a warning, and if I continue to use the application, X hangs.

Revision history for this message
Sébastien Valette (sebastien-valette) wrote :

moreover, when trying Option "DRI" "false", I got this X crash:

https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/145289

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

tested on xorg driver version 6.7.194:

when setting GARTSize to "64" to avoid memory problems..... memory problems seem to occur :
with "heavy" 3D applications, the display gets corrupt and X hangs, without being able to restart it.

I attach the full gdb log obtained via SSH.

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

Created an attachment (id=11804)
the gdb log

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

Created an attachment (id=11805)
the xorg log

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

Created an attachment (id=11806)
a screenshot just before freeze

here is a screenshot of a pathologic 3D rendering : holes are clearly visible, in the form of "stripes" and corrupted triangles. This artifact is a warning, and if I continue to use the application, X hangs.

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

Created an attachment (id=11807)
xorg.conf

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Bug #145289 is not accessible. Is it marked as private?

I think it would make sense to file a bug upstream where you attach your gdb log.

Revision history for this message
Sébastien Valette (sebastien-valette) wrote :

"Bug #145289 is not accessible. Is it marked as private?"

it seems so. Is it my bad? How change this?

Revision history for this message
Sébastien Valette (sebastien-valette) wrote :
Revision history for this message
Sébastien Valette (sebastien-valette) wrote :
Changed in xserver-xorg-video-ati:
status: Incomplete → Confirmed
Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

Looking at the code, I think PCIe cards need a corresponding Option "PCIAPERSize" "64". The driver should probably handle this more sanely by default...

Changed in xorg-server:
status: Unknown → Confirmed
Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

<Quote>
Looking at the code, I think PCIe cards need a corresponding Option
"PCIAPERSize" "64". The driver should probably handle this more sanely by
default... </quote>

thanks for the tip... I replaced GARTSize with PCIAPERSize, and X does not hang anymore, but the memory problem is still here :

*********************************WARN_ONCE*********************************
File r300_mem.c function r300_mem_alloc line 225
Ran out of GART memory (for 1048576)!
Please consider adjusting GARTSize option.
***************************************************************************

this does not happen on my other ati Radeon Mobility 9600 (AGP). I also tried with both options simultaneously, with no luck.

Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

(In reply to comment #6)
> this does not happen on my other ati Radeon Mobility 9600 (AGP).

Because that's an AGP card.

> I also tried with both options simultaneously,

That's what I meant by 'corresponding', sorry if it wasn't clear.

> with no luck.

Which of the two problems occurs then? Please attach the log file for this case as well.

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

with both options enabled, I get this message :

*********************************WARN_ONCE*********************************
File r300_mem.c function r300_mem_alloc line 225
Ran out of GART memory (for 1048576)!
Please consider adjusting GARTSize option.
***************************************************************************

using GARTSize usually removes it, no?

sometimes I get:

libGL error: drmMap of framebuffer failed (Cannot allocate memory)
libGL error: reverting to (slow) indirect rendering
but the programm continues

sometimes I get:
"Error: Could not get dma buffer... exiting"
and the programm crashes

Xorg log does not pop any error message, but I join it anyway...

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

Created an attachment (id=11839)
the xorg.log with both options

Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

(In reply to comment #8)
> with both options enabled, I get this message :

Weird, the log looks fine.

> libGL error: drmMap of framebuffer failed (Cannot allocate memory)
> libGL error: reverting to (slow) indirect rendering
> but the programm continues
>
> sometimes I get:
> "Error: Could not get dma buffer... exiting"
> and the programm crashes

And these don't happen without the options?

Does using just Option "GARTSize" "32" work?

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

>
> And these don't happen without the options?
>
of course the messages and crashes happen without the options :)
I thought the options were designed to solve these problems, no?

> Does using just Option "GARTSize" "32" work?
>
same thing.

I tried valgrind on the programm but it hanged my X...
What can I do more to investigate this issue?

Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

(In reply to comment #11)
> I thought the options were designed to solve these problems, no?

Just 'Ran out of GART memory', not the others.

> > Does using just Option "GARTSize" "32" work?
> >
> same thing.

Meaning the above error?

> What can I do more to investigate this issue?

Log in remotely and run the program in gdb or add debugging output to find out why the error occurs.

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

(In reply to comment #12)
> (In reply to comment #11)
> > I thought the options were designed to solve these problems, no?
>
> Just 'Ran out of GART memory', not the others.

So, there is still something wrong as the "Please consider adjusting GARTSize option." is still present.

>
>
> > > Does using just Option "GARTSize" "32" work?
> > >
> > same thing.
>
> Meaning the above error?

nothing changes : I still get the warning about GARTSize and the program stills crashes after a while (but works fine on other hardware)

>
>
> > What can I do more to investigate this issue?
>
> Log in remotely and run the program in gdb or add debugging output to find out
> why the error occurs.
>

Sorry, I am not well trained for gdb. I tried it, but the only message I got was : Program exited with code 0377 (I join the log. My program is called MAT). If you have any suggestion for commands, I'm in.

To sum up things a little bit :
- My Computer does not hang anymore (good :) )
- But the PCIAPERSize does note solve memory problems

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

Created an attachment (id=11840)
the gdb output for the MAT programm

Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

(In reply to comment #13)
> Sorry, I am not well trained for gdb. I tried it, but the only message I got
> was : Program exited with code 0377

You need to set breakpoints in interesting places.

> - But the PCIAPERSize does note solve memory problems

It's not supposed to on its own, it just makes sure the GART table is actually large enough for the corresponding Option "GARTSize".

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

(In reply to comment #15)
> (In reply to comment #13)
> > Sorry, I am not well trained for gdb. I tried it, but the only message I got
> > was : Program exited with code 0377
>
> You need to set breakpoints in interesting places.

I'm not sure I'm able to do that correctly. My program uses the Visualization Tool Kit (VTK), and OpenGL commands are invoked inside the library, So the breakpoints won't tell many things, I suppose.

Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

(In reply to comment #16)
> My program uses the Visualization Tool Kit (VTK), and OpenGL commands are
> invoked inside the library, So the breakpoints won't tell many things, I
> suppose.

That shouldn't matter for r300_dri.so, where the interesting places should be for this, e.g. where it generates the error about insufficient GART memory.

Revision history for this message
In , Sébastien Valette (sebastien-valette) wrote :

(In reply to comment #17)
> (In reply to comment #16)
> > My program uses the Visualization Tool Kit (VTK), and OpenGL commands are
> > invoked inside the library, So the breakpoints won't tell many things, I
> > suppose.
>
> That shouldn't matter for r300_dri.so, where the interesting places should be
> for this, e.g. where it generates the error about insufficient GART memory.
>

OK. When I find what instruction in my programm causes the message (or crash), what command(s) should I type to give you the relevant bits?

Sorry to turn this bug report into a newbie training session....

Revision history for this message
mabovo (mabovo) wrote :

Radeon 9600 RV350 works fine with GartSize 32 (Compiz+desktop effects enabled) but GartSize 64 don't freeze although disable desktop effects.

Revision history for this message
Brian Murray (brian-murray) wrote : Ubuntu needs you!

Thanks for taking the time to report this bug and helping to make Ubuntu better. In the development cycle for Intrepid there have been some vast improvements in the open source ati video driver and we could use your help testing them. Could you please download the latest Alpha CD image of Intrepid and test this particular bug just using the Live CD? You can find the latest image at http://www.ubuntu.com/testing . Your testing can help make Ubuntu and the open source ati driver even better! Thanks in advance.

Changed in xserver-xorg-video-ati:
status: Confirmed → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi, it's been some time since we last heard from you - are you still interested in this bug? If so, it'd be great if you could re-test it against intrepid, and provide the info mentioned above. Otherwise, we'll close this as expired.

Changed in xserver-xorg-video-ati:
status: Incomplete → Triaged
Revision history for this message
Sébastien Valette (sebastien-valette) wrote :

Hi,

this bug is now irrelevant, as the GARTSize issue does not exist anymore (on my machine...).

Revision history for this message
Bryce Harrington (bryce) wrote :

Great, thanks for letting us know.

Changed in xserver-xorg-video-ati:
status: Triaged → Fix Released
Changed in xorg-server:
importance: Unknown → High
Changed in xorg-server:
importance: High → Unknown
status: Confirmed → Won't Fix
Changed in xorg-server:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.