FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Segfault

 
Post new topic   Reply to topic     Forum Index -> Yage
View previous topic :: View next topic  
Author Message
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Tue Jul 03, 2007 8:58 am    Post subject: Segfault Reply with quote

Has anyone managed to compile yage on linux with dmd 1.017?

I get segfault at camera.toTexture(); I comment it out, and no more segfault, however, there is then of course nothing visible.

Fglrx driver.

I tried doing a backtrace, but it causes X to hang.

I get a lot of "native_blitbuffer: select error occured" if that matters.
Back to top
View user's profile Send private message AIM Address
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Tue Jul 03, 2007 2:10 pm    Post subject: Reply with quote

Well, I went through the revisions, and it was the change from 27 to 28 that broke, I will continue to try to figure it out.
Back to top
View user's profile Send private message AIM Address
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Tue Jul 03, 2007 2:49 pm    Post subject: Reply with quote

I have fixed it, in system.device this must be commented out:

if (Device.getSupport(DEVICE_MULTITEXTURE))
for (int i=Device.getLimit(DEVICE_MAX_TEXTURES)-1; i>=0; i--)
{ glClientActiveTextureARB(GL_TEXTURE0_ARB + i);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);

glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
}

Proven true on two systems.
Back to top
View user's profile Send private message AIM Address
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Wed Jul 04, 2007 3:43 pm    Post subject: Reply with quote

FYI, that code sets some default options for every texture unit up to the number that the video card supports. Not why it's causing a segfault.
Back to top
View user's profile Send private message
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Wed Jul 04, 2007 5:41 pm    Post subject: Reply with quote

If that is not the cause of the segfault, why does commenting it out fix it?
Back to top
View user's profile Send private message AIM Address
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Wed Jul 04, 2007 8:31 pm    Post subject: Reply with quote

It may very well be causing the segfault, I'm just saying I'm not sure why it would.
Back to top
View user's profile Send private message
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Wed Jul 04, 2007 8:35 pm    Post subject: Reply with quote

Ah, I see, well, both cases were linux, the graphics card on one was ATI xpress 200m, the other was nvidia geforce4ti4200 in case it helps.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Yage All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group