ACCESS VIOLATION when changing workspace from python #129405
Labels
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#129405
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 561.09
Blender Version
Broken: version: 4.4.0 Alpha, branch: main, commit date: 2024-10-12 12:21, hash:
191b347f5813
Worked: (newest version of Blender that worked as expected)
Exact steps for others to reproduce the error
When using the below code in an operator (EXEC_DEFAULT), not a modal, Blender crashes with an access violation intermittently:
The workspace is imported from another file via python. Perhaps this could be the cause? The crash doesn't happen immediately afterwards, it may successfully switch to the workspace several times before crashing. Here's the code used to successfully import the workspace:
Additionally (unsure if related), when the access violation does not happen and the workspace changes successfully, bpy.context.screen.areas does not update to reflect the content of the workspace. For example, the workspace I'm changing to has two image editors, but the below code doesn't find any if the workspace has been changed to in the same operator execution.
ACCESS VIOLSATION when changing workspace from pythonto ACCESS VIOLATION when changing workspace from pythonClearer instructions on how to reproduce the issue would be helpful. Can you please share it with us?
Just for the record, I did try to reproduce the issue by:
System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 565.90
Blender version: 4.4.0 Alpha, branch: main, commit date: 2024-10-26 11:51, hash:
e9298dced494
Hi, thanks. I believe to replicate, the code I provided needs running from an addon (not extension) rather than the script editor, and requires all three things to happen within the single operator call:
I'm up against it currently, so don't have a spare moment for the next couple of weeks, but if you don't have a blank addon you can drop the code I provided into, I'll create an addon for you after that period 👍
Thanks for the info. I will se to
Needs Triage
at the moment, but I'll take another look at it either tomorrow or later this week.Hi, can we get .py or zip addon file? I believe you're importing workspace file with an operator written in add-on?
Sorry but steps are still not very clear to me :/
No problem. I should be able to get that created for you next week 👍
Using the steps provided I created this addon and couldn't reproduce the issue.
Steps to use this addon:
Object -> Simple Object Operator
Hi, any updates?
Sorry I'm still flat out on another project. I'll test and modify Alaska's addon so that it generates the violation ASAP 👍