Blender crash on GPUFrameBuffer creation #88345
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#88345
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Ubuntu 20.04, MacOS 11 Big Sur
Graphics card: Nvidia RTX 2060 (Radeon HD 5770, Intel i5 Iris Plus)
Blender Version
Broken: 2.93.0 Beta
Short description of error
Binding color slots to GPUFrameBuffer crashes blender
Exact steps for others to reproduce the error
Just try to run the following code from text editor:
The last line crashes blender. Although binding only the depth buffer works:
The crash report doesn't look informative
Maybe I'm doing something terribly wrong but it seems that such code should not crash blender anyway
Added subscriber: @blendersamsonov
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Passing a tuple (instead of a list) works on my end:
Can confirm the crash though, should not happen.
In your case
color
variable actually has aGPUTexture
type. Passing real tuple like that also crashes blender:Although passing a tuple generator actually works as expected
Implicit casting should be implemented though
@lichtwerk thanks for directing to the workaround anyway!
Added subscriber: @mano-wii
First I was confused about starting with index 1 here https://developer.blender.org/diffusion/B/browse/master/source/blender/python/gpu/gpu_py_framebuffer.c$326.
But that does not seem to be the real underlying issue
@mano-wii: even if this is "wrong" usage, can we prevent the crash?
doh
thx digging @blendersamsonov
btw, seems like I found another bug in the current
gpu
implementation: https://developer.blender.org/T88365. It might be not directly related but stillNice catch, in fact it was a confusion between the index of
color_attachements
andconfig
during the implementation.It seems like a simple fix.
This issue was referenced by
4bb2a5b5cb
This issue was referenced by
ea7b00c64f
Changed status from 'Confirmed' to: 'Resolved'