Bug 34256 - Crashes in Stellarium
Summary: Crashes in Stellarium
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-14 04:30 UTC by Bogdan Marinov
Modified: 2011-03-02 01:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Bogdan Marinov 2011-02-14 04:30:37 UTC
A number of crashes have been reported in the Stellarium bug tracker by people who use Radeon graphics cards on Ubuntu.

Could someone please look into these bugs and find if they are known issues or not?

A representative is this bug report:
https://bugs.launchpad.net/ubuntu/+source/stellarium/+bug/481669
(see the comments for examples of different behavior)

Secondary examples include:
https://bugs.launchpad.net/ubuntu/+source/stellarium/+bug/481669
https://bugs.launchpad.net/ubuntu/+source/stellarium/+bug/643203
https://bugs.launchpad.net/ubuntu/+source/stellarium/+bug/657834
https://bugs.launchpad.net/ubuntu/+source/stellarium/+bug/658975
https://bugs.launchpad.net/ubuntu/+source/stellarium/+bug/711913

There seem to be two issues that may be separate or may have a common cause:

The first causes the following message in the log:

drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

dmesg output reported by the same user is:

[ 2054.358680] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for color buffer 0 (need 393216 have 16384) !
[ 2054.358692] [drm:r100_cs_track_check] *ERROR* [drm] color buffer 0 (128 4 0 768)
[ 2054.358697] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

The other typical message is:

stellarium: ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi->space_accounted' failed.
Aborted

Any ideas?
Comment 1 Fabio Pedretti 2011-02-14 04:38:36 UTC
These should be already fixed in newer linux/mesa shipping with Ubuntu natty:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/557266
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/656100
Comment 2 Nicolas Kaiser 2011-02-14 12:06:42 UTC
At my place, Stellarium 0.10.6 is working perfectly on both r200 and r600 with Linux kernel 2.6.38-rc3.
I don't even need to change the configuration any more (some time ago I had to disable "use_qpaintenginegl2" on r600).

With an older kernel 2.6.36 on r200 I'm getting
 [drm:r100_cs_track_texture_check] *ERROR* No texture bound to unit 1
 [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !


System environment:
-- system architecture: i686
-- Linux distribution: Gentoo
-- GPU: R200 514D
-- Model: ATI Radeon 9100 QM (AGP)
-- Display connector: VGA
-- xf86-video-ati: 6.14.0
-- xserver: 1.9.2
-- mesa: 07eb660fc92b63213b542d47671b0d944286b77a
-- drm: 550fe2ca3b29ad2191eab4fdfbed9ed21e25492d
-- kernel: 2.6.38-rc3

System environment:
-- system architecture: amd64
-- Linux distribution: Gentoo
-- GPU: RS780
-- Model: ATI Radeon HD 3200 (780G)
-- Display connector: VGA
-- xf86-video-ati: 6.14.0
-- xserver: 1.9.4
-- mesa: 07eb660fc92b63213b542d47671b0d944286b77a
-- drm: 550fe2ca3b29ad2191eab4fdfbed9ed21e25492d
-- kernel: 2.6.38-rc3
Comment 3 Alex Deucher 2011-02-14 12:29:17 UTC
(In reply to comment #2)
> With an older kernel 2.6.36 on r200 I'm getting
>  [drm:r100_cs_track_texture_check] *ERROR* No texture bound to unit 1
>  [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

Fixed by this commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=43b93fbffc2c080dba2e84df6fce8d7e6c0a2581


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.