Assert displaying Z-Buffer in image editor #79573

Closed
opened 2020-08-06 01:20:43 +02:00 by Robert Guetzkow · 10 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.30

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-05 19:34, hash: f41eb8b2a9
Worked: 2.83.4

Short description of error
Selecting the Z-Buffer as display channel for a rendered image causes an assert in a debug build of Blender. A release build doesn't display the Z-Buffer properly.

immDrawPixelsTexScaled_clipping(IMMDrawPixelsTexState * state, float x, float y, int img_w, int img_h, eGPUTextureFormat gpu_format, bool use_filter, void * rect, float scaleX, float scaleY, float clip_min_x, float clip_min_y, float clip_max_x, float clip_max_y, float xzoom, float yzoom, float * color) Line 127	C
immDrawPixelsTex(IMMDrawPixelsTexState * state, float x, float y, int img_w, int img_h, eGPUTextureFormat gpu_format, bool use_filter, void * rect, float xzoom, float yzoom, float * color) Line 325	C
sima_draw_zbuffloat_pixels(Scene * scene, float x1, float y1, int rectx, int recty, const float * rect_float, float zoomx, float zoomy) Line 530	C
draw_image_buffer(const bContext * C, SpaceImage * sima, ARegion * region, Scene * scene, ImBuf * ibuf, float fx, float fy, float zoomx, float zoomy) Line 592	C
draw_image_main(const bContext * C, ARegion * region) Line 965	C
image_main_region_draw(const bContext * C, ARegion * region) Line 677	C
ED_region_do_draw(bContext * C, ARegion * region) Line 543	C
wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 699	C
wm_draw_window(bContext * C, wmWindow * win) Line 827	C
wm_draw_update(bContext * C) Line 1030	C
WM_main(bContext * C) Line 482	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 548	C

Exact steps for others to reproduce the error

  1. Create a debug build of Blender
  2. Render an image
  3. Select the Z-Buffer in the display channel drop-down in the image editor
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.30 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-05 19:34, hash: `f41eb8b2a9` Worked: 2.83.4 **Short description of error** Selecting the Z-Buffer as display channel for a rendered image causes an assert in a debug build of Blender. A release build doesn't display the Z-Buffer properly. ``` immDrawPixelsTexScaled_clipping(IMMDrawPixelsTexState * state, float x, float y, int img_w, int img_h, eGPUTextureFormat gpu_format, bool use_filter, void * rect, float scaleX, float scaleY, float clip_min_x, float clip_min_y, float clip_max_x, float clip_max_y, float xzoom, float yzoom, float * color) Line 127 C immDrawPixelsTex(IMMDrawPixelsTexState * state, float x, float y, int img_w, int img_h, eGPUTextureFormat gpu_format, bool use_filter, void * rect, float xzoom, float yzoom, float * color) Line 325 C sima_draw_zbuffloat_pixels(Scene * scene, float x1, float y1, int rectx, int recty, const float * rect_float, float zoomx, float zoomy) Line 530 C draw_image_buffer(const bContext * C, SpaceImage * sima, ARegion * region, Scene * scene, ImBuf * ibuf, float fx, float fy, float zoomx, float zoomy) Line 592 C draw_image_main(const bContext * C, ARegion * region) Line 965 C image_main_region_draw(const bContext * C, ARegion * region) Line 677 C ED_region_do_draw(bContext * C, ARegion * region) Line 543 C wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 699 C wm_draw_window(bContext * C, wmWindow * win) Line 827 C wm_draw_update(bContext * C) Line 1030 C WM_main(bContext * C) Line 482 C main(int argc, const unsigned char * * UNUSED_argv_c) Line 548 C ``` **Exact steps for others to reproduce the error** 1. Create a debug build of Blender 2. Render an image 3. Select the Z-Buffer in the display channel drop-down in the image editor
Author
Member

Added subscriber: @rjg

Added subscriber: @rjg

Added subscriber: @iss

Added subscriber: @iss

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

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

Triggered BLI_assert(!"Incompatible format passed to immDrawPixels");

Triggered `BLI_assert(!"Incompatible format passed to immDrawPixels");`
Robert Guetzkow changed title from Crash displaying the Z-Buffer the image editor to Assert displaying Z-Buffer in image editor 2020-08-06 09:45:32 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Looks like {025dc31d28}?

Looks like {025dc31d28}?
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jeroen Bakker self-assigned this 2020-09-25 17:02:31 +02:00
Member

This code path isn't in use anymore I will close the issue. If there are still problems please let us know! Issue has been addressed by D8234.

This code path isn't in use anymore I will close the issue. If there are still problems please let us know! Issue has been addressed by [D8234](https://archive.blender.org/developer/D8234).
Author
Member

I can confirm that it works fine with the changes to the Image Editor.

I can confirm that it works fine with the changes to the Image Editor.
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
4 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#79573
No description provided.