Page 1 of 1

[Solved] Resource Shader

Posted: Wed Dec 13, 2006 9:47 pm
by patrick
There seems to be a problem with the shader resource. I did not yet take a closer look at this bug.
I'm not yet sure when this bug came in, I just upgraded my system to gcc 4 alongside with the new ATI drivers. So the problem perhaps comes with the new ATI drivers...


here is the backtrace:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21602)]
0x081dd176 in ResourceShader (this=0xbf8b7800, vertexShaderName=@0xbf8b77d0, 
    fragmentShaderName=@0xbf8b77f0, keepLevel=@0xbf8b77ac)
    at count_pointer.h:26
26        inline X* operator->() const { return itsCounter->ptr; }
(gdb) 
#0  0x081dd176 in ResourceShader (this=0xbf8b7800, 
    vertexShaderName=@0xbf8b77d0, fragmentShaderName=@0xbf8b77f0, 
    keepLevel=@0xbf8b77ac) at count_pointer.h:26
#1  0x080deac2 in MappedWater::initShaders (this=0x908e0a0)
    at new_allocator.h:62
#2  0x080e156c in MappedWater (this=0x908e0a0, root=0x86577c0)
    at mapped_water.cc:74
#3  0x080e5b67 in tFactory<MappedWater>::fabricateObject (this=0x83d7160, 
    root=0x86577c0) at factory.h:110
#4  0x082a2d91 in Factory::fabricate (root=0x86577c0) at stl_tree.h:246
#5  0x0813aa74 in GameWorldData::loadWorldEntities (this=0x861c070, 
    root=0x8656118) at game_world_data.cc:209
#6  0x0813ee1a in SinglePlayerWorldData::loadWorldEntities (this=0x861c070, 
    root=0x8656118) at single_player_world_data.cc:79
#7  0x081389fc in GameWorldData::loadData (this=0x861c070, root=0x8656118)
    at game_world_data.cc:131
#8  0x081343af in GameWorld::loadData (this=0x861c240) at game_world.cc:184
#9  0x08131296 in Campaign::run (this=0x8615740) at campaign.cc:153
#10 0x081311c5 in Campaign::start (this=0x8615740) at campaign.cc:85
#11 0x0829eaf5 in GameLoader::start (this=0x0) at game_loader.cc:163
#12 0x0814ccb8 in Orxonox::start (this=0x83fbcf0) at orxonox.cc:417
#13 0x0814ffea in startOrxonox (argc=1, argv=0xbf8b80f4, name=@0xbf8b7e90, 
    port=-1) at orxonox.cc:577
#14 0x081516e6 in main (argc=1, argv=0xbf8b80f4) at new_allocator.h:62

Posted: Thu Dec 14, 2006 8:47 am
by bensch
Maybe the shader class does not define a copy constructor... this is often the case with such bugs....

Posted: Sat Dec 23, 2006 11:19 am
by bensch
Most probably fixed this in 10142.
Can you please check this at your end?

Posted: Sat Dec 23, 2006 12:02 pm
by chrigi
If I leave the level I get SIGSEGV :( (with r300 driver)

Code: Select all

#0  0x00000000 in ?? ()
#1  0x081eab02 in ~ShaderData (this=0x920c8b0) at shader_data.cc:76
#2  0x080db981 in ~MappedWater (this=0x9323b78) at count_pointer.h:55
#3  0x082cac95 in ~PNode (this=0x8e47c08, __vtt_parm=0x920c988)
    at p_node.cc:117
#4  0x082cd57c in ~NullParent (this=0x8e47c08) at p_node.h:264
#5  0x0813db36 in GameWorldData::unloadWorldEntities (this=0x89ff160)
    at game_world_data.cc:278
#6  0x08144d09 in SinglePlayerWorldData::unloadWorldEntities (this=0x89ff160)
    at single_player_world_data.cc:89
#7  0x0813d93f in GameWorldData::unloadData (this=0x89ff160)
    at game_world_data.cc:144
#8  0x081388a1 in GameWorld::unloadData (this=0x8a01478) at game_world.cc:216
#9  0x08135a6a in Campaign::run (this=0x89fbe40) at campaign.cc:155
#10 0x08135754 in Campaign::start (this=0x89fbe40) at campaign.cc:85
#11 0x082b9afc in GameLoader::start (this=0x89e5fa0) at game_loader.cc:163
#12 0x0815c7e4 in Orxonox::start (this=0x83efd98) at orxonox.cc:418
#13 0x0815e761 in startOrxonox (argc=1, argv=0xbf8dc634, name=@0xbf8dc530, 
    port=-1) at orxonox.cc:579
#14 0x0816018c in main (argc=1, argv=0xbf8dc634) at orxonox.cc:487

Posted: Sun Dec 24, 2006 12:47 pm
by bensch
Fixed in 10143