PyAPI/UI: List search UI broken when class name >32 chars #114667

Closed
opened 2023-11-09 13:26:57 +01:00 by Demeter Dzadik · 3 comments
Member

System Information
Operating system: Linux-6.5.7-gentoo-x86_64-Intel-R-_Core-TM-i9-9900K_CPU@_3.60GHz-with-glibc2.37 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.113.01

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-07 21:31, hash: 94106447950c

Short description of error

  • Open file: uilist_bug.blend
  • There are two UILists drawn in the sidebar. Neither have any code.
  • The search drop-down line doesn't work on the 2nd one.
  • The only difference between the two lists is the length of their class name.

**System Information** Operating system: Linux-6.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i9-9900K_CPU_@_3.60GHz-with-glibc2.37 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.113.01 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-07 21:31, hash: `94106447950c` **Short description of error** - Open file: [uilist_bug.blend](/attachments/9c8a38bf-d819-439e-9f61-b815b158097c) - There are two UILists drawn in the sidebar. Neither have any code. - The search drop-down line doesn't work on the 2nd one. - The only difference between the two lists is the length of their class name. <video src="/attachments/4a7357c1-87eb-4781-a46d-c33c5da1f909" title="2023-11-09 13-26-24.mp4" controls></video>
Demeter Dzadik added the
Status
Needs Triage
Severity
Normal
Type
Report
labels 2023-11-09 13:26:58 +01:00
Iliya Katushenock added the
Interest
Core
Interest
Python API
labels 2023-11-09 16:05:50 +01:00

That is looks like internal limitation.

That is looks like internal limitation.
Author
Member

I don't think it's actually super important to properly fix this, but if an error message could at least be printed that would be nice, because when developing an add-on and running into this, it's super hard to figure out what's wrong; You'd never guess that it's to do with the class name length.

I don't think it's actually super important to properly fix this, but if an error message could at least be printed that would be nice, because when developing an add-on and running into this, it's super hard to figure out what's wrong; You'd never guess that it's to do with the class name length.
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-03-20 04:49:05 +01:00
Author
Member

In case somebody runs into this issue in future and finds this task: AFAICT this fix just pushes the issue a few characters down the road, so very long names will still have issues and should be avoided.

Might be nice to document this somewhere?

Thanks a lot for the commit though!

In case somebody runs into this issue in future and finds this task: AFAICT this fix just pushes the issue a few characters down the road, so very long names will still have issues and should be avoided. Might be nice to document this somewhere? Thanks a lot for the commit though!
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#114667
No description provided.