Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault in OpenGLTexture::recreateFromImageData() #345

Open
phlip9 opened this issue Jun 14, 2013 · 0 comments
Open

Segmentation Fault in OpenGLTexture::recreateFromImageData() #345

phlip9 opened this issue Jun 14, 2013 · 0 comments

Comments

@phlip9
Copy link

phlip9 commented Jun 14, 2013

I'm trying to run the UpdateLoop example and I keep getting a segfault in the OpenGLTexture::recreateFromImageData() function. I've posted the stack trace if anyone wants to take a look.

(gdb) run
Starting program: /home/phlip9/Polycode/Release/Linux/Framework/Examples/Linux/UpdateLoop
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
AL already initialized
[New Thread 0xb7fb3b40 (LWP 4098)]
[Thread 0xb7fb3b40 (LWP 4098) exited]
[New Thread 0xb7fb3b40 (LWP 4099)]
[New Thread 0xb35ffb40 (LWP 4100)]
OpenAL initialized...
Creating new core services instance...
Added archive: Resources/default.pak
Adding texture default

Program received signal SIGSEGV, Segmentation fault.
0x0044e66a in ?? () from /lib/i386-linux-gnu/libc.so.6
(gdb) backtrace
#0 0x0044e66a in ?? () from /lib/i386-linux-gnu/libc.so.6
#1 0x0044afaf in strtod () from /lib/i386-linux-gnu/libc.so.6
#2 0x001e7964 in ?? () from /usr/lib/i386-linux-gnu/libGLU.so.1
#3 0x001f3530 in gluBuild2DMipmaps () from /usr/lib/i386-linux-gnu/libGLU.so.1
#4 0x08099cf2 in Polycode::OpenGLTexture::recreateFromImageData() ()
#5 0x08099e6f in Polycode::OpenGLTexture::OpenGLTexture(unsigned int, unsigned int, char*, bool, bool, int, int) ()
#6 0x08094b11 in Polycode::OpenGLRenderer::createTexture(unsigned int, unsigned int, char*, bool, bool, int) ()
#7 0x08055266 in Polycode::MaterialManager::createTexture(int, int, char*, bool, bool, int) ()
#8 0x0805546b in Polycode::MaterialManager::createTextureFromFile(Polycode::String const&, bool, bool) ()
#9 0x0806bf3c in Polycode::ResourceManager::parseTextures(Polycode::String const&, bool, Polycode::String const&) ()
#10 0x0806cbeb in Polycode::ResourceManager::addDirResource(Polycode::String const&, bool) ()
#11 0x0804ef0c in HelloPolycodeApp::HelloPolycodeApp(Polycode::PolycodeView*) ()
#12 0x0804ede7 in main ()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant