GPU Compositor: Cryptomatte node crashes blender #122654

Closed
opened 2024-06-03 13:20:05 +02:00 by Andy Goralczyk · 7 comments
Member

System Information
Operating system: Linux-6.8.9-gentoo-x86_64-AMD_Ryzen_Threadripper_3970X_32-Core_Processor-with-glibc2.39 64 Bits, X11 UI
Graphics card: Quadro RTX 8000/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.78

Blender Version
Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-06-02 20:26, hash: 05f8d3565248
Worked: 4.2.0 hash: c3b985906d39

Short description of error
Cryptomatte node crashes the compositor when GPU is enabled.

Exact steps for others to reproduce the error
Load the attached file, go to the compositor and switch from CPU to GPU. It should crash without even having to render.

Alternatively (without the above file), just add a Cryptomatte node to the comp setup and toggle GPU compositor.

**System Information** Operating system: Linux-6.8.9-gentoo-x86_64-AMD_Ryzen_Threadripper_3970X_32-Core_Processor-with-glibc2.39 64 Bits, X11 UI Graphics card: Quadro RTX 8000/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.78 **Blender Version** Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-06-02 20:26, hash: `05f8d3565248` Worked: 4.2.0 hash: `c3b985906d39` **Short description of error** Cryptomatte node crashes the compositor when GPU is enabled. **Exact steps for others to reproduce the error** Load the attached file, go to the compositor and switch from CPU to GPU. It should crash without even having to render. Alternatively (without the above file), just add a Cryptomatte node to the comp setup and toggle GPU compositor.
Andy Goralczyk added the
Type
Report
Severity
Normal
Status
Needs Triage
labels 2024-06-03 13:20:06 +02:00
Member

Can confirm. Here it crashed at glGenBuffers in GPU_context_create in RE_blender_gpu_context_ensure.

Can confirm. Here it crashed at `glGenBuffers` in `GPU_context_create` in `RE_blender_gpu_context_ensure`.
YimingWu added
Module
Render & Cycles
Status
Confirmed
Interest
Compositing
and removed
Status
Needs Triage
labels 2024-06-03 13:40:50 +02:00
YimingWu added
Severity
High
and removed
Severity
Normal
labels 2024-06-03 13:42:02 +02:00
Member

@OmarEmaraDev this broke it 2b1e825545

@OmarEmaraDev this broke it 2b1e825545a19876ff1cf3842aae0434e9567bed
Member

I just wanted to add that I can't reproduce this issue on my system. Although keep in mind that I am using a Mac with the Metal GPU backend, so there may be some differences there.

System Information
Operating system: macOS-14.4.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Pro 1.2
Blender version: 4.2.0 Alpha, branch: main, commit date: 2024-06-03 12:23, hash: 3f67abfe3cf2

I just wanted to add that I can't reproduce this issue on my system. Although keep in mind that I am using a Mac with the Metal GPU backend, so there may be some differences there. **System Information** Operating system: macOS-14.4.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Pro 1.2 Blender version: 4.2.0 Alpha, branch: main, commit date: 2024-06-03 12:23, hash: `3f67abfe3cf2`
Member

Unable to reproduce on Linux + X11 + AMD mesa.

Unable to reproduce on Linux + X11 + AMD mesa.
Member

@ChengduLittleA Can you apply #122661 and see if it makes a difference?

@ChengduLittleA Can you apply #122661 and see if it makes a difference?
Member

Call stack here:

I'm on Linux + X11 + NVIDIA. blender_gpu_context is null so it gets into this state:

