Port EXCEPTION_ACCESS_VIOLATION fix to 2.76b #50408

Closed
opened 2017-01-10 11:56:07 +01:00 by anatoly techtonik · 20 comments

System Information
Windows Vista 32-bit
Mobile Intel(R) 4 Series Express Chipset Family, Mobile Intel(R) GMA 4500MHD

Blender Version
Broken: 2.76b f337fea
Worked:

Short description of error

2.76b is the last version to support my videocard. Everything works fine, except that I can not enter System preferences. Blender crashes with EXCEPTION_ACCESS_VIOLATION as described in https://developer.blender.org/T44654

It would be nice to either get the fix backported or add support for ANGLE in newer releases.

Exact steps for others to reproduce the error

Open File --> User Preferences... -> System.

More info

clinfo downloaded from http://download.blender.org/ftp/sergey/clinfo/ on my system crashes too. Here is the output:

>clinfo-win32.exe

Initializing clew...
clew initialization success!
Symbol table:
  clGetPlatformIDs: 73723480
  clGetDeviceIDs: 73722080
  clGetPlatformInfo: 73723520
  clGetDeviceInfo: 73722120
Getting number of platforms...
DEBUG: Executning statement: clGetPlatformIDs(0, NULL, &num_platforms)

>clinfo-workaround-win32.exe

Initializing clew...
clew initialization success!
Symbol table:
  clGetPlatformIDs: 736E3480
  clGetDeviceIDs: 736E2080
  clGetPlatformInfo: 736E3520
  clGetDeviceInfo: 736E2120
Getting number of platforms using workaround...
DEBUG: Executning statement: clGetPlatformIDs(1, &platform_id, &num_platforms)
**System Information** Windows Vista 32-bit Mobile Intel(R) 4 Series Express Chipset Family, Mobile Intel(R) GMA 4500MHD **Blender Version** Broken: 2.76b f337fea Worked: **Short description of error** 2.76b is the last version to support my videocard. Everything works fine, except that I can not enter System preferences. Blender crashes with EXCEPTION_ACCESS_VIOLATION as described in https://developer.blender.org/T44654 It would be nice to either get the fix backported or add support for ANGLE in newer releases. **Exact steps for others to reproduce the error** Open `File --> User Preferences... -> System`. **More info** `clinfo` downloaded from http://download.blender.org/ftp/sergey/clinfo/ on my system crashes too. Here is the output: ``` >clinfo-win32.exe Initializing clew... clew initialization success! Symbol table: clGetPlatformIDs: 73723480 clGetDeviceIDs: 73722080 clGetPlatformInfo: 73723520 clGetDeviceInfo: 73722120 Getting number of platforms... DEBUG: Executning statement: clGetPlatformIDs(0, NULL, &num_platforms) >clinfo-workaround-win32.exe Initializing clew... clew initialization success! Symbol table: clGetPlatformIDs: 736E3480 clGetDeviceIDs: 736E2080 clGetPlatformInfo: 736E3520 clGetDeviceInfo: 736E2120 Getting number of platforms using workaround... DEBUG: Executning statement: clGetPlatformIDs(1, &platform_id, &num_platforms) ```

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @techtonik

Added subscriber: @techtonik

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2017-01-13 12:37:26 +01:00

