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

OpenGL crash using large array in glRenderMode(GL_SELECT) on Intel HD Graphics 4600 and 520

Joe_C
Novice
1,124 Views

Description:

We would like to submit a bug report involving using glDrawArrays when glRenderMode(GL_SELECT) is set.  The crash occurs in glDrawArrays.

We have a streamlined test program that shows the issue.  The issue only appears on Intel drivers, other machines with non-Intel graphics do not show this problem.

We have a software product that is crashing on several laptops using an Intel driver.  We developed a streamlined, scaled down, test program to reproduce the crash.  When picking a sphere (faceted 103 facets per 360 degrees) the program crashes.  The array size in glDrawArrays is 11024 vertices (includes normals but does not have color information) and works when in glRenderMode(GL_RENDER).  The exact same code does not crash if we use 102 facets with 10712 vertices.  We are providing a VS 2012 solution with the test code so you can see the issue after you run the applications mentioned in the 'How to reproduce'.

Hardware (HW):

The machines are Dell and have the latest Dell approved driver (note: the latest Intel driver from your website says the driver is OEM and will not install).

Laptop 1 - Dell Latitude E6540, BIOS A26, 10/9/2018, 8 GB RAM, graphics card AMD Radeon HD 8790M (OpenGL runs on Intel HD Graphics 4600, we removed the device and see the same behavior). 

LAPTOP 2 - Windows 10 Professional, Driver information from device manager - Driver Provider: Intel(R) HD Graphics 520, Driver Date: 4/11/2020, Driver Version: 26.20.100.8142.

Software (SW):

LAPTOP 1 - Windows 10 Professional, Driver information from device manager - Driver Provider: Intel(R) HD Graphics 4600, Driver Date: 10/29/2018, Driver Version: 20.19.15.5063 and Driver Provider: AMD, Driver Date: 8/6/2015, Driver Version: 15.201.1101.0. 

LAPTOP 2 - Windows 10 Professional, Driver information from device manager - Driver Provider: Intel(R) HD Graphics 520, Driver Date: 4/11/2020, Driver Version: 26.20.100.8142.

Configuration:

LAPTOP 1 - Single laptop display, 1920x1080, AC mode

LAPTOP 2 - Single laptop display, 1920x1080, AC mode

How to reproduce: 

I am attaching two executables (see OpenGL_GL_SELECT.zip) OpenGL_103.exe (shows crash) and OpenGL_102.exe (that works).  Run each program on the Intel HD Graphics 4200 or 520, and hit the button 'Refresh'.  The first time you hit refresh it does the draw using GL_RENDER, and you see the wireframe sphere.  Then hit the 'Refresh' button again which issues the same draw using GL_SELECT to do a pick operation.  The 102 works but the 103 crashes.  If you see this behavior I am attaching a VS 2012 solution that provides the source code.

Joe_C_0-1615499555667.png

The number of facets is defined in tssai_openGL_display.cpp on line 130.  Comment one define and uncomment the other to switch back and forth between building each executable.

//#define CASE_NUM(N) N ## 102
#define CASE_NUM(N) N ## 103

The test case is built as a 32-bit application.  But our real world application is 64-bit and shows the same issue.  To reproduce in the build environment, unzip OpenGL_VS2012_solution.zip, find and open the file OpenGL.sln in VS 2012, do BUILD | Rebuild Solution.  Then DEBUG | Start Without Debugging, it should be configured as 103 facets which crashes.  Hit 'Refresh' twice, first to draw (GL_RENDER) and then to pick (GL_SELECT).  Change the define and rebuild to see the application work.

P.S.  Another issue on this forum might be related, but it is much older and we are using newer drivers. OpenGL-selection-picking-GL-SELECT-appears-broken-in-latest/m-p/348358 

Labels (1)
0 Kudos
7 Replies
Joe_C
Novice
1,093 Views

LAPTOP 2 is a Dell Latitude E5470.

David_G_Intel
Moderator
1,048 Views

Hello Joe_C

  

Thank you for posting on the Intel️® communities. 

 

To start an investigation on this, please share the following information:

  • Driver versions tested
  • Windows build on each computer
  • Which software or applications are affected by this problem?
  • Do you see this problem on desktop systems or only laptops?
  • Please share the Intel® SSU results of each laptop:
  • To save your scan, click on "Next", then "Save".  

 

Regards, 

David G 

Intel Customer Support Technician 


Joe_C
Novice
1,042 Views

It is easier to run SSU on my personal laptop, so I added it to the list as laptop 3.  It is a Dell Inspiron 5567 and shows the problem.

Drivers tested

Laptop 1 - Driver Provider: Intel(R) HD Graphics 4600, Driver Date: 10/29/2018, Driver Version: 20.19.15.5063

Laptop 2 - Driver Provider: Intel(R) HD Graphics 520, Driver Date: 4/11/2020, Driver Version: 26.20.100.8142.

Laptop 3 - Intel HD Graphics 620, Driver Date: 10/14/2020, Driver Version: 27.20.100.8854

Windows builds

Laptop 1 - Microsoft Windows 10 Pro, Version 10.0.19042 Build 19042

Laptop 2 - Microsoft Windows 10 Pro, Version 10.0.19041 Build 19041

Laptop 3 - Microsoft Windows 10 Home, Version 10.0.19042 Build 19042

 

Software affected.

I had attached a test case that repeats the problem, the executable that repeats the problem is Opengl_103.exe.  OpenGL using performing a draw with GL_SELECT set and a large array size causes the executable to crash.  We do not see this on other machines without Intel graphics.  Other laptops with graphics cards work.

Do [we] see this problem on desktop systems or only laptops?

We have only tested 3 laptops.  Most of our desktops have graphics cards.

SSU for laptop 3 is attached.

Did you run the attached executable OpenGL_103.exe, in my initial post, and see that it crashes?  If it crashes for you, I provided the source code and build solution for Visual Studio 2012.  We know the source code works on other graphics cards or remote desktop.

David_G_Intel
Moderator
1,026 Views

Hello Joe_C


Thank you for the information provided. We will try to reproduce this same behavior, we will post the details on this thread when we have more information.


Regards, 

David G 

Intel Customer Support Technician 


Joe_C
Novice
1,019 Views

Thanks!  Let us know if it is repeatable (and therefore fixable) on your end.  Just trying to help out if we can.

Joe_C
Novice
983 Views

Hi David,

I was able to find 2 old desktops that have Intel graphics which work.  Neither crashes when running OpenGL_103.exe.

Again, these work using OpenGL_103.exe (unlike the other three laptops which have newer drivers and crash):

Desktop 1 (works) - Dell Optiplex 990, Microsoft Windows Pro 10, Version 10.0.19042 Build 19042, Intel HD Graphics, Driver Date: 5/19/2016, Driver Version 9.17.10.4459

Desktop 2 (works) - Dell Optiplex 980, Microsoft Windows Pro 10, Version 10.0.19041 Build 19041, Intel HD Graphics, Driver Date: 11/26/2012, Driver Version 8.15.10.2900

Have you been able to repeat the problem?

Joe C.

David_G_Intel
Moderator
959 Views

Hello Joe_C

  

Thank you for your patience. After multiple tests we didn't get the same outcome and we weren't able to replicate the problem. Since this issue only happens with this application, we recommend that you check with the Intel® Developer Zone for support while developing applications:

If you need any additional information, please submit a new question as this thread will no longer be monitored.


Regards, 

David G 

Intel Customer Support Technician


Reply