aonorin / glfx

Automatically exported from code.google.com/p/glfx
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

glfxCompileProgram crashes my system #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
#What steps will reproduce the problem?

See code in  'code_snippet.cpp'. I execute this code after my GL context has 
been created and initialized. It references an effect file 'null.glsl' also in 
the attached folder. The program crashes immediately at glfxCompileProgram()

#What is the expected output? What do you see instead?

Expect to see either 'successfully compiled program!" or "failed to compile 
program!" written to my debug output. Instead, the program crashes, and Visual 
Studio's debugger opens up a file called 'sstream' and highlights a function 
definition as the source of the error. This function is given in 'error.txt'

#What version of the product are you using? On what operating system?

I have the problem on both glfx0.6 and 0.7. I am using Windows 7 Home Premium, 
64 bit.

#Please provide any additional information below.

Graphics card: GeForce GT 525M. 
Development Environment: Microsoft Visual Studio 2010.

Original issue reported on code.google.com by TheGener...@gmail.com on 18 Mar 2013 at 3:35

Attachments:

GoogleCodeExporter commented 8 years ago
I couldn't repro the issue under both debug and release (only x64). The program 
(NullTechnique) compiled without errors.

Can you step into glfx? Where does it break?

Original comment by max.snif...@gmail.com on 19 Mar 2013 at 8:11

GoogleCodeExporter commented 8 years ago
Thank you for your prompt response!

I ran some tests and it looks like it consistently crashes whenever 
glCreateProgram() is called within the glfx code. My research suggests that 
this occurs when glewInit() is not called first, but this is not the case with 
me. I am able to call glCreateProgram() from within my own code without 
trouble, but when I delegate to glfx, it crashes at the first sign of 
glCreateProgram(). 

I suspect that glfx and my project are somehow creating separate instances of 
glew and the glfx instance is not initialized, but I'm not sure how to verify 
or correct this.

Original comment by TheGener...@gmail.com on 20 Mar 2013 at 3:17

GoogleCodeExporter commented 8 years ago
This sounds like a promising direction.
How do you compile glew? Dynamic or static?

Original comment by max.snif...@gmail.com on 20 Mar 2013 at 8:28