Crash on WIN32 running an operator with context overrides #82552
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#82552
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: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14736 Core Profile Context 20.10.1 27.20.12033.1007
Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash:
3e85bb34d0
Worked: --
Short description of error
when i use bpy.ops.screen.back_to_previous() in a addon blender crashes about every 5th time.
Exact steps for others to reproduce the error
Open any blend file and run the script, that should trigger the crash.
back_to_previous.blend
Added subscriber: @DanielGrauer
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs User Info'
Cannot reproduce here (tested master and 2.90.1)
Could you provide crash logs?
https://docs.blender.org/manual/en/dev/troubleshooting/crash.html
Added subscriber: @rjg
Cannot reproduce on Windows either.
Very strange, yesterday and the past weeks it happend all the time and today i am not able to crash it any longer. There seems to be something else im doing which im not aware yet that seems to trigger the crashing. I will try to reproduce it again.
it seems only to happen when i start blender from visual studio code so i assume its some issue with having blender attached to VSC.
Added subscriber: @JacquesLucke
Maybe @JacquesLucke can reproduce?
These could still help
@DanielGrauer Can you please provide the crash logs?
@rjg there you go blender.crash.txt
@DanielGrauer You seem to be using the Steam version that doesn't have debug symbol. Could you please download a portable version (*.zip) of Blender , extract it and repeat the steps?
@rjg
blender.crash.txt
Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Added subscriber: @ideasman42
Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'
@DanielGrauer while I can't redo the error, the crash reported happens when setting the exception - which we can avoid.
Can you check if
a9dea9cfaa
fixes the bug for you?@ideasman42 it is still crashing. I thought it was mentioned here that it is only crashing when blender is launched from Visual Studio Code. If i start blender without that it does not crash.
@DanielGrauer could you submit a new back-trace? as it should not be crashing in the same place now.
since i build my own blender i attached visual studio to blender in hope of getting more info out of it. It shows a exception but im not experienced with debugging and source code so i would either need to get assistance on that or i could ask a friend to help on that who knows these things.
Unhandled exception at 0x00007FF87646CB83 (python37.dll) in blender.exe: 0xC0000094: Integer division by zero.
Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'
@DanielGrauer thanks for the update, I've tested this with a debug build of Python3.7 and 3.9, also with valgrind but I cant redo the error.
To debug this properly you would need the Python source (or build Python locally so you have the source+symbols).
Then the line of code that's crashing in Python could hint at the problem.
Would you be able to look into this?
back_to_previous() crashes blenderto Crash on WIN32 running an operator with context overrides@ideasman42 i managed to get that working, i crashed blender a couple of times and got exceptions at 2 different places
File: Python-3.7.7\Objects\obmalloc.c
Line: 1423
Exception thrown: read access violation.
bp was nullptr.
File: Python-3.7.7\Objects\dictobject.c
Line: 1330
Exception thrown at 0x00007FFB33593D34 (python37.dll) in blender.exe: 0xC0000005: Access violation reading location 0x0000000000000058.
@DanielGrauer Is this still an issue with Python 3.9 in Blender 2.93?
@rjg i just tried with the latest master and it still crashes.
Changed status from 'Needs User Info' to: 'Needs Triage'
Changed status from 'Needs Triage' to: 'Archived'
@DanielGrauer thanks for the updated info, although I'm afraid this doesn't help narrow down the issue or point to an error in Blender's code.
Closing this report since nobody else has been able to redo the error.
While reports like this sometimes uncover errors in the code which are worth investigating and fixing, there is only so much we can do when the issue can't be recreated for investigation.