Error calling context.copy() in Properties Editor [breaks e.g. official Modifier Tools Addon] #79992

Closed
opened 2020-08-21 17:42:15 +02:00 by Karl Northfell · 14 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67

Blender Version
Broken: version: 2.90.0 Beta, branch: master, commit date: 2020-08-20 15:47, hash: 05e1ccf108
Worked: v.283.5

Short description of error
When trying to "apply all" to a certain object with the Modifier Tools addon this error is produced and the operation fails:

modifier_tools_error.png

Exact steps for others to reproduce the error
I'm not sure how to reproduce this error as I have been working with modifier tools and this scene without issues until now. I can confirm this error does not occur if the scene is opened in v2.83.5.

I've attached the scene with only the object that causes the error. The steps to reproduce are:

  1. Open attached blend file
  2. Select "window pointy" object
  3. Go into modifiers tab with Modifier Tools addon enabled and try to hit "apply all", error should result

modifier_tools.blend

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67 **Blender Version** Broken: version: 2.90.0 Beta, branch: master, commit date: 2020-08-20 15:47, hash: `05e1ccf108` Worked: v.283.5 **Short description of error** When trying to "apply all" to a certain object with the Modifier Tools addon this error is produced and the operation fails: ![modifier_tools_error.png](https://archive.blender.org/developer/F8800172/modifier_tools_error.png) **Exact steps for others to reproduce the error** I'm not sure how to reproduce this error as I have been working with modifier tools and this scene without issues until now. I can confirm this error does not occur if the scene is opened in v2.83.5. I've attached the scene with only the object that causes the error. The steps to reproduce are: 1. Open attached blend file 2. Select "window pointy" object 3. Go into modifiers tab with Modifier Tools addon enabled and try to hit "apply all", error should result [modifier_tools.blend](https://archive.blender.org/developer/F8800178/modifier_tools.blend)
Author

Added subscriber: @dreamparacite

Added subscriber: @dreamparacite

Added subscriber: @sharaths21312

Added subscriber: @sharaths21312

I can reproduce this too. Applying them one-by-one still works.

I can reproduce this too. Applying them one-by-one still works.

Added subscriber: @Symstract

Added subscriber: @Symstract

This error occurs only in recent Blender 2.90 builds. The operator works in a build from August 16th and also in 2.91. Also, if you add the operator to Quick Favourites and call the operator inside the viewport, it works. Is this related to disabling experimental features in Blender 2.90 (https://developer.blender.org/D8589)?

This error occurs only in recent Blender 2.90 builds. The operator works in a build from August 16th and also in 2.91. Also, if you add the operator to Quick Favourites and call the operator inside the viewport, it works. Is this related to disabling experimental features in Blender 2.90 (https://developer.blender.org/D8589)?

Added subscribers: @BrendonMurphy, @iss

Added subscribers: @BrendonMurphy, @iss

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

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

Can confirm

AttributeError: 'Context' object has no attribute 'hair'

location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
  File "C:\Blender-git\b1\bin\Debug\2.91\scripts\addons\space_view3d_modifier_tools.py", line 53, in execute
    contx = bpy.context.copy()
  File "C:\Blender-git\b1\bin\Debug\2.91\scripts\modules\bpy_types.py", line 42, in copy
    value = getattr(self, attr)
AttributeError: 'Context' object has no attribute 'hair'

location: <unknown location>:-1

CC @BrendonMurphy

Can confirm ``` AttributeError: 'Context' object has no attribute 'hair' location: <unknown location>:-1 Error: Python: Traceback (most recent call last): File "C:\Blender-git\b1\bin\Debug\2.91\scripts\addons\space_view3d_modifier_tools.py", line 53, in execute contx = bpy.context.copy() File "C:\Blender-git\b1\bin\Debug\2.91\scripts\modules\bpy_types.py", line 42, in copy value = getattr(self, attr) AttributeError: 'Context' object has no attribute 'hair' location: <unknown location>:-1 ``` CC @BrendonMurphy

@iss

I'd just like to point out that the bug isn't in the addon, my own addon (Modifier List) also has this issue. Calling context.copy() in Properties Editor doesn't currently work.

I wonder if this could be fixed before the release since this bug was just recently introduced? Or maybe it's too late?

@iss I'd just like to point out that the bug isn't in the addon, my own addon (Modifier List) also has this issue. Calling context.copy() in Properties Editor doesn't currently work. I wonder if this could be fixed before the release since this bug was just recently introduced? Or maybe it's too late?
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Thanks for the precise information @Symstract, it made it quick to find the commit that caused this bug.

Thanks for the precise information @Symstract, it made it quick to find the commit that caused this bug.
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58
Philipp Oeser changed title from Error "applying all" with official Modifier Tools addon to Error calling context.copy() in Properties Editor [breaks e.g. official Modifier Tools Addon] 2020-08-26 09:44:09 +02:00
Dalai Felinto self-assigned this 2020-08-26 11:20:06 +02:00

This issue was referenced by 70d48255ae

This issue was referenced by 70d48255aeae66c9ce62b0458cf7519adea45cf2

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Thomas Dinges added this to the 2.90 milestone 2023-02-08 16:25:40 +01:00
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
8 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#79992
No description provided.