Page MenuHome

Error in Material Utilities add-on on unregister
Confirmed, NormalPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30

Blender Version
Broken: version:

  • 2.92.0 Alpha, branch: master, commit date: 2020-11-29 08:04, hash: rB13c820d87b62
  • 2.91

Worked: 2.90.1

Addon Information
Name: Material Utilities (2, 2, 0)
Author: MichaleW, ChrisHinde

Short description of error
The Material Utilities add-on causes an exception when the add-ons are unregistered before Blender closes:

Exception in module unregister(): 'Z:\\01_git\\01_contribution\\blender-git\\build_windows_Full_x64_vc16_Debug\\bin\\Debug\\2.92\\scripts\\addons\\materials_utils\\__init__.py'
Traceback (most recent call last):
  File "Z:\01_git\01_contribution\blender-git\build_windows_Full_x64_vc16_Debug\bin\Debug\2.92\scripts\modules\addon_utils.py", line 434, in disable
    mod.unregister()
  File "Z:\01_git\01_contribution\blender-git\build_windows_Full_x64_vc16_Debug\bin\Debug\2.92\scripts\addons\materials_utils\__init__.py", line 193, in unregister
    bpy.utils.unregister_manual_map(materialutilities_manual_map)
  File "Z:\01_git\01_contribution\blender-git\build_windows_Full_x64_vc16_Debug\bin\Debug\2.92\scripts\modules\bpy\utils\__init__.py", line 994, in unregister_manual_map
    _manual_map.remove(manual_hook)
ValueError: list.remove(x): x not in list

Exact steps for others to reproduce the error

  1. Enable the Material Utilities add-on (Edit > Preferences > Add-ons).
  2. Save preferences.
  3. Start Blender from CLI using the -b option.

Event Timeline

Unknown Object (User) created this task.Nov 30 2020, 3:40 AM
Unknown Object (User) updated the task description. (Show Details)
Robert Guetzkow (rjg) renamed this task from running command line python script fails on exit on 2.91 (but succeeds on 2.90.1) to Error in Material Utilities add-on on unregister.Nov 30 2020, 11:34 AM
Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.
Robert Guetzkow (rjg) updated the task description. (Show Details)

Can confirm with 2.93 & 3.0.0 as well. So resetting BF Blender tag would be fine I guess

Exception in module unregister(): 'C:\\Program Files\\Blender Foundation\\Blender 2.93\\2.93\\scripts\\addons\\materials_utils\\__init__.py'
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\addon_utils.py", line 438, in disable
    mod.unregister()
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\materials_utils\__init__.py", line 193, in unregister
    bpy.utils.unregister_manual_map(materialutilities_manual_map)
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\bpy\utils\__init__.py", line 1038, in unregister_manual_map
    _manual_map.remove(manual_hook)
ValueError: list.remove(x): x not in list