MathVis sometimes refers to outdated vars #91111
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#91111
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: windwos-10
Graphics card: nvidia
Blender Version
Broken: master
Worked: n.a.
i have observed that the MathVis addon sometimes creates a stack trace because of outdated variables in the console. Below i added a brief information about how to reproduce the issue.
In general terms: i found the problem results from the function console_namespace() . Sometimes the returned console vars result in a stacktrace:
This issue seems to be related to loading a new scene from file. In that case it looks like the console is not updated consistently. The question is: what exactly leads to console.locals containing outdated vars ?
Is this something to be taken care off in the blender core functions ?
Or are the Addons expected to check for outdated vars on their own ?
I can add a try-exception block to avoid trace dumps, but maybe it is more correct to take care that the console data is always consistent with the blender scene?
Here is a recipe for making the issue visible:
mat = bpy.context.active_pose_bone.matrix
Now the mat is displayed in the viewport with name and bbox as expected.
File -> New -> General
)no vars to display
)var
and see the variable does not exist.Added subscriber: @GaiaClary
Added subscriber: @ideasman42
It looks pretty much like the Math Vis itemlist is preserved when a new file is loaded. So the main questions remains:
According to @ideasman42 in blender chat: "no, WM data isn't saved." But somehow it appearas to me this contradicts to what i see.
There was no convenient way to check if a mathutils value has an invalid owner.
Committed support for conveniently checking this blender/blender@0950cfd9d5.
Suggest to skip values that aren't valid.
@ideasman42 There is something wrong still even when i use your fix:
I suspect that maybe two console instances are involved ?
Added subscriber: @OmarEmaraDev
Changed status from 'Needs Triage' to: 'Needs User Info'
Is this still an issue? I can't replicate it myself. No variables are displayed after a new file, and window_manager.MathVisStatePropList is empty.
Just a poke regarding my inquiry above, otherwise, we will have to archive this for now.
Changed status from 'Needs User Info' to: 'Archived'
No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.
Thanks again for the report. If the problem persists please open a new report with the required information.