Bug on depsgraph #85482

Closed
opened 2021-02-09 05:50:11 +01:00 by wenye he · 6 comments

System Information
Operating system: Windows 10
Graphics card: GTX1060 6GB

Blender Version
Blender 2.91

Short description of error
I think it is a bug in depsgraph causes the wrong result... Or I made some mistakes in using depsgraph
I am writing a function to convert a NURBS curve into a poly curve. Each edge has the same length along z-axis.
For example, the curve's z-dimension is 12 meters. The curve is composed of 11 points and 10 edges. pt0.z = 0, pt1.z = 1.2, pt3.z = 2.4, ..., pt11.z = 12.
I use bmesh.ops.bisect_plane to help me.

I attach the file with the script. If I run getUniformCurveOnZ alone in the script, it is OK. However, if I want to run getUniformCurveOnZ for different objects in one execution, I have a high chance to get the wrong result.
The number of control points in NURBS may influence the result.

Exact steps for others to reproduce the error
The attached blend files, bugreport.blend includes the running result, while bugreportwithoutresult.blend doesn't.
Run the script directly in bugreportwithoutresult.blend to get the same result as shown inbugreport.blend.

Test one SpineCenterline works.
Test two SpineCenterlines give the wrong result.

You can copy my scripts and create your NURBS curves in your blender file. Just need to ensure the curve is not parallel to xy-plane.
One more thing, you can print the return vert at the end of getUniformCurveOnZ and after getUniformCurveOnZ. I don't know why they are different in SpineCenterline1.

**System Information** Operating system: Windows 10 Graphics card: GTX1060 6GB **Blender Version** Blender 2.91 **Short description of error** I think it is a bug in depsgraph causes the wrong result... Or I made some mistakes in using depsgraph I am writing a function to convert a NURBS curve into a poly curve. Each edge has the same length along z-axis. For example, the curve's z-dimension is 12 meters. The curve is composed of 11 points and 10 edges. pt0.z = 0, pt1.z = 1.2, pt3.z = 2.4, ..., pt11.z = 12. I use bmesh.ops.bisect_plane to help me. I attach the file with the script. If I run getUniformCurveOnZ alone in the script, it is OK. However, if I want to run getUniformCurveOnZ for different objects in one execution, I have a high chance to get the wrong result. The number of control points in NURBS may influence the result. **Exact steps for others to reproduce the error** The attached blend files, [bugreport.blend](https://archive.blender.org/developer/F9742151/bugreport.blend) includes the running result, while [bugreportwithoutresult.blend](https://archive.blender.org/developer/F9742036/bugreportwithoutresult.blend) doesn't. Run the script directly in **bugreportwithoutresult.blend** to get the same result as shown in**bugreport.blend.** Test one SpineCenterline works. Test two SpineCenterlines give the wrong result. You can copy my scripts and create your NURBS curves in your blender file. Just need to ensure the curve is not parallel to xy-plane. One more thing, you can print the return vert at the end of getUniformCurveOnZ and after getUniformCurveOnZ. I don't know why they are different in **SpineCenterline1**.
Author

Added subscriber: @WenyeHe

Added subscriber: @WenyeHe
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Cannot reproduce here (tested in both 2.91 and current 2.93)

Always getting the (seemingly) correct result:
image.png

Just to make sure:

I have a high chance to get the wrong result

Does this mean sometimes results are correct, sometimes they are not?

Cannot reproduce here (tested in both 2.91 and current 2.93) Always getting the (seemingly) correct result: ![image.png](https://archive.blender.org/developer/F9865345/image.png) Just to make sure: - Is this still an issue in 2.93 Alpha build from https://builder.blender.org/download/? > I have a high chance to get the wrong result Does this mean sometimes results are correct, sometimes they are not?
Member

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

Changed status from 'Needs User Info' to: 'Archived'
Member

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.

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.
Sign in to join this conversation.
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
2 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#85482
No description provided.