Archimesh error when using autoholes #82266

Closed
opened 2020-10-30 21:54:01 +01:00 by aryan · 10 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Intel(R) HD Graphics 5500 Intel 4.4.0 - Build 20.19.15.5126

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: blender/blender@3e85bb34d0
Worked: (newest version of Blender that worked as expected)

Short description of error
An error occurred while creating windows in room wall using archimesh autoholes.

The error that displayed on Blender's screen at every click is the following:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\addons\archimesh\achm_main_panel.py", line 81, in execute
    for child in context.object.children:
AttributeError: 'NoneType' object has no attribute 'children'

location: <unknown location>:-1

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\addons\archimesh\achm_main_panel.py", line 81, in execute
    for child in context.object.children:
AttributeError: 'NoneType' object has no attribute 'children'

location: <unknown location>:-1

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\addons\archimesh\achm_main_panel.py", line 81, in execute
    for child in context.object.children:
AttributeError: 'NoneType' object has no attribute 'children'

location: <unknown location>:-1

Exact steps for others to reproduce the error

  • Went to Archimesh
  • Create rooms
  • Add walls
  • Use autoholes
    After a few click in autoholes to create windows the error appeared.
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Intel(R) HD Graphics 5500 Intel 4.4.0 - Build 20.19.15.5126 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `blender/blender@3e85bb34d0` Worked: (newest version of Blender that worked as expected) **Short description of error** An error occurred while creating windows in room wall using archimesh autoholes. The error that displayed on Blender's screen at every click is the following: ``` Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\addons\archimesh\achm_main_panel.py", line 81, in execute for child in context.object.children: AttributeError: 'NoneType' object has no attribute 'children' location: <unknown location>:-1 Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\addons\archimesh\achm_main_panel.py", line 81, in execute for child in context.object.children: AttributeError: 'NoneType' object has no attribute 'children' location: <unknown location>:-1 Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\addons\archimesh\achm_main_panel.py", line 81, in execute for child in context.object.children: AttributeError: 'NoneType' object has no attribute 'children' location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** - Went to Archimesh - Create rooms - Add walls - Use autoholes After a few click in autoholes to create windows the error appeared.
Author

Added subscriber: @aarrya

Added subscriber: @aarrya

Added subscriber: @rjg

Added subscriber: @rjg

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

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

This could simply be fixed by checking if context.object is not None in ARCHIMESH_OT_Hole.

However, I've tried to recreate a case where bpy.context.object is None where the Auto Holes options is still displayed in the panel, but didn't manage to. When bpy.context.object is None, e.g. by selecting an object, toggling Pin-ID and then deleting the object, the option also disappears from panel.

Could you please provide precise step by step instructions to reproduce the issue or possibly a minimal .blend file that allows to reproduce the problem. There may another issue in the add-on where the operators are displayed / the operators can be executed, when they shouldn't.

This could simply be fixed by checking if `context.object` is not `None` in `ARCHIMESH_OT_Hole`. However, I've tried to recreate a case where `bpy.context.object` is `None` where the `Auto Holes` options is still displayed in the panel, but didn't manage to. When `bpy.context.object` is `None`, e.g. by selecting an object, toggling Pin-ID and then deleting the object, the option also disappears from panel. Could you please provide precise step by step instructions to reproduce the issue or possibly a minimal .blend file that allows to reproduce the problem. There may another issue in the add-on where the operators are displayed / the operators can be executed, when they shouldn't.
Robert Guetzkow changed title from REPORT ERROR to Archimesh error when using autoholes 2020-11-20 11:46:53 +01:00

@aarrya Please provide the requested information.

@aarrya Please provide the requested information.

Please update your report to include the full steps to reproduce the problem or we may have to close the ticket.

Please update your report to include the full steps to reproduce the problem or we may have to close the ticket.

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

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

While there may very well be a real issue as the stack trace shows, I was unable to reproduce the problem and we haven't received a reply in more than month.

Please leave a comment on this ticket if you're able to provide instructions to reproduce the problem and we can reopen it.

While there may very well be a real issue as the stack trace shows, I was unable to reproduce the problem and we haven't received a reply in more than month. Please leave a comment on this ticket if you're able to provide instructions to reproduce the problem and we can reopen it.

Added subscriber: @Soundhar_Raja

Added subscriber: @Soundhar_Raja

Hey there,
I am new to the forum and blender. I am also facing this same issue. What am I supposed to do now??

Hey there, I am new to the forum and blender. I am also facing this same issue. What am I supposed to do now??
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#82266
No description provided.