Bug 2356293

Summary: [abrt] blender: draw(): space_view3d_toolbar.py:1014:draw:TypeError: bpy_struct: item.attr = val: UILayout.active expected True/False or 0/1, not NoneType
Product: [Fedora] Fedora Reporter: kartochka378
Component: blenderAssignee: Luya Tshimbalanga <luya_tfz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: code, design-devel, epel-packagers-sig, kartochka378, kwizart, luya_tfz, negativo17
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/23f1f1e2f0d45fc457f006173cb4b81a206490a
Whiteboard: abrt_hash:268d03d0b7da4cb4c6e0e5c1958546ae0c5515ae;VARIANT_ID=workstation;
Fixed In Version: 4.4.0-3 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-05 05:47:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo
none
Test case: 2D animation in Blender 4.4.0 none

Description kartochka378 2025-03-31 19:20:25 UTC
Description of problem:
enter sculpt mode, trying to play with current brush, nothing happens at all (cursor does not change to 3d brush,just default arrow, nothing as it is not sculpt but just usual 3d editor mode), trying to select dfferent brushes, pust some random buttons,  like unroll combo lists in property window at right side, abrt report pop up.

Version-Release number of selected component:
blender-1:4.3.2-5.fc42

Additional info:
reporter:       libreport-2.17.15
kernel:         6.14.0-63.fc42.x86_64
cmdline:        /usr/bin/blender
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-blender-8760.scope
uid:            1000
reason:         space_view3d_toolbar.py:1014:draw:TypeError: bpy_struct: item.attr = val: UILayout.active expected True/False or 0/1, not NoneType
executable:     /usr/bin/blender
type:           Python3
package:        blender-1:4.3.2-5.fc42
runlevel:       N 5
exception_type: TypeError
crash_function: draw
interpreter:    blender-4.3.2-5.fc42.x86_64
comment:        enter sculpt mode, trying to play with current brush, nothing happens at all (cursor does not change to 3d brush,just default arrow, nothing as it is not sculpt but just usual 3d editor mode), trying to select dfferent brushes, pust some random buttons,  like unroll combo lists in property window at right side, abrt report pop up.

Truncated backtrace:
space_view3d_toolbar.py:1014:draw:TypeError: bpy_struct: item.attr = val: UILayout.active expected True/False or 0/1, not NoneType

Traceback (most recent call last):
  File "/usr/share/blender/4.3/scripts/startup/bl_ui/space_view3d_toolbar.py", line 1014, in draw
    sub.active = (brush and brush.sculpt_tool != 'MASK')
    ^^^^^^^^^^
TypeError: bpy_struct: item.attr = val: UILayout.active expected True/False or 0/1, not NoneType

Local variables in innermost frame:
self: bpy.data.screens['Sculpting']...VIEW3D_PT_sculpt_dyntopo
context: bpy.data.scenes['Scene']...Context
layout: bpy.data.screens['Sculpting']...UILayout
tool_settings: bpy.data.scenes['Scene'].tool_settings
sculpt: bpy.data.scenes['Scene'].tool_settings.sculpt
settings: bpy.data.scenes['Scene'].tool_settings.sculpt
brush: None
col: bpy.data.screens['Sculpting']...UILayout
sub: bpy.data.screens['Sculpting']...UILayout

Comment 1 kartochka378 2025-03-31 19:20:29 UTC
Created attachment 2082845 [details]
File: os_info

Comment 2 kartochka378 2025-03-31 19:20:30 UTC
Created attachment 2082846 [details]
File: environ

Comment 3 kartochka378 2025-03-31 19:20:32 UTC
Created attachment 2082847 [details]
File: mountinfo

Comment 4 kartochka378 2025-03-31 19:20:33 UTC
Created attachment 2082848 [details]
File: open_fds

Comment 5 kartochka378 2025-03-31 19:20:35 UTC
Created attachment 2082849 [details]
File: namespaces

Comment 6 kartochka378 2025-03-31 19:20:36 UTC
Created attachment 2082850 [details]
File: backtrace

Comment 7 kartochka378 2025-03-31 19:20:37 UTC
Created attachment 2082851 [details]
File: cpuinfo

Comment 8 Luya Tshimbalanga 2025-04-04 03:34:32 UTC
Can you test https://bodhi.fedoraproject.org/updates/FEDORA-2025-13d9605fa0 to see if the brushes work?

Comment 9 Luya Tshimbalanga 2025-04-04 03:35:49 UTC
Created attachment 2083372 [details]
Test case: 2D animation in Blender 4.4.0

Demo showing 2D animation screen with brushes

Comment 10 kartochka378 2025-04-05 00:15:30 UTC
I upadted to recent fedora 42 testing and blender3d ( blender-4.4.0-3.fc42 ) work very well, double checked sculpting mode, as many other workspaces, no glitches at all.

Comment 11 Luya Tshimbalanga 2025-04-05 05:47:08 UTC
Thank you for confirming blender 4.4.0-3 addresses the issues. Let's close this report.