Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender 4.2.0, gamerig 1.7.0, crash when using "regenerate rig" #14

Open
gentlecolts opened this issue Aug 31, 2024 · 1 comment
Open

Comments

@gentlecolts
Copy link

Console log:

$ blender
RetopoFlow: Initial load
RetopoFlow: Unexpected Exception caught when trying to enable add-on!
'NoneType' object is not callable
- EXCEPTION (<class 'TypeError'>): 'NoneType' object is not callable
-     .../common/shaders.py
- 000 0045:<module>() print('Addon Common: (shaders) GLSL Version:', bgl.glGetString(bgl.GL_SHADING_LANGUAGE_VERSION))
-     .../common/drawing.py
- 001 0047:<module>() from .shaders import Shader
-     .../common/__init__.py
- 002 0057:<module>() from . import drawing as _
-     /home/raichu/.config/blender/4.2/scripts/addons/RetopoFlow/config/options.py
- 003 0032:<module>() from ..addon_common.common import gpustate
-     /home/raichu/.config/blender/4.2/scripts/addons/RetopoFlow/retopoflow/rf/rf_blender.py
- 004 0030:<module>() from ...config.options import options, retopoflow_version
-     /home/raichu/.config/blender/4.2/scripts/addons/RetopoFlow/retopoflow/retopoflow.py
- 005 0031:<module>() from .rf.rf_blender       import RetopoFlow_Blender
-     /home/raichu/.config/blender/4.2/scripts/addons/RetopoFlow/__init__.py
- 006 0070:<module>() from .retopoflow import retopoflow

### Loading CATS...
register_class(...):
Info: Registering operator class: 'AutoDecimatePresetGood', bl_idname 'cats_decimation.preset_good' has been registered before, unregistering previous
register_class(...):
Info: Registering operator class: 'AutoDecimatePresetExcellent', bl_idname 'cats_decimation.preset_excellent' has been registered before, unregistering previous
register_class(...):
Info: Registering operator class: 'AutoDecimatePresetQuest', bl_idname 'cats_decimation.preset_quest' has been registered before, unregistering previous
### Loaded CATS successfully!

speedretopo: No Update Available
Auto Reload --- Checking for Addon New Version
Starting new HTTPS connection (1): raw.githubusercontent.com:443
https://raw.githubusercontent.com:443 "GET /samytichadou/Auto_Reload_Blender_addon/master/addon_version.json HTTP/1.1" 200 157
Auto Reload --- Addon up to date
Auto Reload --- All files modification time updated
Read blend: "/home/raichu/Documents/modeling/makehuman 4.2 issue.blend"
scripts disabled for "/home/raichu/Documents/modeling/makehuman 4.2 issue.blend", skipping 'gamerig_ui_ejs8bwy3l8.py'
scripts disabled for "/home/raichu/Documents/modeling/makehuman 4.2 issue.blend", skipping 'gamerig_ui_r4gk1hua68.py'
Auto Reload --- Checking for Addon New Version
Starting new HTTPS connection (1): raw.githubusercontent.com:443
https://raw.githubusercontent.com:443 "GET /samytichadou/Auto_Reload_Blender_addon/master/addon_version.json HTTP/1.1" 200 157
Auto Reload --- Addon up to date
Auto Reload --- All files modification time updated
Read blend: "/home/raichu/Documents/modeling/makehuman 4.2 issue.blend"
Auto Reload --- Checking for Addon New Version
Starting new HTTPS connection (1): raw.githubusercontent.com:443
https://raw.githubusercontent.com:443 "GET /samytichadou/Auto_Reload_Blender_addon/master/addon_version.json HTTP/1.1" 200 157
Auto Reload --- Addon up to date
Auto Reload --- All files modification time updated
Fetch rig (rig.001).
Overwrite existing rig.
Clear rig animation data.
Writing: /tmp/makehuman 4.2 issue.crash.txt
Segmentation fault (core dumped)

/tmp/makehuman 4.2 issue.crash.txt:

# Blender 4.2.0, Commit date: 2024-07-16 06:20, Hash a51f293548ad
bpy.ops.outliner.item_activate(deselect_all=True)  # Operator
bpy.context.space_data.context = 'BONE'  # Property
bpy.context.space_data.context = 'DATA'  # Property
bpy.ops.object.select_all(action='DESELECT')  # Operator
bpy.ops.object.transform_apply(location=False, rotation=True, scale=False)  # Operator
bpy.ops.object.editmode_toggle()  # Operator
bpy.ops.object.editmode_toggle()  # Operator

# backtrace
blender(+0x2118e8b) [0x5635f768ce8b]
blender(+0x164a36a) [0x5635f6bbe36a]
/usr/lib/libc.so.6(+0x3d1d0) [0x7f671ea4c1d0]
blender(+0x21e364a) [0x5635f775764a]
blender(+0x26c72b6) [0x5635f7c3b2b6]
blender(+0x28f586e) [0x5635f7e6986e]
/usr/lib/libpython3.12.so.1.0(_PyObject_MakeTpCall+0x2fb) [0x7f671f980abb]
/usr/lib/libpython3.12.so.1.0(_PyEval_EvalFrameDefault+0x84f) [0x7f671f98931f]
blender(+0x28f63ad) [0x5635f7e6a3ad]
blender(+0x28af0ac) [0x5635f7e230ac]
blender(+0x218abdf) [0x5635f76febdf]
blender(+0x218b3c0) [0x5635f76ff3c0]
blender(+0x218b820) [0x5635f76ff820]
blender(+0x2a11a70) [0x5635f7f85a70]
blender(+0x2a231ba) [0x5635f7f971ba]
blender(+0x2191457) [0x5635f7705457]
blender(+0x2193051) [0x5635f7707051]
blender(+0x2193c2b) [0x5635f7707c2b]
blender(+0x2180272) [0x5635f76f4272]
blender(+0x1645357) [0x5635f6bb9357]
/usr/lib/libc.so.6(+0x25e08) [0x7f671ea34e08]
/usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7f671ea34ecc]
blender(+0x1644e25) [0x5635f6bb8e25]

# Python backtrace
  File "/home/raichu/.config/blender/4.2/scripts/addons/gamerig/generate.py", line 175 in generate_rig
  File "/home/raichu/.config/blender/4.2/scripts/addons/gamerig/ui.py", line 608 in execute
@SAM-tak
Copy link
Owner

SAM-tak commented Sep 2, 2024

I haven’t personally experienced crashes yet, but I’m aware that Regenerate has been exhibiting suspicious behavior.
Before regenerate rig, make sure to apply Clean Up > Purge Unused Data to ensure that any old Armature is completely removed. In my environment, this step usually helps avoid issues in most cases.

However, it seems that finding a fundamental solution might take some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants