Material Bug on old Graphics Cards

Found a bug? Report it here.

Moderator: PPS-Leaders

Post Reply
User avatar
patrick
Baron Vladimir Harkonnen
Posts: 350
Joined: Mon Oct 02, 2006 6:03 pm
Location: Bern

Material Bug on old Graphics Cards

Post by patrick » Sat Oct 07, 2006 12:08 am

With my old 600MHz laptop I have some problems initializing all openGL extension (which is quite clear, because they are not present :D). This is just to remind everybody, that this problem still exists.

SVN: Revision 9879

My systems:

=================
Desktop:
=================
OS: Gentoo Xorg 7.0
Gfx: S3 Savage IV
Driver: Kernel S3 savage driver

=================
Vaio PCG-SR11K
=================
OS: Gentoo Kernel 2.6.17
Gfx: S3 Savage IV
Driver: Kernel S3 savage driver

Starting the game causes this error to happen:

Code: Select all

#0  0x00000000 in ?? ()
#1  0x0829a86a in Material::select (this=0x881ccd8) at material.cc:161
#2  0x081d26bc in GLMenuImageScreen::draw (this=0x881cc30)
    at glmenu_imagescreen.cc:236
#3  0x08155fac in GameWorldData::loadGUI (this=0x86bb190, root=0x84c0)
    at game_world_data.cc:171
#4  0x08162de0 in GameMenuData::loadGUI (this=0x84c0, root=0x84c0)
    at game_menu.cc:454
#5  0x08156245 in GameWorldData::loadData (this=0x86bb190, root=0x881cfc0)
    at game_world_data.cc:130
#6  0x0815136d in GameWorld::loadData (this=0x86baef4) at game_world.cc:184
#7  0x0816263d in GameMenu::loadData (this=0x84c0) at game_menu.cc:142
#8  0x0814dc5a in Campaign::run (this=0x86bac40) at campaign.cc:153
#9  0x0814db71 in Campaign::start (this=0x86bac40) at campaign.cc:85
#10 0x082e0308 in GameLoader::start (this=0x84c0) at game_loader.cc:163
#11 0x0816c7a3 in Orxonox::start (this=0x84377c8) at orxonox.cc:417
#12 0x0816f0cf in startOrxonox (argc=1, argv=0xbfe00a34, name=@0x84c0, 
    port=33984) at orxonox.cc:573
#13 0x081708f2 in main (argc=1, argv=0xbfe00a34) at new_allocator.h:62
Some extension in the material class is the problem
Last edited by patrick on Fri Nov 10, 2006 8:24 am, edited 1 time in total.

User avatar
bensch
Admiral Alexi Sarkhov
Posts: 101
Joined: Tue Oct 03, 2006 2:28 pm
Contact:

Post by bensch » Thu Oct 12, 2006 6:25 am

This should be fixed in r9882

silvan
Noxonian Brolghormeg
Posts: 37
Joined: Wed Oct 11, 2006 7:43 am

Post by silvan » Mon Oct 30, 2006 3:29 pm

I've got the same problem here:

== System ==
Kubuntu Dapper Drake (6.06)
Intel Pentium M
ATI Mobility Radeon 7500
Driver: 1.2 Mesa 6.4.1


SVN: Revision 9908

Code: Select all

=======================================================
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1225205344 (LWP 10776)]
0x00000000 in ?? ()
(gdb)
#0  0x00000000 in ?? ()
#1  0x08249a5b in Material::select (this=0x89967e8) at material.cc:163
#2  0x0819bea2 in GLMenuImageScreen::draw (this=0x8996780)
    at glmenu/glmenu_imagescreen.cc:236
#3  0x08130598 in GameWorldData::loadGUI (this=0x88dff98, root=0x84c0)
    at story_entities/game_world_data.cc:171
#4  0x0813b3c9 in GameMenuData::loadGUI (this=0x84c0, root=0x84c0)
    at story_entities/menu/game_menu.cc:454
#5  0x0813026c in GameWorldData::loadData (this=0x88dff98, root=0x8996a88)
    at story_entities/game_world_data.cc:130
#6  0x0812bfd0 in GameWorld::loadData (this=0x88dfcfc)
    at story_entities/game_world.cc:184
#7  0x0813b046 in GameMenu::loadData (this=0x84c0)
    at story_entities/menu/game_menu.cc:142
#8  0x081277ec in Campaign::run (this=0x88e2348)
    at story_entities/campaign.cc:153
#9  0x08127936 in Campaign::start (this=0x88e2348)
    at story_entities/campaign.cc:85
#10 0x08285faa in GameLoader::start (this=0x88df850)
    at loading/game_loader.cc:163
#11 0x081494b7 in Orxonox::start (this=0x871cca8) at orxonox.cc:417
#12 0x081497a4 in startOrxonox (argc=1, argv=0xbfad6ab4, name=@0x84c0,
    port=33984) at orxonox.cc:573
