View previous topic :: View next topic |
Author |
Message |
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Tue Jul 03, 2007 8:58 am Post subject: Segfault |
|
|
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 |
|
|
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Tue Jul 03, 2007 2:10 pm Post subject: |
|
|
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 |
|
|
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Tue Jul 03, 2007 2:49 pm Post subject: |
|
|
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 |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Wed Jul 04, 2007 3:43 pm Post subject: |
|
|
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 |
|
|
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Wed Jul 04, 2007 5:41 pm Post subject: |
|
|
If that is not the cause of the segfault, why does commenting it out fix it? |
|
Back to top |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Wed Jul 04, 2007 8:31 pm Post subject: |
|
|
It may very well be causing the segfault, I'm just saying I'm not sure why it would. |
|
Back to top |
|
|
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Wed Jul 04, 2007 8:35 pm Post subject: |
|
|
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 |
|
|
|