Dynamic EnumProperty draws wrong characters for it's value #104955

Closed
opened 2023-02-19 18:11:06 +01:00 by David Ballesteros · 1 comment

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

Blender Version
Broken: version: 3.5.0 Alpha,
branch: refs/heads/main refs/remotes/origin/main,
commit date: 18/02/2023 6:44:25
hash: e61566137b2f4c68ccb7d88e782ef55bd91bb5cc
Worked: Tested on 3.3 and didn't worked either but showed differnet characters. See attached images.

Short description of error
A EnumProperty filled dynamically with the existing Node Groups draws wrong characters for it's value. Characters vay between Blender versions 3.3 or 3.6 alpha.

Exact steps for others to reproduce the error
Install the attached add-on and activate it.

· On any workspace configure ons space to the Geometry Editor. Keep a 3D View.
· On the 3D View open the N panel. Select the Scene Groups Tab.
It should shown the GUI in blender_NoGroups_2023-02-19_13-45-55.jpg.
· On the Geometry Editor, add a few Node Groups.
It should shown the GUI in blender_3.3_2023-02-19_13-44-20.jpg or
the GUI in blender_3.6alpha_2023-02-19_13-47-39.jpg.

Thanks in advance,
David Ballesteros

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.24 **Blender Version** Broken: version: 3.5.0 Alpha, branch: refs/heads/main refs/remotes/origin/main, commit date: 18/02/2023 6:44:25 hash: `e61566137b2f4c68ccb7d88e782ef55bd91bb5cc` Worked: Tested on 3.3 and didn't worked either but showed differnet characters. See attached images. **Short description of error** A EnumProperty filled dynamically with the existing Node Groups draws wrong characters for it's value. Characters vay between Blender versions 3.3 or 3.6 alpha. **Exact steps for others to reproduce the error** Install the attached add-on and activate it. · On any workspace configure ons space to the Geometry Editor. Keep a 3D View. · On the 3D View open the N panel. Select the Scene Groups Tab. It should shown the GUI in blender_NoGroups_2023-02-19_13-45-55.jpg. · On the Geometry Editor, add a few Node Groups. It should shown the GUI in blender_3.3_2023-02-19_13-44-20.jpg or the GUI in blender_3.6alpha_2023-02-19_13-47-39.jpg. Thanks in advance, David Ballesteros
David Ballesteros added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-02-19 18:11:07 +01:00
Contributor

This is the known bug mentioned in the EnumPropery docs, "Python must keep a reference to the strings returned by the callback or Blender will misbehave or even crash". See this StackExchange question for workarounds.

This is the [known bug mentioned in the EnumPropery docs](https://docs.blender.org/api/master/bpy.props.html#bpy.props.EnumProperty), "Python must keep a reference to the strings returned by the callback or Blender will misbehave or even crash". See this [StackExchange question](https://blender.stackexchange.com/questions/216230/is-there-a-workaround-for-the-known-bug-in-dynamic-enumproperty) for workarounds.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-02-20 11:43:24 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
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#104955
No description provided.