Blender 4.0 alpha - Add-on Archimesh doesn't work in most parts #104743

Closed
opened 2023-07-10 10:07:38 +02:00 by Uwe · 7 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.68

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-08 23:26, hash: b183e3ae89a6
Worked: version: 3.6.1 Release Candidate, commit date: 2023-07-05 20:42, hash: 7538127a5806
Addon Information
Name: Archimesh (1, 2, 5)
Author: Antonio Vazquez (antonioya)

Short description of error
Archimesh doesn't work in most parts

Exact steps for others to reproduce the error

Add>Archimesh>DoorA
Error: Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 42, in execute
create_object(self, context)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 68, in create_object
shape_mesh(mainobject, mainmesh)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 150, in shape_mesh
create_doorframe(mp, tmp_mesh)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 504, in create_doorframe
mymesh.from_pydata(verts, [], faces)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\modules\bpy_types.py", line 624, in from_pydata
self.polygons.foreach_set("vertices", vertex_indices)
TypeError: foreach_get(attr, sequence) sequence length mismatch given 95, needed 96

2nd example:

Add>Archimesh>Rail Window
Error: Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 42, in execute
create_object(self, context)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 68, in create_object
shape_mesh_and_create_children(mainobject, mainmesh)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 149, in shape_mesh_and_create_children
generate_rail_window(mainobject, mp, tmp_mesh)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 519, in generate_rail_window
win_size, p1, p2 = create_rail_window_frame(myframe, mymesh,
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 889, in create_rail_window_frame
mymesh.from_pydata(myvertex, [], myfaces)
File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\modules\bpy_types.py", line 624, in from_pydata
self.polygons.foreach_set("vertices", vertex_indices)
TypeError: foreach_get(attr, sequence) sequence length mismatch given 400, needed 384

3rd example:

Add>Archimesh>Panel Window
Complete program crash

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.68 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-08 23:26, hash: `b183e3ae89a6` Worked: version: 3.6.1 Release Candidate, commit date: 2023-07-05 20:42, hash: `7538127a5806` **Addon Information** Name: Archimesh (1, 2, 5) Author: Antonio Vazquez (antonioya) **Short description of error** Archimesh doesn't work in most parts **Exact steps for others to reproduce the error** >Add>Archimesh>DoorA Error: Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 42, in execute create_object(self, context) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 68, in create_object shape_mesh(mainobject, mainmesh) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 150, in shape_mesh create_doorframe(mp, tmp_mesh) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_door_maker.py", line 504, in create_doorframe mymesh.from_pydata(verts, [], faces) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\modules\bpy_types.py", line 624, in from_pydata self.polygons.foreach_set("vertices", vertex_indices) TypeError: foreach_get(attr, sequence) sequence length mismatch given 95, needed 96 2nd example: >Add>Archimesh>Rail Window Error: Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 42, in execute create_object(self, context) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 68, in create_object shape_mesh_and_create_children(mainobject, mainmesh) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 149, in shape_mesh_and_create_children generate_rail_window(mainobject, mp, tmp_mesh) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 519, in generate_rail_window win_size, p1, p2 = create_rail_window_frame(myframe, mymesh, File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\addons\archimesh\achm_window_maker.py", line 889, in create_rail_window_frame mymesh.from_pydata(myvertex, [], myfaces) File "C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\modules\bpy_types.py", line 624, in from_pydata self.polygons.foreach_set("vertices", vertex_indices) TypeError: foreach_get(attr, sequence) sequence length mismatch given 400, needed 384 3rd example: >Add>Archimesh>Panel Window Complete program crash
Uwe added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-07-10 10:07:39 +02:00
Member

Hi, thanks for the report. I can confirm the crash. Some mesh refactoring might have introduced these errors and crash.
Will bisect.

Hi, thanks for the report. I can confirm the crash. Some mesh refactoring might have introduced these errors and crash. Will bisect.
Member

Caused by a280e8a68c
@Baardaap ^

Caused by https://projects.blender.org/blender/blender/commit/a280e8a68c15ee3ec0978fb594b29d083fd2bcd6 @Baardaap ^

probably the same/related issue as blender/blender#111117 ? Will look into it.

probably the same/related issue as https://projects.blender.org/blender/blender/issues/111117 ? Will look into it.
Member

@Baardaap , also see: #104857 :)

@Baardaap , also see: https://projects.blender.org/blender/blender-addons/issues/104857 :)

blender/blender#112879 Should fix it.

https://projects.blender.org/blender/blender/pulls/112879 Should fix it.

I close this one in favour of blender/blender#111117 , which is the same issue.

I close this one in favour of blender/blender#111117 , which is the same issue.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-10-01 00:17:13 +02:00
Member

Yes, fixed indeed

Yes, fixed indeed
Sign in to join this conversation.
No Milestone
No project
No Assignees
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#104743
No description provided.