Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
22668 Discussions

OpenGL: GL_OUT_OF_MEMORY error from glUseProgram.

Evan_O_
Beginner
3,036 Views

I'm seeing a problem with a particular set of shaders that pass structs as 'out' parameters to functions. On a system with Intel Iris 6100 graphics the resulting program generates an OUT_OF_MEMORY error when it is bound with UseProgram. On Nvidia and AMD graphics there is no problem.

I'm attaching a sample program that contains a vertex and fragment shader pair that shows the problem. The application attempts to build a program from them and calls UseProgram and then checks for errors. In debug you should see an assert fire (asserting that there was no error). 

I'm testing this on Windows 10 64-bit with driver version 10.18.15.4281.

Thanks,

Evan

0 Kudos
8 Replies
Michael_C_Intel2
Employee
3,036 Views

Hi Evan,

Can you fill in the template below? That with the information you have given me will help us investigate the issue. Thanks for attaching a sample program that is a big help.

System Setup Information:
-----------------------------------------

System Used: (Manufacturer/Model)
CPU SKU: (i3, i5, Pentium, Celeron, etc.)
GPU SKU: (HD4400, HD5100, etc.)
Processor Line: (Y-Series, U-Series, etc.)
System BIOS Version:
CMOS settings:
Graphics Driver Version:
GOP/VBIOS Version:
Operating System:
OS Version:
API:
Occurs on non-Intel GPUs?:

Steps to Reproduce:
-------------------------------
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Expected Results:
-------------------------------

Actual Results:
-------------------------------

Additional Information:
-------------------------------

0 Kudos
Evan_O_
Beginner
3,036 Views

System Setup Information:
-----------------------------------------

System Used: Apple, Macbook Pro Retina 13" (2015)
CPU SKU: i7-5557U
GPU SKU: Iris 6100
Processor Line: U series?
System BIOS Version: 
CMOS settings:
Graphics Driver Version: 10.18.15.4281
GOP/VBIOS Version:
Operating System: Windows 10
OS Version: 64-bit build 10547
API: OpenGL
Occurs on non-Intel GPUs?: No

Steps to Reproduce:
-------------------------------
1. Build and run attached sample program in debug. 
2.

Expected Results:
No GL errors generated by the TestShader function in the application. 

Actual Results:
Generates an OUT_OF_MEMORY error.

Additional Information:
-------------------------------

0 Kudos
Michael_C_Intel2
Employee
3,036 Views

Hi Evan,

Thanks for the additional info, I am talking with the OpenGL driver development team and have a ticket filed. We will investigate and find out what is going on.

-Michael

0 Kudos
Michael_C_Intel2
Employee
3,036 Views

Hi Evan,

Do you have a working binary sample for this issue? When we build and run the program nothing is happening, we may be missing some support files.

-Michael

0 Kudos
Evan_O_
Beginner
3,036 Views

Attached, make sure the vs.txt and fs.txt files are in the same directory as the exe when you run it (or in the Visual Studio working directory if running from the debugger). The only output will be an assert dialog that glGetError == NO_ERROR.

484530

0 Kudos
Michael_C_Intel2
Employee
3,036 Views

Got it. Thanks!

0 Kudos
Michael_C_Intel2
Employee
3,037 Views

Hi Evan,

We found the root cause and fixed the issue in out driver. Now we may not have gotten the fix checked in early enough to make it into the upcoming driver release. So it may not be in the next driver release but the following one.

-Michael

0 Kudos
Evan_O_
Beginner
3,037 Views
Awesome, thanks for the update!
0 Kudos
Reply