Recommended Posts

I just downloaded lesson 19 from nehe's site and I ran into a problem when running it. It gives me the following error which I've done multiple google searches on with no help in fixing it. I heard it's a memory problem but I'm not sure what or how to correct this, considering I didn't write or edit the code.
Here are the errors:
Error: number of Planes not 1!
*** glibc detected *** ./lesson19: double free or corruption (out): 0x00002b4b35c4fe20 ***
This is also outputed in the crash.

Share this post

Link to post

Share on other sites

Hi, I just try the same, remotely, and it's work for me (I have a Debian Testing box with Athlon MP2200 *2 and nvidia GeForce4MX440 with nvidia drivers 1.0.8776-4) Also SDL is ok.Such error like one you got is typically linked to broken system (missing dependancies, bad library used, or more critical: memory failure, this one lead to random error with any memory consumming software).

So without further information, we can't help you. Which are your host system, gfx card, drivers release, any other 3D app work ? ...

Share this post

Link to post

Share on other sites

I've not paid attention to error message from code, it is in loadBMP sub, if number of bitplanes read is not 1. Perhaps your image file is corrupted leading to further issues.But again, check your memory too (take a look at memtest86+ for deeper test, but a mere kernel compilation should give you a hint about memory health, ie if random error occur while compiling)