Crash while switching to edit mode with EEVEE + Geometry Nodes #94208

Open
opened 2021-12-17 22:56:20 +01:00 by Dave F · 4 comments

System Information
Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits
Graphics card: NVIDIA GeForce GT 650M OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-14.0.32 355.11.11.10.10.143

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557

Short description of error
When switching to edit mode in while the viewport's set to render it crashes (see attached video)
blender crash 2021-12-17 21-54-00.mp4

Exact steps for others to reproduce the error
1 load the attached file
2 switch to rendered view in the viewport
3 switch to edit vertex mode
4 that's a crash!

transitions_001_blender3.blend

**System Information** Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits Graphics card: NVIDIA GeForce GT 650M OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-14.0.32 355.11.11.10.10.143 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` **Short description of error** When switching to edit mode in while the viewport's set to render it crashes (see attached video) [blender crash 2021-12-17 21-54-00.mp4](https://archive.blender.org/developer/F12758792/blender_crash_2021-12-17_21-54-00.mp4) **Exact steps for others to reproduce the error** 1 load the attached file 2 switch to rendered view in the viewport 3 switch to edit vertex mode 4 that's a crash! [transitions_001_blender3.blend](https://archive.blender.org/developer/F12758791/transitions_001_blender3.blend)
Author

Added subscriber: @df-1

Added subscriber: @df-1
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Hi, thanks for the report. Can confirm the crash on master branch.

char array pointer (layer_name) isn't pointing to any relevant address here (null pointer). So attempting to access data from the memory location stored in layer_name gives crash.

stacktrace:

	blender.exe!GPU_vertformat_safe_attr_name(const char * attr_name, char * r_safe_name, unsigned int UNUSED_max_len) Line 266	C++
>	blender.exe!blender::draw::init_vbo_for_attribute(const MeshRenderData * mr, GPUVertBuf * vbo, const DRW_AttributeRequest & request) Line 170	C++

 	blender.exe!blender::draw::extract_attr_init(const MeshRenderData * mr, MeshBatchCache * cache, void * buf, void * UNUSED_tls_data, int index) Line 318	C++
 	blender.exe!blender::draw::extract_attr_init0(const MeshRenderData * mr, MeshBatchCache * cache, void * buf, void * tls_data) Line 358	C++
 	blender.exe!blender::draw::extract_init(const MeshRenderData * mr, MeshBatchCache * cache, blender::draw::ExtractorRunDatas & extractors, MeshBufferList * mbuflist, void * data_stack) Line 222	C++
 	blender.exe!blender::draw::extract_task_range_run(void * taskdata) Line 456	C++
 	blender.exe!TaskNode::run_serial() Line 102	C++
 	blender.exe!TaskNode::run_serial() Line 104	C++
 	blender.exe!BLI_task_graph_node_push_work(TaskNode * task_node) Line 150	C++
 	blender.exe!blender::draw::mesh_buffer_cache_create_requested(TaskGraph * task_graph, MeshBatchCache * cache, MeshBufferCache * mbc, Mesh * me, const bool is_editmode, const bool is_paint_mode, const bool is_mode_active, const float- [x] * obmat, const bool do_final, const bool do_uvedit, const bool use_subsurf_fdots, const Scene * scene, const ToolSettings * ts, const bool use_hide) Line 758	C++
 	blender.exe!mesh_buffer_cache_create_requested(TaskGraph * task_graph, MeshBatchCache * cache, MeshBufferCache * mbc, Mesh * me, const bool is_editmode, const bool is_paint_mode, const bool is_mode_active, const float- [x] * obmat, const bool do_final, const bool do_uvedit, const bool use_subsurf_fdots, const Scene * scene, const ToolSettings * ts, const bool use_hide) Line 819	C++
 	blender.exe!DRW_mesh_batch_cache_create_requested(TaskGraph * task_graph, Object * ob, Mesh * me, const Scene * scene, const bool is_paint_mode, const bool use_hide) Line 2063	C
 	blender.exe!drw_batch_cache_generate_requested(Object * ob) Line 3439	C
 	blender.exe!drw_engines_cache_populate(Object * ob) Line 1094	C
 	blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1697	C
 	blender.exe!DRW_draw_view(const bContext * C) Line 1610	C
 	blender.exe!view3d_draw_view(const bContext * C, ARegion * region) Line 1561	C
 	blender.exe!view3d_main_region_draw(const bContext * C, ARegion * region) Line 1584	C
 	blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 563	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 732	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 884	C
 	blender.exe!wm_draw_update(bContext * C) Line 1083	C
 	blender.exe!WM_main(bContext * C) Line 646	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 565	C
Hi, thanks for the report. Can confirm the crash on master branch. char array pointer (`layer_name`) isn't pointing to any relevant address here (null pointer). So attempting to access data from the memory location stored in `layer_name` gives crash. stacktrace: ``` lines blender.exe!GPU_vertformat_safe_attr_name(const char * attr_name, char * r_safe_name, unsigned int UNUSED_max_len) Line 266 C++ > blender.exe!blender::draw::init_vbo_for_attribute(const MeshRenderData * mr, GPUVertBuf * vbo, const DRW_AttributeRequest & request) Line 170 C++ blender.exe!blender::draw::extract_attr_init(const MeshRenderData * mr, MeshBatchCache * cache, void * buf, void * UNUSED_tls_data, int index) Line 318 C++ blender.exe!blender::draw::extract_attr_init0(const MeshRenderData * mr, MeshBatchCache * cache, void * buf, void * tls_data) Line 358 C++ blender.exe!blender::draw::extract_init(const MeshRenderData * mr, MeshBatchCache * cache, blender::draw::ExtractorRunDatas & extractors, MeshBufferList * mbuflist, void * data_stack) Line 222 C++ blender.exe!blender::draw::extract_task_range_run(void * taskdata) Line 456 C++ blender.exe!TaskNode::run_serial() Line 102 C++ blender.exe!TaskNode::run_serial() Line 104 C++ blender.exe!BLI_task_graph_node_push_work(TaskNode * task_node) Line 150 C++ blender.exe!blender::draw::mesh_buffer_cache_create_requested(TaskGraph * task_graph, MeshBatchCache * cache, MeshBufferCache * mbc, Mesh * me, const bool is_editmode, const bool is_paint_mode, const bool is_mode_active, const float- [x] * obmat, const bool do_final, const bool do_uvedit, const bool use_subsurf_fdots, const Scene * scene, const ToolSettings * ts, const bool use_hide) Line 758 C++ blender.exe!mesh_buffer_cache_create_requested(TaskGraph * task_graph, MeshBatchCache * cache, MeshBufferCache * mbc, Mesh * me, const bool is_editmode, const bool is_paint_mode, const bool is_mode_active, const float- [x] * obmat, const bool do_final, const bool do_uvedit, const bool use_subsurf_fdots, const Scene * scene, const ToolSettings * ts, const bool use_hide) Line 819 C++ blender.exe!DRW_mesh_batch_cache_create_requested(TaskGraph * task_graph, Object * ob, Mesh * me, const Scene * scene, const bool is_paint_mode, const bool use_hide) Line 2063 C blender.exe!drw_batch_cache_generate_requested(Object * ob) Line 3439 C blender.exe!drw_engines_cache_populate(Object * ob) Line 1094 C blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1697 C blender.exe!DRW_draw_view(const bContext * C) Line 1610 C blender.exe!view3d_draw_view(const bContext * C, ARegion * region) Line 1561 C blender.exe!view3d_main_region_draw(const bContext * C, ARegion * region) Line 1584 C blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 563 C blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 732 C blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 884 C blender.exe!wm_draw_update(bContext * C) Line 1083 C blender.exe!WM_main(bContext * C) Line 646 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 565 C ```
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:13:01 +01:00
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
2 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#94208
No description provided.