[Unknown/Just-In-Time compiled code] (未知源:0)
blender::gpu::GLContext::GLContext(blender::gpu::GLContext * const this, void * ghost_window, blender::gpu::GLSharedOrphanLists & shared_orphan_list) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpu/opengl/gl_context.cc:44)
blender::gpu::GLBackend::context_alloc(blender::gpu::GLBackend * const this, void * ghost_window) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpu/opengl/gl_backend.hh:74)
GPU_context_create(void * ghost_window, void * ghost_context) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpu/intern/gpu_context.cc:108)
RE_blender_gpu_context_ensure(Render * re) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/pipeline.cc:1026)
blender::render::RealtimeCompositor::execute(blender::render::RealtimeCompositor * const this, const blender::render::ContextInputData & input_data) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/compositor.cc:535)
Render::compositor_execute(Render * const this, const Scene & scene, const RenderData & render_data, const bNodeTree & node_tree, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/compositor.cc:585)
RE_compositor_execute(Render & render, const Scene & scene, const RenderData & render_data, const bNodeTree & node_tree, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/compositor.cc:606)
COM_execute(Render * render, RenderData * render_data, Scene * scene, bNodeTree * node_tree, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/compositor/intern/COM_compositor.cc:82)
ntreeCompositExecTree(Render * render, Scene * scene, bNodeTree * ntree, RenderData * rd, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/nodes/composite/node_composite_tree.cc:187)
blender::ed::space_node::compo_startjob(void * cjv, wmJobWorkerStatus * worker_status) (/home/yiming/Downloads/BlenderMain/blender/source/blender/editors/space_node/node_edit.cc:301)
do_job_thread(void * job_v) (/home/yiming/Downloads/BlenderMain/blender/source/blender/windowmanager/intern/wm_jobs.cc:398)
tslot_thread_start(void * tslot_p) (/home/yiming/Downloads/BlenderMain/blender/source/blender/blenlib/intern/threads.cc:176)
libc.so.6!start_thread(void * arg) (pthread_create.c:442)
libc.so.6!clone3() (clone3.S:81)
Call stack here: I'm on Linux + X11 + NVIDIA. `blender_gpu_context` is null so it gets into this state: ``` [Unknown/Just-In-Time compiled code] (未知源:0) blender::gpu::GLContext::GLContext(blender::gpu::GLContext * const this, void * ghost_window, blender::gpu::GLSharedOrphanLists & shared_orphan_list) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpu/opengl/gl_context.cc:44) blender::gpu::GLBackend::context_alloc(blender::gpu::GLBackend * const this, void * ghost_window) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpu/opengl/gl_backend.hh:74) GPU_context_create(void * ghost_window, void * ghost_context) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpu/intern/gpu_context.cc:108) RE_blender_gpu_context_ensure(Render * re) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/pipeline.cc:1026) blender::render::RealtimeCompositor::execute(blender::render::RealtimeCompositor * const this, const blender::render::ContextInputData & input_data) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/compositor.cc:535) Render::compositor_execute(Render * const this, const Scene & scene, const RenderData & render_data, const bNodeTree & node_tree, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/compositor.cc:585) RE_compositor_execute(Render & render, const Scene & scene, const RenderData & render_data, const bNodeTree & node_tree, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/render/intern/compositor.cc:606) COM_execute(Render * render, RenderData * render_data, Scene * scene, bNodeTree * node_tree, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/compositor/intern/COM_compositor.cc:82) ntreeCompositExecTree(Render * render, Scene * scene, bNodeTree * ntree, RenderData * rd, const char * view_name, blender::realtime_compositor::RenderContext * render_context, blender::realtime_compositor::Profiler * profiler) (/home/yiming/Downloads/BlenderMain/blender/source/blender/nodes/composite/node_composite_tree.cc:187) blender::ed::space_node::compo_startjob(void * cjv, wmJobWorkerStatus * worker_status) (/home/yiming/Downloads/BlenderMain/blender/source/blender/editors/space_node/node_edit.cc:301) do_job_thread(void * job_v) (/home/yiming/Downloads/BlenderMain/blender/source/blender/windowmanager/intern/wm_jobs.cc:398) tslot_thread_start(void * tslot_p) (/home/yiming/Downloads/BlenderMain/blender/source/blender/blenlib/intern/threads.cc:176) libc.so.6!start_thread(void * arg) (pthread_create.c:442) libc.so.6!clone3() (clone3.S:81) ```
Omar Emara added
Module
VFX & Video
and removed
Module
Render & Cycles
labels 2024-06-04 09:23:10 +02:00
Member

Still crashes in 595ac21d85 for me

Still crashes in 595ac21d8524 for me
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-06-04 13:12:51 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
5 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#122654
No description provided.