Am sorry, but this is not a bug report at all. As for getting a patched version of 2.76, you may try to get git repo, switch to 2.76b tag, merge in the specific commits fixing your issue (not sure which they are, you'll have to read the logs), and if merge is successful you’re done. We cannot feature backports ourselves, our time is already way over-eaten by release and maintenance tasks.

Am sorry, but this is not a bug report at all. As for getting a patched version of 2.76, you may try to [get git repo](https://wiki.blender.org/index.php/Dev:Doc/Tools/Git), switch to 2.76b tag, merge in the specific commits fixing your issue (not sure which they are, you'll have to read the logs), and if merge is successful you’re done. We cannot feature backports ourselves, our time is already way over-eaten by release and maintenance tasks.

2.78 doesn't start at all, and 2.76 crashes on System. How come that this is not a bug report? =(

It is a pity that I had to buy a new notebook for new Blender versions. And then it will be 3.1, ES 3.0, Vulkan.. Can Blender be shipped with ANGLE at least to support low end systems on 2.x series? https://github.com/google/angle

2.78 doesn't start at all, and 2.76 crashes on System. How come that this is not a bug report? =( It is a pity that I had to buy a new notebook for new Blender versions. And then it will be 3.1, ES 3.0, Vulkan.. Can Blender be shipped with ANGLE at least to support low end systems on 2.x series? https://github.com/google/angle

We cannot keep supporting old, low-level hardware forever, Blender is already way ahead of any other 3D suite here (most only support two or three years old GPUs - and usually not the integrated ones even), and keeping our cuurent level of support for old-ish hardware is already quite a burden sometimes.

Also, please follow our submission template and guidelines and make a complete, valid bug report, with required info (especially hardware one), it’s pretty much impossible to be specific in that case without even knowing your GPU (though “intel videocard” is not encouraging at all)!

We cannot keep supporting old, low-level hardware forever, Blender is already way ahead of any other 3D suite here (most only support two or three years old GPUs - and usually not the integrated ones even), and keeping our cuurent level of support for old-ish hardware is already quite a burden sometimes. Also, please follow our [submission template and guidelines](https://developer.blender.org/maniphest/task/edit/form/1/) and make a complete, valid bug report, with required info (especially hardware one), it’s pretty much impossible to be specific in that case without even knowing your GPU (though “intel videocard” is not encouraging at all)!

@mont29 fixed the description with template.

@mont29 fixed the description with template.

Added subscriber: @MikeErwin

Added subscriber: @MikeErwin

Thanks for the updates, but that only confirms what I was saying to you - GMA 4500MHD is a very low-level GPU from over 8 years ago, with buggy drivers that never really got fixed even, iirc… In theory, it should be able to run with any 2.7x blender (since it claims to support OpenGL 2.1), though, @MikeErwin shall know better about that hopefully?

Note that you may want to ensure you do have latest Intel drivers (and not those featured by your laptop manufacturer), original drivers for that chipset did not had OGL 2.1 support at all afaik.

But this boils down to: sorry, but we cannot spend time and energy trying to support and old 'GPU' that was never designed to be used with high-end 3D suite in the first hand, let alone modern ones.

Thanks for the updates, but that only confirms what I was saying to you - GMA 4500MHD is a very low-level GPU from over 8 years ago, with buggy drivers that never really got fixed even, iirc… In theory, it should be able to run with any 2.7x blender (since it claims to support OpenGL 2.1), though, @MikeErwin shall know better about that hopefully? Note that you may want to ensure you do have latest Intel drivers (and not those featured by your laptop manufacturer), original drivers for that chipset did not had OGL 2.1 support at all afaik. But this boils down to: sorry, but we cannot spend time and energy trying to support and old 'GPU' that was never designed to be used with high-end 3D suite in the first hand, let alone modern ones.
Member

https://en.wikipedia.org/wiki/List_of_Intel_graphics_processing_units#Fourth_generation
According to this page, the GPU can handle OpenGL 2.1 but Windows drivers only go up to 2.0. Reminds me of similar Intel/Windows limits on the newer HD 3000.

@techtonik Please generate system-info.txt from Blender and attach here. Also your GLSL version. Open Blender's Python console and type:

>>> import bgl
>>> bgl.glGetString(bgl.GL_SHADING_LANGUAGE_VERSION)

If your system can do GL 2.0 plus GLSL 1.20 there might be hope! I am considering making the requirements a little looser for Blender 2.79 — mostly as a personal project but it could be useful to others. 2.79 has lots of fixes compared to 2.76b, including the OpenCL detect crash you reference.

https://en.wikipedia.org/wiki/List_of_Intel_graphics_processing_units#Fourth_generation According to this page, the GPU can handle OpenGL 2.1 but Windows drivers only go up to 2.0. Reminds me of similar Intel/Windows limits on the newer HD 3000. @techtonik Please generate system-info.txt from Blender and attach here. Also your GLSL version. Open Blender's Python console and type: ``` >>> import bgl >>> bgl.glGetString(bgl.GL_SHADING_LANGUAGE_VERSION) ``` If your system can do GL 2.0 plus GLSL 1.20 there might be hope! I am considering making the requirements a little looser for Blender 2.79 — mostly as a personal project but it could be useful to others. 2.79 has lots of fixes compared to 2.76b, including the OpenCL detect crash you reference.

@MikeErwin cannot generate system-info.txt - Blender crashes when I choose this menu option.

>>> import bgl
>>> bgl.glGetString(bgl.GL_SHADING_LANGUAGE_VERSION)

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
AttributeError: could not get opengl string
@MikeErwin cannot generate system-info.txt - Blender crashes when I choose this menu option. ``` >>> import bgl >>> bgl.glGetString(bgl.GL_SHADING_LANGUAGE_VERSION) Traceback (most recent call last): File "<blender_console>", line 1, in <module> AttributeError: could not get opengl string ```

@mont29 maybe tackling this specific PC/OS/GPU may fit broader scope of generic framework for handling GPU problems? New bugs with GPUs, co-processors and standards are constantly evolving, and it may save a lot of time in the long run to share efforts for their identification and workarounds.

For my Windows DX9 drivers are fine, so switching to a backing renderer via ANGLE can fix the bug for me https://chromium.googlesource.com/angle/angle/+/master/README.md

But in the long run it would be interesting to collect various bugs and tests for https:*piglit.freedesktop.org/ and switch to compatibility layer like https:*github.com/p3/regal if test fails.

@mont29 maybe tackling this specific PC/OS/GPU may fit broader scope of generic framework for handling GPU problems? New bugs with GPUs, co-processors and standards are constantly evolving, and it may save a lot of time in the long run to share efforts for their identification and workarounds. For my Windows DX9 drivers are fine, so switching to a backing renderer via ANGLE can fix the bug for me https://chromium.googlesource.com/angle/angle/+/master/README.md But in the long run it would be interesting to collect various bugs and tests for https:*piglit.freedesktop.org/ and switch to compatibility layer like https:*github.com/p3/regal if test fails.
Member

OpenGLinfo.zip

I wrote a simple OpenGL info program. @techtonik please run this and attach OpenGLinfo.txt it generates. That will give us more info about your system & help us decide what to do.

[OpenGLinfo.zip](https://archive.blender.org/developer/F437563/OpenGLinfo.zip) I wrote a simple OpenGL info program. @techtonik please run this and attach OpenGLinfo.txt it generates. That will give us more info about your system & help us decide what to do.

Thanks. Here is the output OpenGLinfo.txt from OpenGLinfo.zip and also logs produced by glewinfo.exe and visualinfo.exe from GLEW-2.0 - glewinfo.txt and visualinfo.txt

Thanks. Here is the output [OpenGLinfo.txt](https://archive.blender.org/developer/F437814/OpenGLinfo.txt) from OpenGLinfo.zip and also logs produced by glewinfo.exe and visualinfo.exe from GLEW-2.0 - [glewinfo.txt](https://archive.blender.org/developer/F437820/glewinfo.txt) and [visualinfo.txt](https://archive.blender.org/developer/F437821/visualinfo.txt)
Member

From those reports it seems you have no Intel driver running. Grab it here:
https://downloadcenter.intel.com/product/81503/Intel-HD-Graphics-for-Previous-Generation-Intel-Processors

That probably(?) won't fix this CL issue, but performance will be better in general.

From those reports it seems you have no Intel driver running. Grab it here: https://downloadcenter.intel.com/product/81503/Intel-HD-Graphics-for-Previous-Generation-Intel-Processors That probably(?) won't fix this CL issue, but performance will be better in general.

I installed latest https://downloadcenter.intel.com/product/81507/Graphics-Drivers-for-Mobile-Intel-4-Series-Express-Chipset-Family which seems more appropriate for my chipset after getting blue screen with the Intel HD drivers. OpenGLinfo.txt now shows proper OpenGL version 2.1.0 and User Preferences... -> System doesn't crash anymore.

2.78a e8299c8 also started correctly. But I see only white squares for icons - 2.78a-white-squares.png

I installed latest https://downloadcenter.intel.com/product/81507/Graphics-Drivers-for-Mobile-Intel-4-Series-Express-Chipset-Family which seems more appropriate for my chipset after getting blue screen with the Intel HD drivers. [OpenGLinfo.txt](https://archive.blender.org/developer/F438750/OpenGLinfo.txt) now shows proper OpenGL version 2.1.0 and `User Preferences... -> System` doesn't crash anymore. 2.78a e8299c8 also started correctly. But I see only white squares for icons - ![2.78a-white-squares.png](https://archive.blender.org/developer/F438757/2.78a-white-squares.png)
Member

Cool! I'm guessing there is an image containing all icons which exceeds the reported texture size limit of 512x512. But that is just a guess.

Cool! I'm *guessing* there is an image containing all icons which exceeds the reported texture size limit of 512x512. But that is just a guess.

There are two error messages in the console:

Warning! Unable to find a pixel format that supports WGL_SWAP_COPY_ARB. Substituting one that uses
 WGL_SWAP_UNDEFINED_ARB.
WM: failed to allocate texture for triple buffer drawing (texture too large for graphics card).

How can I debug further? I've made blender-app.trace with apitrace.exe trace blender.exe - does it help?

There are two error messages in the console: ``` Warning! Unable to find a pixel format that supports WGL_SWAP_COPY_ARB. Substituting one that uses WGL_SWAP_UNDEFINED_ARB. WM: failed to allocate texture for triple buffer drawing (texture too large for graphics card). ``` How can I debug further? I've made [blender-app.trace](https://archive.blender.org/developer/F438840/blender-app.trace) with `apitrace.exe trace blender.exe` - does it help?
Member

For the 2nd message, go to UserPrefs > System > Window Draw Method and choose another method.

For the 2nd message, go to UserPrefs > System > Window Draw Method and choose another method.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#50408
No description provided.