Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20137 - xfree 4.3.0-r2 radeon driver causes blender to crash when rendering
Summary: xfree 4.3.0-r2 radeon driver causes blender to crash when rendering
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-28 19:00 UTC by Jean-Michel Smith
Modified: 2005-01-03 12:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot of Blender 2.27. NOTE: large, ~770KB png (blender-2.27-radeon-9000-screwage.png,694.52 KB, image/png)
2003-05-25 18:14 UTC, FieldySnuts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Michel Smith 2003-04-28 19:00:42 UTC
Blender (both 2.23-r1 and 2.26) crashes when attempting to render an image or
frame in an animation with:

blender: r200_vtxfmt.c:1087: r200VtxfmtUnbindContext: Assertion `vb.context ==
ctx' failed.

While this is not a gentoo bug per se (see bug #25 at bugs.xfree.org), there
does exist a patch which purports to fix this problem (setting the environment
variable  RADEON_NO_VTXFMT as suggested does not fix this).  However, the patch
doesn't apply cleanly to the Gentoo ebuild (which is unfortunate, because the
gentoo ebuild fixes a lot of other stuff, including allowing my 8500le to run at
1920x1200 resolution ... kudos to the gentoo xfree maintainers for that!), so I
am posting this bug to

1) let you know of the problem
2) let you know about a patch designed to fix the problem, and
3) hope you might have a chance to modify the patch so it applies properly
against the Gentoo modified xfree sources, if possible.
Comment 1 Michael Fitzpatrick 2003-04-30 14:32:19 UTC
What about setting R200_NO_VTXFMT, the RADEON_xxx one is for the 7500 et al.

The flush vertices patch is already applied iirc (and from the xfree bug report doesn't look like it fixes it anyway)

The latter "big patch" (id=25 on that bug) looks like it'll fix it (if nothing else it removes the assert line ;) but it has quite a bit that's different from what's in xfree4.3, it looks like a patch against dri-cvs.
Comment 2 Jean-Michel Smith 2003-05-07 08:27:53 UTC
[quote]What about setting R200_NO_VTXFMT?[/quote]

This indeed worked perfectly, and my Blender renderings are blindingly fast on my dual athlon.  Very nice!  That, coupled with the other radeon patches that allow the most excellent 1920x1200 resolution, have made my Gentoo system the perfect platform for using this combination of hardware exactly as I intended.  Many thanks!

It would be nice to see a patch that fixes this more generally (so others aren't confronted with this problem, but the workaround you provided is more than adequate for me.
Comment 3 FieldySnuts 2003-05-10 21:45:05 UTC
Jean: 
 
What did you set the variable $R200_NO_VTXFMT to exactly, just "1"? 
Comment 4 Jean-Michel Smith 2003-05-12 09:34:07 UTC
Yes.  (within a bash shell)

export R200_NO_VTXFMT=1

did the trick.
Comment 5 FieldySnuts 2003-05-25 18:13:24 UTC
I think I am seeing similar problems. 
 
I saw this with both blender 2.26 and 2.27. 
 
However I am using xfree 4.3.0 , with a radeon 9000. using the xfree-drm 
drivers. 
 
When i didn't use the radeon driver, and just let X load (not sure what 'driver' 
that is), i saw none of these errors. 
 
The big one is strange visual artifacts. I'm attaching a PNG (rather large). If you 
look at it, the background around the buttons is transparent to the root window. 
It also crashes like crazy whenever i try to render, or do pretty much anything 
else. 
 
I tried setting the variables mentioned here (in my ~/.bashrc), to no avail. 
 
What can I do to help? 
Comment 6 FieldySnuts 2003-05-25 18:14:58 UTC
Created attachment 12398 [details]
Screenshot of Blender 2.27. NOTE: large, ~770KB png

Look at the bottom, the background around buttons is completely transparent.
Among other nasty problems.
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-05 06:16:37 UTC
the patch you mentioned is applied in -r3 (and in recent -r2 as well).

any progress on this, guys?
Comment 8 Jean-Michel Smith 2003-06-05 08:33:18 UTC
I have not had a chance to try blender 2.27.  Does anyone have an ebuild available for it?  I have an 8500 all in wonder and an 8500Le I can test on at home, as well as 7500s and 9100s at work (all systems run Gentoo).  I would be happy to test any patches or fixes being offered.
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-05 08:54:29 UTC
The ebuild is in portage.  It might be in ~x86 profile.  Try: ACCEPT_KEYWORDS="~x86" emerge -p blender
Comment 10 FieldySnuts 2003-06-05 14:17:20 UTC
if -r3 supposedly fixes radeon 9000 problems, I can try -r3 here. Fast system, 
won't take long to build. Yes, no? 
Comment 11 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-30 09:27:03 UTC
shouldn't take long to build, no.
Comment 12 FieldySnuts 2003-07-02 17:16:49 UTC
Okay, Seemant. I have installed 4.3.0-r3 , however I still have the exact same 
problems with blender 2.27. I don't think I'm barking up the right tree but I am 
going to rebuild blender. 
Comment 13 FieldySnuts 2003-07-02 19:13:12 UTC
Rebuilt blender, same problems. In fact, i upgraded to xfree-drm-r5 (r4 
complained about VIDEO_CARDS regardless if I set it or not), ran blender, 
closed it, and shortly thereafter my system hung. 
 
What else can I do to help find the problem? 
Comment 14 Jean-Michel Smith 2003-07-03 10:11:17 UTC
I run into an issue where, after having run blender once or twice and done something else of a 3d nature (let the opengl screen saver run, what have you), that blender will no longer display.  The window frame comes up, and the program appears to be running, but no buttons are display, no workspace, etc.

I've yet to have it crash my machine, but it does require a reboot before blender will run again properly.

This is with xfree-drm 4.3.0-r4 and earlier ... I'll try -r5 out and see if there is any change.
Comment 15 FieldySnuts 2003-07-03 14:40:34 UTC
I think for me it was xfree-drm-4.3.0-r5 causing my lockups. I tried -r4 but it 
complains about setting VIDEO_CARDS, even when I do. So I went back to 
what I had before, 4.3.0 (-rnothing). I haven't had any problems since. 
Comment 16 Jean-Michel Smith 2003-07-07 08:35:26 UTC
-r5 is not unmasked on my system, so I am not going to try it until it is unmasked.

xfree-drm-r4 is easy to install.  Instead of using USE="radeon", do an

VIDEO_CARDS="radeon" emerge xfree-drm instead or, if that fails:

export VIDEO_CARDS="radeon"
emerge xfree-drm

That will allow you to install and test xfree-drm-r4.  I believe the old USE="radeon" has been depricated in favor of a VIDEO_CARDS environment variable as described above instead.

good luck!
Comment 17 FieldySnuts 2003-07-18 15:14:30 UTC
I'm sorry it has taken me so long to get back to you, I appreicate your work.

I am still having the same problems, unfortunately.
Comment 18 Maurice van der Pot (RETIRED) gentoo-dev 2004-10-24 04:21:52 UTC
Can anyone involved please check if this problem is still present?
Comment 19 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-03 12:14:16 UTC
Please reopen and change the summary if this is still a problem with >=xorg-x11-6.8.0.
Comment 20 FieldySnuts 2005-01-03 12:31:55 UTC
I can no longer assist as I don't have a Radeon any longer.