Blender crash when change to edit mode with Intel GPU #51576

Closed
opened 2017-05-21 12:59:56 +02:00 by Antonio Vazquez · 46 comments

OS: Windows 10 64 bits
GPU: Intel Iris PRO Graphics 5200
Using last 2.8 daily Windows build or compiling last sources with Visual Studio 2015 64bits.

This error only appears when using Intel GPU, we have tested in several Nvidia GPUs and works perfect. I was unable to reproduce in my PC, but @pepe-school-land gets the error all the times in two PCs with Intel cards.

To reproduce:

  1. Start blender with default scene
  2. Enter in edit mode for default cube.
  3. Exception (no log generated).

Blender crash with exception and doesn't generate any log, so we have produced the error using a debug sessión in VS2015 and this is the call stack:

GPU_shader_create_ex(const unsigned char * vertexcode, const unsigned char * fragcode, const unsigned char * geocode, const unsigned char * libcode, const unsigned char * defines, const int flags) Línea 423	C
GPU_shader_create(const unsigned char * vertexcode, const unsigned char * fragcode, const unsigned char * geocode, const unsigned char * libcode, const unsigned char * defines) Línea 275	C
DRW_shader_create_with_lib(const unsigned char * vert, const unsigned char * geom, const unsigned char * frag, const unsigned char * lib, const unsigned char * defines) Línea 513	C
EDIT_MESH_engine_init(void * vedata) Línea 151	C
DRW_engines_init() Línea 2305	C
DRW_draw_render_loop(Depsgraph * graph, ARegion * ar, View3D * v3d) Línea 2837	C
DRW_draw_view(const bContext * C) Línea 2797	C
view3d_draw_view(const bContext * C, ARegion * ar) Línea 1862	C
view3d_main_region_draw(const bContext * C, ARegion * ar) Línea 1884	C
ED_region_do_draw(bContext * C, ARegion * ar) Línea 560	C
wm_method_draw_triple(bContext * C, wmWindow * win) Línea 566	C
wm_draw_update(bContext * C) Línea 966	C
WM_main(bContext * C) Línea 512	C
main(int argc, const unsigned char * * UNUSED_argv_c) Línea 528	C

As I can't access to machine with Intel GPU, so we need a developer with this hardware to test.

OS: Windows 10 64 bits GPU: Intel Iris PRO Graphics 5200 Using last 2.8 daily Windows build or compiling last sources with Visual Studio 2015 64bits. This error only appears when using Intel GPU, we have tested in several Nvidia GPUs and works perfect. I was unable to reproduce in my PC, but @pepe-school-land gets the error all the times in two PCs with Intel cards. To reproduce: 1) Start blender with default scene 2) Enter in edit mode for default cube. 3) Exception (no log generated). Blender crash with exception and doesn't generate any log, so we have produced the error using a debug sessión in VS2015 and this is the call stack: ``` GPU_shader_create_ex(const unsigned char * vertexcode, const unsigned char * fragcode, const unsigned char * geocode, const unsigned char * libcode, const unsigned char * defines, const int flags) Línea 423 C GPU_shader_create(const unsigned char * vertexcode, const unsigned char * fragcode, const unsigned char * geocode, const unsigned char * libcode, const unsigned char * defines) Línea 275 C DRW_shader_create_with_lib(const unsigned char * vert, const unsigned char * geom, const unsigned char * frag, const unsigned char * lib, const unsigned char * defines) Línea 513 C EDIT_MESH_engine_init(void * vedata) Línea 151 C DRW_engines_init() Línea 2305 C DRW_draw_render_loop(Depsgraph * graph, ARegion * ar, View3D * v3d) Línea 2837 C DRW_draw_view(const bContext * C) Línea 2797 C view3d_draw_view(const bContext * C, ARegion * ar) Línea 1862 C view3d_main_region_draw(const bContext * C, ARegion * ar) Línea 1884 C ED_region_do_draw(bContext * C, ARegion * ar) Línea 560 C wm_method_draw_triple(bContext * C, wmWindow * win) Línea 566 C wm_draw_update(bContext * C) Línea 966 C WM_main(bContext * C) Línea 512 C main(int argc, const unsigned char * * UNUSED_argv_c) Línea 528 C ``` As I can't access to machine with Intel GPU, so we need a developer with this hardware to test.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscribers: @pepe-school-land, @antoniov

Added subscribers: @pepe-school-land, @antoniov

#51968 was marked as duplicate of this issue

#51968 was marked as duplicate of this issue

#51788 was marked as duplicate of this issue