#13 0x0814a78a in main (argc=1, argv=0xbfad6ab4) at orxonox.cc:481
(gdb)

User avatar
patrick
Baron Vladimir Harkonnen
Posts: 350
Joined: Mon Oct 02, 2006 6:03 pm
Location: Bern

Post by patrick » Tue Oct 31, 2006 10:07 am

Yes, I still got this problem too
Last edited by patrick on Thu Nov 02, 2006 12:00 am, edited 1 time in total.

User avatar
Nowic
Thanathon, God of the lower Planes
Posts: 186
Joined: Tue Oct 03, 2006 7:53 pm
Location: Zürich
Contact:

Post by Nowic » Tue Oct 31, 2006 5:06 pm

I don't know if it's related with this bug... what are the sizes of the textures in Orxonox? Most old graphic cards can't handle texture sizes which aren't a power of 2. It just came to my mind when I read about old hardware...
"I've always lived cheaply. I live like a student, basically. And I like that because it means that money is not telling me what to do. I can do what I think is important for me to do. It freed me to do what seemed worth doing." -- Richard Stallman

User avatar
patrick
Baron Vladimir Harkonnen
Posts: 350
Joined: Mon Oct 02, 2006 6:03 pm
Location: Bern

Post by patrick » Thu Feb 22, 2007 4:23 pm

Created a ticket for this bug: https://dev.orxonox.net/ticket/208

Could you all please check, if this bug still exists on your systems (silvan?), thx!

User avatar
bensch
Admiral Alexi Sarkhov
Posts: 101
Joined: Tue Oct 03, 2006 2:28 pm
Contact:

Post by bensch » Fri Feb 23, 2007 9:39 am

Yes, this is most probably connected to the square-texture BUG.

For the Fix one should first check for the support of
--> GL_ARB_texture_non_power_of_two <--

So two solutions can be considered (split by step a and b):
1. Adapt texture class as follows:
2. Check for the extension using GLEW (hope it is found on newer HW)
3. Check for the 2^n size of the texture being loaded.
4. SDL_Surface* Texture::prepareSurface(SDL_Surface* surface, bool& hasAlpha) should return a square Texture.
a) Either blit to a square surface
b) or rescale the surface and blit it to a new one that is OpenGL conform

silvan
Noxonian Brolghormeg
Posts: 37
Joined: Wed Oct 11, 2006 7:43 am

Post by silvan » Fri Feb 23, 2007 8:54 pm

patrick wrote:Created a ticket for this bug: https://dev.orxonox.net/ticket/208

Could you all please check, if this bug still exists on your systems (silvan?), thx!
Yes the bug is still here :D (At least in the current cleanup branch).
The light on the end of the tunnel is a train.

User avatar
patrick
Baron Vladimir Harkonnen
Posts: 350
Joined: Mon Oct 02, 2006 6:03 pm
Location: Bern

Post by patrick » Sun Feb 25, 2007 5:28 pm

Thx for the replies! I think I will try to fix this bug first.

User avatar
beni
Baron Vladimir Harkonnen
Posts: 949
Joined: Tue Oct 03, 2006 9:15 am
Location: Zurich
Contact:

Post by beni » Mon Mar 19, 2007 1:21 pm

Is it just me or is this last post completely unrelated to this bug?

I'm afraid we're dealing with some kind of not allowed ad. At least the last one posted in a related topic and a question, while this time it's pretty obvious that's an ad.

Edit: The unrelated post has been deleted
"I'm Commander Shepard and this is my favorite forum on the internet."

User avatar
beni
Baron Vladimir Harkonnen
Posts: 949
Joined: Tue Oct 03, 2006 9:15 am
Location: Zurich
Contact:

Post by beni » Tue Mar 20, 2007 4:58 pm

Don't get why this can happen. I may direct you to the post, hofzge: viewtopic.php?t=21
"I'm Commander Shepard and this is my favorite forum on the internet."

User avatar
Nowic
Thanathon, God of the lower Planes
Posts: 186
Joined: Tue Oct 03, 2006 7:53 pm
Location: Zürich
Contact:

Post by Nowic » Tue Mar 20, 2007 7:58 pm

Two users are wiriting the same message? I think it's just spam! Check "UserA" and "UserB". They are spamers too. -> delete them and we need a stronger spam protction.
"I've always lived cheaply. I live like a student, basically. And I like that because it means that money is not telling me what to do. I can do what I think is important for me to do. It freed me to do what seemed worth doing." -- Richard Stallman

User avatar
hofzge
Roshliikhh, lower servant to the Deities
Posts: 116
Joined: Mon Oct 23, 2006 12:01 pm

Post by hofzge » Wed Mar 21, 2007 7:27 am

The posts in question have been deleted, as they contained ads in their signature.

From now on this will no longer be tolerated.
The sky above the port was the color of television, tuned to a dead channel.
-- William Gibson, Neuromancer

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests