Amaranth: local variable 'mpath' referenced before assignment #105190

Open
opened 2024-02-21 05:06:22 +01:00 by Pratik Borhade · 2 comments
Member

System Information
Operating system: Linux-6.5.0-17-generic-x86_64-with-glibc2.38 64 Bits, X11 UI
Graphics card: Mesa Intel(R) UHD Graphics (ADL-S GT1) Intel 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1

Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727
Worked: (newest version of Blender that worked as expected)

Short description of error
While playing around with object and its armature at some point the following error is shown in the console:

Traceback (most recent call last):
File "/snap/blender/4300/4.0/scripts/modules/bpy_types.py", line 989, in draw_ls
func(self, context)
File "/snap/blender/4300/4.0/scripts/addons/amaranth/animation/motion_paths.py", line 93, in pose_motion_paths_ui
if mpath:
UnboundLocalError: local variable 'mpath' referenced before assignment

Originally reported by @IvanIvanov-1 : blender/blender#118516

**System Information** Operating system: Linux-6.5.0-17-generic-x86_64-with-glibc2.38 64 Bits, X11 UI Graphics card: Mesa Intel(R) UHD Graphics (ADL-S GT1) Intel 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1 **Blender Version** Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: `9be62e85b727` Worked: (newest version of Blender that worked as expected) **Short description of error** While playing around with object and its armature at some point the following error is shown in the console: > Traceback (most recent call last): > File "/snap/blender/4300/4.0/scripts/modules/bpy_types.py", line 989, in draw_ls > func(self, context) > File "/snap/blender/4300/4.0/scripts/addons/amaranth/animation/motion_paths.py", line 93, in pose_motion_paths_ui > if mpath: > UnboundLocalError: local variable 'mpath' referenced before assignment Originally reported by @IvanIvanov-1 : https://projects.blender.org/blender/blender/issues/118516
Pratik Borhade added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-02-21 05:06:22 +01:00
Author
Member

Hi, @IvanIvanov-1, could you share sequence of steps that triggered this error
A guideline for making a good bug report can be found at https://developer.blender.org/docs/handbook/bug_reports/making_good_bug_reports/

Hi, @IvanIvanov-1, could you share sequence of steps that triggered this error A guideline for making a good bug report can be found at https://developer.blender.org/docs/handbook/bug_reports/making_good_bug_reports/
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-02-21 05:09:20 +01:00

I'm not sure what were the original steps, because it didn't crash the blender, so I saw the errors (there were maybe at least thirty - all the same) in the console only after I closed the blend file 20 min or so working with it.

However since there is a file and line where the problem occurs, it's easy to find the culprit and maybe possible fix would be just to initialised the variable mpath = None on line 82 in pose_motion_paths_ui function.

I'm not sure what were the original steps, because it didn't crash the blender, so I saw the errors (there were maybe at least thirty - all the same) in the console only after I closed the blend file 20 min or so working with it. However since there is a file and line where the problem occurs, it's easy to find the culprit and maybe possible fix would be just to initialised the variable `mpath = None` on line 82 in `pose_motion_paths_ui` function.
Sign in to join this conversation.
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-addons#105190
No description provided.