Bug 27443 - radeonFreeTexImageData: Assertion `!image->base.Data' failed when running Ogre3D samples
Summary: radeonFreeTexImageData: Assertion `!image->base.Data' failed when running Og...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/R600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
: 27810 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-03 15:31 UTC by Laurent carlier
Modified: 2012-11-02 19:02 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (33.74 KB, text/plain)
2010-04-03 15:31 UTC, Laurent carlier
Details
Xorg.log (94.01 KB, text/plain)
2010-04-03 15:33 UTC, Laurent carlier
Details
UT2004.log (12.74 KB, application/octet-stream)
2010-07-30 11:51 UTC, Jon Sturm
Details

Description Laurent carlier 2010-04-03 15:31:50 UTC
Created attachment 34650 [details]
dmesg

Got the assertion "SampleBrowser: radeon_texture.c:93: radeonFreeTexImageData: Assertion `!image->base.Data' failed." when running Ogre3D SampleBrowser.

The assert occur when switching sample; when the ressources are unloaded.

....
Mesh: Loading ogrehead.mesh.
Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Texture: tusk.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,96x96x1.
Texture: rockwall_NH.tga: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
Texture: rockwall.tga: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
SampleBrowser: radeon_texture.c:93: radeonFreeTexImageData: Assertion `!image->base.Data' failed.
Abandon


* Mesa, libdrm, xf86-driver-ati, kernel 2.6.34rc3 from git.
* 01:05.0 VGA compatible controller: ATI Technologies Inc RS880 [Radeon HD 4200]
* No xorg.conf
Comment 1 Laurent carlier 2010-04-03 15:33:05 UTC
Created attachment 34651 [details]
Xorg.log
Comment 2 Laurent carlier 2010-04-09 12:43:12 UTC
Here is a backtrace of the problem:
[lordh@archMain g3dtest]$ gdb gbx3
GNU gdb (GDB) 7.1
Copyright (C) 2010 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 "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/gbx3...done.
(gdb) run
Starting program: /usr/local/bin/gbx3 
[Thread debugging using libthread_db enabled]
GambasFSArchive::find:*:0:0
GambasFSArchive::findFileInfo:*.program::0:0
GambasFSArchive::findFileInfo:*.material::0:0
GambasFSArchive::findFileInfo:*.particle::0:0
GambasFSArchive::findFileInfo:*.compositor::0:0
GambasFSArchive::findFileInfo:*.os::0:0
GambasFSArchive::findFileInfo:*.fontdef::0:0
GambasFSArchive::findFileInfo:*.overlay::0:0
GambasFSArchive::exists:GLX_icon.png -> 0
GambasFSArchive::exists:GLX_icon.png -> 0
Mesa: Mesa 7.9-devel DEBUG build Apr  9 2010 21:31:08
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
Mesa: Initializing x86-64 optimizations
Mesa: 3Dnow! detected
[New Thread 0x7ffff00b9710 (LWP 23592)]
[New Thread 0x7fffef8b8710 (LWP 23593)]
[New Thread 0x7fffe70b7710 (LWP 23594)]
[New Thread 0x7fffef0b7710 (LWP 23595)]
[Thread 0x7ffff00b9710 (LWP 23592) exited]
[Thread 0x7fffef0b7710 (LWP 23595) exited]
[Thread 0x7fffe70b7710 (LWP 23594) exited]
[Thread 0x7fffef8b8710 (LWP 23593) exited]
gbx3: radeon_texture.c :93 : radeonFreeTexImageData:  L'assertion « !image->base.Data » a échoué.

Program received signal SIGABRT, Aborted.
0x00007ffff7210fd5 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff7210fd5 in raise () from /lib/libc.so.6
#1  0x00007ffff72123f0 in abort () from /lib/libc.so.6
#2  0x00007ffff720a081 in __assert_fail () from /lib/libc.so.6
#3  0x00007ffff0cb7b01 in radeonFreeTexImageData (ctx=<value optimized out>, timage=0xa68130) at radeon_texture.c:93
#4  0x00007ffff0d26de2 in _mesa_delete_texture_image (ctx=0x5c25, texImage=0xa68130) at main/teximage.c:487
#5  0x00007ffff0d2e961 in _mesa_delete_texture_object (ctx=0x6d6d10, texObj=0xa67850) at main/texobj.c:201
#6  0x00007ffff0d2df73 in _mesa_reference_texobj (ptr=0x7fffffffdf08, tex=0x0) at main/texobj.c:345
#7  0x00007ffff0d2f5c5 in _mesa_DeleteTextures (n=1, textures=<value optimized out>) at main/texobj.c:932
#8  0x00007ffff67c70f9 in Ogre::Texture::freeInternalResources (this=0x7ffff7ef8c78) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/src/OgreTexture.cpp:349
#9  0x00007ffff66d0188 in Ogre::Resource::unload (this=0x7ffff7ef8c78) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/src/OgreResource.cpp:307
#10 0x00007ffff26adecd in ~GLTexture (this=0x5c25, __in_chrg=<value optimized out>) at /home/lordh/archbuild/ogre/src/ogre/RenderSystems/GL/src/OgreGLTexture.cpp:75
#11 0x00007ffff65217bf in Ogre::SharedPtr<Ogre::Resource>::destroy (this=0x7ffff336ab88) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/include/OgreSharedPtr.h:229
#12 0x00007ffff65222d9 in Ogre::SharedPtr<Ogre::Resource>::release (this=0x7ffff336ab88, __in_chrg=<value optimized out>) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/include/OgreSharedPtr.h:215
#13 ~SharedPtr (this=0x7ffff336ab88, __in_chrg=<value optimized out>) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/include/OgreSharedPtr.h:152
#14 0x00007ffff66e2e86 in std::list<Ogre::SharedPtr<Ogre::Resource>, Ogre::STLAllocator<Ogre::SharedPtr<Ogre::Resource>, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > >::erase(std::_List_iterator<Ogre::SharedPtr<Ogre::Resource> >) () from /usr/lib/libOgreMain_d.so.1.7.0
#15 0x00007ffff66d603b in Ogre::ResourceGroupManager::_notifyAllResourcesRemoved (this=<value optimized out>, manager=0x7ffff7ee76e8)
    at /home/lordh/archbuild/ogre/src/ogre/OgreMain/src/OgreResourceGroupManager.cpp:1228
#16 0x00007ffff66e618f in Ogre::ResourceManager::removeAll (this=0x7ffff7ee76e8) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/src/OgreResourceManager.cpp:365
#17 0x00007ffff66d5195 in Ogre::ResourceGroupManager::shutdownAll (this=<value optimized out>) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/src/OgreResourceGroupManager.cpp:1495
#18 0x00007ffff66f4bac in Ogre::Root::shutdown (this=0x7ffff7ed38d8) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/src/OgreRoot.cpp:1003
#19 0x00007ffff66f5fa4 in ~Root (this=0x5c25, __in_chrg=<value optimized out>) at /home/lordh/archbuild/ogre/src/ogre/OgreMain/src/OgreRoot.cpp:288
#20 0x00007ffff6dbfac6 in std::auto_ptr<Ogre::Root>::reset (this=0x6666d0, __p=0x0) at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../include/c++/4.4.3/backward/auto_ptr.h:242
#21 0x00007ffff6dbeb6e in ~gapplication (this=0x6666d0, __in_chrg=<value optimized out>) at gapplication.cpp:52
#22 0x00007ffff6dbf60b in gapplication::close () at gapplication.cpp:104
#23 0x00007ffff6dc7e2a in GB_EXIT () at main.cpp:65
#24 0x0000000000411e89 in LIBRARY_unload (lib=0x651840) at gbx_library.c:545
#25 0x00000000004273c4 in COMPONENT_unload (comp=0x6517e0) at gbx_component.c:287
#26 0x0000000000427737 in COMPONENT_exit () at gbx_component.c:100
#27 0x000000000041e28f in main_exit (silent=<value optimized out>) at gbx.c:132
#28 0x000000000041e801 in main (argc=1, argv=<value optimized out>) at gbx.c:383
Comment 3 Laurent carlier 2010-04-21 06:12:26 UTC
I've commented the assert, and now all is fine.
Comment 4 Laurent carlier 2010-04-23 07:34:40 UTC
*** Bug 27810 has been marked as a duplicate of this bug. ***
Comment 5 Jon Sturm 2010-07-30 11:48:22 UTC
I am getting this same error on my rv730 card, Radeon HD4850, as soon as a map loads for any gametype in UT2004. I am running a custom built kernel from airlied's DRM-Radeon-Testing branch and libdrm, mesa, and ddx all from git.
Comment 6 Jon Sturm 2010-07-30 11:51:44 UTC
Created attachment 37463 [details]
UT2004.log

I have attached the logfile UT2004 gives me after it claims to recive a SIGBUS due to this bug.
Comment 7 Tobias Jakobi 2010-07-30 12:07:32 UTC
Confirming this problem for ut2004, only the 'Instant Action' gamemode works for me -- all other fail with this assertion.
Comment 8 Jon Sturm 2010-08-12 19:53:00 UTC
(In reply to comment #7)
> Confirming this problem for ut2004, only the 'Instant Action' gamemode works
> for me -- all other fail with this assertion.

I actually did more testing and DM was working for me everywhere, but VCTF would not work in Instant Action or online.
Comment 9 Andreas Boll 2012-11-02 16:20:37 UTC
Note: classic r600 driver has been abandoned.
Please use r600g (gallium driver) instead.

Is this still an issue with a newer driver/kernel?
Comment 10 Laurent carlier 2012-11-02 19:02:16 UTC
Fixed with r600g / mesa from git / kernel 3.6.5

-> closing


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.