#51788 was marked as duplicate of this issue
Author
Member

Added subscribers: @MikeErwin, @dfelinto

Added subscribers: @MikeErwin, @dfelinto
Author
Member

@dfelinto This is the error we were talking about on IRC last Friday. Let me know if I can help you or @MikeErwin to determine the reason of this weird error.

@dfelinto This is the error we were talking about on IRC last Friday. Let me know if I can help you or @MikeErwin to determine the reason of this weird error.
Mike Erwin self-assigned this 2017-05-21 15:36:50 +02:00
Member

I have some Windows + Intel systems here for testing.

I have some Windows + Intel systems here for testing.

Added subscriber: @newbs

Added subscriber: @newbs

Crashes on entering Edit mode while in BI render engine or Game engine.
Crashes when entering Game engine or BI render engine if already in edit mode.
Eevee, Clay and Cycles are not effected.


MSVS Throws and Unhandled exception: read access violation:

shader was nullptr

Screenshot_11.png

Crashes on entering Edit mode while in BI render engine or Game engine. Crashes when entering Game engine or BI render engine if already in edit mode. Eevee, Clay and Cycles are not effected. ``` ``` MSVS Throws and Unhandled exception: read access violation: shader was nullptr ![Screenshot_11.png](https://archive.blender.org/developer/F606362/Screenshot_11.png)
Member

Added subscriber: @fclem

Added subscriber: @fclem
Member

Crashes inside Intel graphics driver while linking one of our shaders. This one!

e_data.overlay_tri_fast_sh = DRW_shader_create_with_lib(
	datatoc_edit_mesh_overlay_vert_glsl,
	datatoc_edit_mesh_overlay_geom_tri_glsl,
	datatoc_edit_mesh_overlay_frag_glsl,
	datatoc_common_globals_lib_glsl, NULL);

Any ideas @fclem? I'll report it to Intel.

My system has HD 520 graphics, Windows 10. No problem on Macs running HD 4000 and Iris 5100, but Apple (not Intel) writes that driver.

Crashes inside Intel graphics driver while linking one of our shaders. This one! ``` e_data.overlay_tri_fast_sh = DRW_shader_create_with_lib( datatoc_edit_mesh_overlay_vert_glsl, datatoc_edit_mesh_overlay_geom_tri_glsl, datatoc_edit_mesh_overlay_frag_glsl, datatoc_common_globals_lib_glsl, NULL); ``` Any ideas @fclem? I'll report it to Intel. My system has HD 520 graphics, Windows 10. No problem on Macs running HD 4000 and Iris 5100, but Apple (not Intel) writes that driver.

Added subscriber: @Sergey

Added subscriber: @Sergey

Wasn't able to reproduce the crash on Iris Pro 580 (nuc6i7kyk machine with driver version 15.45.14.4590). There is a a newer version (15.45.18.4664) of driver available at [1].

For the Iris 5200 there seems to be no 15.45 driver, only 15.40 - [x], but it's still quite recent.

@MikeErwin, @antoniov, do you have crash with the very last drivers installed?

Wasn't able to reproduce the crash on Iris Pro 580 (nuc6i7kyk machine with driver version 15.45.14.4590). There is a a newer version (15.45.18.4664) of driver available at [1]. For the Iris 5200 there seems to be no 15.45 driver, only 15.40 - [x], but it's still quite recent. @MikeErwin, @antoniov, do you have crash with the very last drivers installed? - [x] https://downloadcenter.intel.com/download/26772/Graphics-Intel-Graphics-Driver-for-Windows-15-45- - [x] https://downloadcenter.intel.com/download/26682/Graphics-Intel-Graphics-Driver-for-Windows-15-40-

Ok, did some more testing.

Apparently 4664 has some issue which makes Blender interface to look like overscan (parts of interface are outside of visible area of window, even tho mouse is responding on it's proper location). This happens in 2.78c, so not 2.8 bug.

Driver versions 4590 and 4627 are working on both Iris Plus Graphics 640 and Iris Pro Graphics 580, Windows 10, both msvc2013 and msvc2015 builds of 2.8 branch from buildbot.

Ok, did some more testing. Apparently 4664 has some issue which makes Blender interface to look like overscan (parts of interface are outside of visible area of window, even tho mouse is responding on it's proper location). This happens in 2.78c, so not 2.8 bug. Driver versions 4590 and 4627 are working on both Iris Plus Graphics 640 and Iris Pro Graphics 580, Windows 10, both msvc2013 and msvc2015 builds of 2.8 branch from buildbot.
Member

More results from Intel HD 520 + Windows 10.

I updated the driver from Windows Device Manager. The numbering scheme is different (20.something vs 15.something) but driver build numbers are comparable. Went from version

4483 - internal driver error described earlier

to version

4627 - Eevee mesh edit mode works! BI mesh edit mode crashes in basic shader (a known fixable issue)

@antoniov & @pepe-school-land does updating the driver help on your end?

More results from Intel HD 520 + Windows 10. I updated the driver from Windows Device Manager. The numbering scheme is different (20.something vs 15.something) but driver build numbers are comparable. Went from version 4483 - internal driver error described earlier to version 4627 - Eevee mesh edit mode works! BI mesh edit mode crashes in basic shader (a known fixable issue) @antoniov & @pepe-school-land does updating the driver help on your end?
Author
Member

I cannot test this card, but @pepe-school-land Intalled driver version 20.19.15.4624 (the lastest available for windows machine with Intel Iris Pro Graphics 5200) and still has the same error.

He was unable to find a driver with version 4627 for this card.

I cannot test this card, but @pepe-school-land Intalled driver version 20.19.15.4624 (the lastest available for windows machine with Intel Iris Pro Graphics 5200) and still has the same error. He was unable to find a driver with version 4627 for this card.

Added subscriber: @moisessalvador

Added subscriber: @moisessalvador

Crashes on Windows 10 + Intel HD 530

Crashes on Windows 10 + Intel HD 530
Member

@moisessalvador what driver version? I would think HD 520 and 530 would have the same driver available.

@moisessalvador what driver version? I would think HD 520 and 530 would have the same driver available.

@MikeErwin latest one I downloaded from the device manager 20.19.15.4624

@MikeErwin latest one I downloaded from the device manager 20.19.15.4624
Member

Thanks @moisessalvador for the quick response! Hopefully Intel really fixed this between 4624 and 4627 and we just have to wait for the newer version to roll out.

Thanks @moisessalvador for the quick response! Hopefully Intel really fixed this between 4624 and 4627 and we just have to wait for the newer version to roll out.

Added subscriber: @default_monkey

Added subscriber: @default_monkey

I have the same issue on the Intel HD graphics 5500. When I change to edit mode it crashes. When ran in de bug it gave me
"ED_undo_push: Toggle Editmode
Error: EXCEPTION_ACCESS_VIOLATION"
My graphics card driver version is 20.19.15.4549 according to the Intel Graphics control panel. When I go to device manger and let it search for automatic update it says that I am fully updated.

I am running windows 10 64 bit
Latest 2.8 build

I have the same issue on the Intel HD graphics 5500. When I change to edit mode it crashes. When ran in de bug it gave me "ED_undo_push: Toggle Editmode Error: EXCEPTION_ACCESS_VIOLATION" My graphics card driver version is 20.19.15.4549 according to the Intel Graphics control panel. When I go to device manger and let it search for automatic update it says that I am fully updated. I am running windows 10 64 bit Latest 2.8 build

Added subscribers: @Shujaat, @fablefox

Added subscribers: @Shujaat, @fablefox

Driver 4534 has problems.
Drivers 4590 and 4627 work.

Driver 4534 has problems. Drivers 4590 and 4627 work.

Just to add a bit of extra info in case it is useful, blender 2.8 crashes for every engine on my machine, not just Eevee. I have tried BI, Clay and Cycles. Pressing TAB on the default scene using any of these engines crashes Blender immediately.

Just to add a bit of extra info in case it is useful, blender 2.8 crashes for every engine on my machine, not just Eevee. I have tried BI, Clay and Cycles. Pressing TAB on the default scene using any of these engines crashes Blender immediately.

Added subscriber: @CadenMitchell-3

Added subscriber: @CadenMitchell-3

This is not an error with Windows only, entering edit mode on Linux with Intel HD 3000 also crashes.

This is not an error with Windows only, entering edit mode on Linux with Intel HD 3000 also crashes.

The latest available version (July 6) crashes too.

The latest available version (July 6) crashes too.
Member

Added subscriber: @Gizmo_73

Added subscriber: @Gizmo_73

HI everyone!

Anyone with this problem (Blender crash when change to edit mode with Intel GPU) could confirm that
the any kind of keyframes dots don't show in dopesheet? I think is realted.

Daniel

HI everyone! Anyone with this problem (Blender crash when change to edit mode with Intel GPU) could confirm that the any kind of keyframes dots don't show in dopesheet? I think is realted. Daniel

Here's a quick snapshot of the Dope sheet that I took just before pressing TAB.

Blender28Crash.png

Here's a quick snapshot of the Dope sheet that I took just before pressing TAB. ![Blender28Crash.png](https://archive.blender.org/developer/F724086/Blender28Crash.png)

Hi Shujaat

The cube is animated? the problem is with an animated object the keys are not shown

Hi Shujaat The cube is animated? the problem is with an animated object the keys are not shown

Removed subscriber: @moisessalvador

Removed subscriber: @moisessalvador

Added subscriber: @Denis-3

Added subscriber: @Denis-3

Same issue here with intel HD 4600 on windows 10, after hitting tab, blender crash. Latest drivers from intel installed 20.19.15.4703. On linux also crash, not after TAB but crash. Tried several blender 2.8 builds, they all crash, including latest as of this writing.

Same issue here with intel HD 4600 on windows 10, after hitting tab, blender crash. Latest drivers from intel installed 20.19.15.4703. On linux also crash, not after TAB but crash. Tried several blender 2.8 builds, they all crash, including latest as of this writing.

I dont know if this helps, but this is the error I get starting blender 3d from cli.2.8_error.png

I dont know if this helps, but this is the error I get starting blender 3d from cli.![2.8_error.png](https://archive.blender.org/developer/F827901/2.8_error.png)

I get the EXCEPTION_ACCESS_VIOLATION error every time on Linux with HD 3000 GPU on laptop. This crashes my computer completely (not just Blender) and I have to power off with power button. This is a problem on Manjaro KDE, Kubuntu, Ubuntu Gnome, and Zorin OS 12. Most of the time this only happens with a high poly object and being close to it with perspective. If using orthographic view it never crashes for me. This may be the best solution for Intel users at least for now.

I get the EXCEPTION_ACCESS_VIOLATION error every time on Linux with HD 3000 GPU on laptop. This crashes my computer completely (not just Blender) and I have to power off with power button. This is a problem on Manjaro KDE, Kubuntu, Ubuntu Gnome, and Zorin OS 12. Most of the time this only happens with a high poly object and being close to it with perspective. If using orthographic view it never crashes for me. This may be the best solution for Intel users at least for now.

Added subscriber: @Newstage

Added subscriber: @Newstage

Eevee here crashes while trying to go to edit mode in wharever engine I am using.

I am using Intel HD Graphics 620.

Log when open: AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
Win32 Error# (3221692565):
found bundled python: C:\Users\Hudson Monteiro\Downloads\Blender\blender-2.80.0-git.14af3e4-windows64\2.80\python

Also it appears that the subsurf modifier get disabled, letting only the smooth.

Eevee here crashes while trying to go to edit mode in wharever engine I am using. I am using Intel HD Graphics 620. Log when open: AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead Win32 Error# (3221692565): <no system message> found bundled python: C:\Users\Hudson Monteiro\Downloads\Blender\blender-2.80.0-git.14af3e4-windows64\2.80\python Also it appears that the subsurf modifier get disabled, letting only the smooth.
Author
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Member

The edit crash was solved with last driver update. Still there are drawing issues, but I will open a separated bug report for that.

The edit crash was solved with last driver update. Still there are drawing issues, but I will open a separated bug report for that.

I just tested latest buildbot 2.8 with new intel hd 4600 drivers installed, and... it did not work. Here is error from console:

blender_bug.png

p.s. for some reason on linux even with old drivers eevee sort of work, it lets you go into edit mode etc, but blender crush as soon as you change render engine...

I just tested latest buildbot 2.8 with new intel hd 4600 drivers installed, and... it did not work. Here is error from console: ![blender_bug.png](https://archive.blender.org/developer/F1333297/blender_bug.png) p.s. for some reason on linux even with old drivers eevee sort of work, it lets you go into edit mode etc, but blender crush as soon as you change render engine...

Added subscriber: @alekulyn

Added subscriber: @alekulyn

Getting the same issue here on Linux with an AMD 5800K APU. Apparently, gpu_basic_shader is returning a null pointer which gets passed to GPU_shader_get_uniform, which then tries to point/access elements in that structure, resulting in a segfault.

Getting the same issue here on Linux with an AMD 5800K APU. Apparently, gpu_basic_shader is returning a null pointer which gets passed to GPU_shader_get_uniform, which then tries to point/access elements in that structure, resulting in a segfault.

This issue was referenced by 6c4bc79134

This issue was referenced by 6c4bc791343793172ec8ce731bb18e2f54343ac1
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
15 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#51576
No description provided.