Edit Operator Source: recursion error when used #104725

Open
opened 2023-06-29 20:47:58 +02:00 by Loïc DAUTRY · 4 comments

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

Blender Version
Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: c7fc78b81ecb
Worked: n/a

Addon Information
Name: Edit Operator Source (1, 2, 3)
Author: scorpion81

Short description of error
When selecting an operator, it returns an error.
Also seems to freeze Blender to death if system console enabled.

Exact steps for others to reproduce the error

  • Enable EOS addons, click "Edit Operator" in the text editor's sidebar
  • Then any operator in the list.

Here's the error with the first operator of the list (action.clean):

Python: Traceback (most recent call last):
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 266, in execute
    self.show_calls(context)
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 223, in show_calls
    walk_module(self.op, mod, calls, exclude)
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 55, in walk_module
    walk_module(opname, m, calls, exclude)
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 55, in walk_module
    walk_module(opname, m, calls, exclude)
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 55, in walk_module
    walk_module(opname, m, calls, exclude)
  [Previous line repeated 992 more times]
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 51, in walk_module
    for name, m in inspect.getmembers(mod):
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\python\lib\inspect.py", line 447, in getmembers
    if isclass(object):
  File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\python\lib\inspect.py", line 197, in isclass
    return isinstance(object, type)
RecursionError: maximum recursion depth exceeded while calling a Python object

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.79 **Blender Version** Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: `c7fc78b81ecb` Worked: n/a **Addon Information** Name: Edit Operator Source (1, 2, 3) Author: scorpion81 **Short description of error** When selecting an operator, it returns an error. Also **seems to freeze Blender to death if system console enabled**. **Exact steps for others to reproduce the error** - Enable EOS addons, click "Edit Operator" in the text editor's sidebar - Then any operator in the list. Here's the error with the first operator of the list (action.clean): ```python Python: Traceback (most recent call last): File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 266, in execute self.show_calls(context) File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 223, in show_calls walk_module(self.op, mod, calls, exclude) File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 55, in walk_module walk_module(opname, m, calls, exclude) File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 55, in walk_module walk_module(opname, m, calls, exclude) File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 55, in walk_module walk_module(opname, m, calls, exclude) [Previous line repeated 992 more times] File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\development_edit_operator.py", line 51, in walk_module for name, m in inspect.getmembers(mod): File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\python\lib\inspect.py", line 447, in getmembers if isclass(object): File "C:\AppInstall\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\python\lib\inspect.py", line 197, in isclass return isinstance(object, type) RecursionError: maximum recursion depth exceeded while calling a Python object ```
Loïc DAUTRY added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-06-29 20:47:59 +02:00
Author

To my little understanding the error comes from the walk_module that should just scan through all modules and submodules but somehow just keeps looping.

I uncommented line 54 print(name, m.__name__), and I saw it was looping on submodules from animaide. Disabling it and reloading Blender seemed to "fix" the issue.

To my little understanding the error comes from the walk_module that should just scan through all modules and submodules but somehow just keeps looping. I uncommented line 54 `print(name, m.__name__)`, and I saw it was looping on submodules from [animaide](https://github.com/aresdevo/animaide/). Disabling it and reloading Blender seemed to "fix" the issue.
Loïc DAUTRY changed title from Edit Operator Source error on v3.6.0 to Edit Operator Source - recursion error on v3.6.0 2023-07-01 23:45:54 +02:00
Loïc DAUTRY changed title from Edit Operator Source - recursion error on v3.6.0 to Edit Operator Source - recursion error when used with animaide enabled 2023-07-02 00:06:46 +02:00
Author

Opened a ticket on animaide's repo too, in case it's the actual culprit: https://github.com/aresdevo/animaide/issues/95

Opened a ticket on animaide's repo too, in case it's the actual culprit: https://github.com/aresdevo/animaide/issues/95
Member

Thanks for the report. Can confirm with mentioned addon

Thanks for the report. Can confirm with mentioned addon
Pratik Borhade added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-07-06 07:06:46 +02:00
Member

@scorpion81 , can you check?

@scorpion81 , can you check?
Pratik Borhade changed title from Edit Operator Source - recursion error when used with animaide enabled to Edit Operator Source: recursion error when used 2024-03-25 04:33:46 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#104725
No description provided.