Remove Render Slot not working for first slot #100330

Closed
opened 2022-08-10 19:13:58 +02:00 by Eugene Du · 10 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12

Blender Version
Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: bcfdb14560
Broken: version: 2.93.10, branch: master, commit date: 2022-08-02 18:21, hash: 0a65e1a8e7

Short description of error
Removing FIRST render slot not working

Exact steps for others to reproduce the error

  1. Go to Rendering workspace and select render slot 1 (if not selected).
  2. Remove Render Slot for slot number 2 - working.
  3. Remove Render Slot for slot number 1 - not working.

Related to this https://developer.blender.org/T100142

Moreover, if you try to override operator for removing (or clear) first slot it cause for CRASH Blender.
Try to run code:

import bpy

# Saving current area
area = bpy.context.area
old_type = area.type

# Overriding start
area_type = 'IMAGE_EDITOR'

bpy.context.area.ui_type = area_type # or use (bpy.context.window.screen.areas[5].ui_type = area_type) to change another area to image editor  

areas  = [area for area in bpy.context.window.screen.areas if area.type == area_type]
area = areas[0]
area.spaces.active.image = bpy.data.images['Render Result']

override = {
    'window': bpy.context.window,
    'screen': bpy.context.window.screen,
    'area': area,
    'region': [region for region in area.regions if region.type == 'WINDOW'][0],
}

bpy.ops.image.remove_render_slot(override)
- bpy.ops.image.clear_render_slot(override)
- Overriding end

# Reset the area 
area.type = old_type
**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1650 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 **Blender Version** Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: `bcfdb14560` Broken: version: 2.93.10, branch: master, commit date: 2022-08-02 18:21, hash: `0a65e1a8e7` **Short description of error** Removing FIRST render slot not working **Exact steps for others to reproduce the error** 1. Go to Rendering workspace and select render slot 1 (if not selected). 2. Remove Render Slot for slot number 2 - working. 3. Remove Render Slot for slot number 1 - not working. Related to this https://developer.blender.org/T100142 Moreover, if you try to override operator for removing (or clear) first slot it cause for CRASH Blender. Try to run code: ``` import bpy # Saving current area area = bpy.context.area old_type = area.type # Overriding start area_type = 'IMAGE_EDITOR' bpy.context.area.ui_type = area_type # or use (bpy.context.window.screen.areas[5].ui_type = area_type) to change another area to image editor areas = [area for area in bpy.context.window.screen.areas if area.type == area_type] area = areas[0] area.spaces.active.image = bpy.data.images['Render Result'] override = { 'window': bpy.context.window, 'screen': bpy.context.window.screen, 'area': area, 'region': [region for region in area.regions if region.type == 'WINDOW'][0], } bpy.ops.image.remove_render_slot(override) - bpy.ops.image.clear_render_slot(override) - Overriding end # Reset the area area.type = old_type ```
Author

Added subscriber: @APEC

Added subscriber: @APEC

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I cannot reproduce this with either the latest stable or current development versions of Blender.

GIF:
Aug-10-2022 17-49-00.gif

Please try the latest daily build: https://builder.blender.org/download/

Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue.

If the problem persists, please give us more clear instructions on how to reproduce it from scratch.

I cannot reproduce this with either the latest stable or current development versions of Blender. GIF: ![Aug-10-2022 17-49-00.gif](https://archive.blender.org/developer/F13358614/Aug-10-2022_17-49-00.gif) Please try the latest daily build: https://builder.blender.org/download/ Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue. If the problem persists, please give us more clear instructions on how to reproduce it from scratch.
Author
bug in 2.93.10 bug in 3.2.2
Remove_Render_Slot_bug_2.93.10.mp4 Remove_Render_Slot_bug_3.2.2.mp4

and what about overriding crash?

Added:
I also tried
version: 3.4.0 Alpha, branch: master, commit date: 2022-08-10 23:20, hash: fb7ef40006
the same.

Added2:
Crash happen only for first slot. So it in some kind of block state for global overriding and blender crash when you trying to clear or remove it outside of real IMAGE_EDITOR window.

|bug in 2.93.10|bug in 3.2.2| | -- | -- | |[Remove_Render_Slot_bug_2.93.10.mp4](https://archive.blender.org/developer/F13361037/Remove_Render_Slot_bug_2.93.10.mp4)|[Remove_Render_Slot_bug_3.2.2.mp4](https://archive.blender.org/developer/F13361038/Remove_Render_Slot_bug_3.2.2.mp4)| and what about overriding crash? Added: I also tried version: 3.4.0 Alpha, branch: master, commit date: 2022-08-10 23:20, hash: `fb7ef40006` the same. Added2: Crash happen only for first slot. So it in some kind of block state for global overriding and blender crash when you trying to clear or remove it outside of real IMAGE_EDITOR window.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

I tested it again and now I can repro the problem. (Slot 1 cannot be removed)
I don't know how it worked before.

I tested it again and now I can repro the problem. (Slot 1 cannot be removed) I don't know how it worked before.
Lukas Stockner self-assigned this 2022-09-17 01:00:32 +02:00

This issue was referenced by 72a34ab1b9

This issue was referenced by 72a34ab1b91d56926aeee8677b2896d583f1cd8f

This issue was referenced by f8a3ec48e4

This issue was referenced by f8a3ec48e4babf4a907b0350c5f7bd050343466f
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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, 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
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
Core
Module
Development Management
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
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
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#100330
No description provided.