OBJECT_OT_editmode_toggle crashes due to mismatch in context when setting bpy.context.screen.scene
#43976
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#43976
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
Win8.1 x64
Blender Version
Broken: Blender 2.73 daily build(x86) (sub 9), Commit date: 2015-03-09 17:45, Hash
afa8a0a
Short description of error
Silently Crash when scene's FULL_COPY.
Crash report: untitled.crash.txt
Script: vrm.py
.Blend file: untitled.blend
Exact steps for others to reproduce the error
Changed status to: 'Open'
Added subscriber: @tamachan
Added subscriber: @mont29
Eeeeeh! We cannot take into account a full script like that, error is most likely in py code and we cannot check the whole of it. There are many ways to make Blender crash from python scripting…
Unless you can prove issue is on Blender side, by making a simple reproducible case (within a few lines of python), of course.
New slimed script: vrm.py
Exact steps for others to reproduce the error
Added subscriber: @ideasman42
OK, so issue is, once you have assigned your new scene to
bpy.context.screen.scene
, that one andbpy.context.scene
do not match (the later staying at old scene, simple prints show that easily).Campbell, not quite sure this is expected? And if so, how to work around that?
Silently Crash when scene's FULL_COPY.to OBJECT_OT_editmode_toggle crashes due to mismatch in context when setting `bpy.context.screen.scene`The buttons context has its own scene which isn't necessarily the same as the screen's scene.
In this case you don't really want to be using the properties context. use
EXEC_SCREEN/INVOKE_SCREEN
context. See file attached.vrm-1.py
However strongly recommend to not use editmode to get the mesh data, use
bmesh.from_edit_mesh(mesh)
instead.Changed status from 'Open' to: 'Archived'
This issue was referenced by
06cc89d744
Fixed crash but the workaround is still needed.
Changed status from 'Archived' to: 'Resolved'
Closed by commit
06cc89d744
.