encounter an error while using the plugin(Snap_Utilities_Line) #103356

Closed
opened 2022-12-20 03:46:28 +01:00 by TANG · 5 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.95

Blender Version
Broken: version: 3.3.2, branch: master, commit date: 2022-12-06 18:19, hash: blender/blender@bf24652e38
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Snap_Utilities_Line (6, 7, 0)
Author: Germano Cavalcante

Short description of error
When the plugin's Create Faces option is turned on, the following error pops up when creating a face and trying to connect the last vertical. I can't confirm if this is an error caused by my actions or a bug in the plugin itself and would appreciate help.

Python: Traceback (most recent call last):
File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\widgets.py", line 125, in draw
self.draw_point_and_elem()
File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\widgets.py", line 33, in draw_point_and_elem
if self.bm.is_valid and self.geom.is_valid:
AttributeError: 'NoneType' object has no attribute 'is_valid'

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.95 **Blender Version** Broken: version: 3.3.2, branch: master, commit date: 2022-12-06 18:19, hash: `blender/blender@bf24652e38` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Snap_Utilities_Line (6, 7, 0) Author: Germano Cavalcante **Short description of error** When the plugin's Create Faces option is turned on, the following error pops up when creating a face and trying to connect the last vertical. I can't confirm if this is an error caused by my actions or a bug in the plugin itself and would appreciate help. > Python: Traceback (most recent call last): > File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\widgets.py", line 125, in draw > self.draw_point_and_elem() > File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\widgets.py", line 33, in draw_point_and_elem > if self.bm.is_valid and self.geom.is_valid: > AttributeError: 'NoneType' object has no attribute 'is_valid' **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @tsq456

Added subscriber: @tsq456

This issue was referenced by 97277ecacb

This issue was referenced by 97277ecacb379a02240fde40a1ceadb303cd3b84

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Germano Cavalcante self-assigned this 2022-12-20 16:05:09 +01:00

I don't know how to replicate the problem. But I did something that can prevent this error from appearing again.

I don't know how to replicate the problem. But I did something that can prevent this error from appearing again.
Author

In #103356#1463613, @mano-wii wrote:
I don't know how to replicate the problem. But I did something that can prevent this error from appearing again.

Thanks for your reply, I still encounter this problem, here are my specific steps to reproduce it:

  1. Create a face using the Make Line tool
  2. Add a subdivision modifier to the face and turn off Optimal Display in the modifier
  3. try to continue creating faces on the created face using the Make Line tool
  4. At this point, an error will be reported

Here is the error message I encountered this time:

Python: Traceback (most recent call last):

File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\op_line.py", line 278, in modal
  self.snap_obj, self.prevloc, self.location, self.type, self.bm, self.geom, self.len = snap_utilities(
File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 180, in snap_utilities
  snp_obj, loc, elem, elem_co, view_vector, orig, bm, bm_geom = get_snap_bm_geom(
File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 103, in get_snap_bm_geom
  r_bm_geom = r_bm.verts[r_elem[0]]

IndexError: BMElemSeq[index]: outdated internal index table, run ensure_lookup_table() first

> In #103356#1463613, @mano-wii wrote: > I don't know how to replicate the problem. But I did something that can prevent this error from appearing again. Thanks for your reply, I still encounter this problem, here are my specific steps to reproduce it: 1. Create a face using the Make Line tool 2. Add a subdivision modifier to the face and turn off Optimal Display in the modifier 3. try to continue creating faces on the created face using the Make Line tool 4. At this point, an error will be reported Here is the error message I encountered this time: Python: Traceback (most recent call last): ``` File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\op_line.py", line 278, in modal self.snap_obj, self.prevloc, self.location, self.type, self.bm, self.geom, self.len = snap_utilities( File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 180, in snap_utilities snp_obj, loc, elem, elem_co, view_vector, orig, bm, bm_geom = get_snap_bm_geom( File "E:\SteamLibrary\steamapps\common\Blender\3.3\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 103, in get_snap_bm_geom r_bm_geom = r_bm.verts[r_elem[0]] ``` IndexError: BMElemSeq[index]: outdated internal index table, run ensure_lookup_table() first
Sign in to join this conversation.
No Milestone
No project
3 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#103356
No description provided.