Select Box Tool: Selecting more than 2500 objects when 2500 is selected changes the tool's behavior, deselecting everything #102487

Closed
opened 2022-11-14 00:30:41 +01:00 by Sidney Moraes Jr · 5 comments

System Information
Operating system: Windows 10
Graphics card: GTX 970

Blender Version
Broken: 3.3.1

Short description of error
Select Box Tool in object mode:

  • Works as intended when the previous object selection is lower or equal to 2500 AND you are trying to select <=2500 objects;
  • If the selection is 2500 or higher AND you try to select more or equal to 2501 objects, the tool will deselect all the objects;
  • If the selection is 2499 AND you try to select 2501 (or more) AND being one of those 2 more objects an active object, the tool will deselect all the objects as well.
    It is probably related to https://developer.blender.org/T102485

Exact steps for others to reproduce the error
Selection_+2.5K_objects_weird_behavior.blend
Right behavior:

  • Select the 2499 objects from the file;
  • With them selected, select them again plus the 2,5k and +1 object: it will work as intended;

Wrong behavior:

  • Select the 2500 objects from the file;
  • With them selected, select them again plus the +1 object: it will deselect (wrong behavior);

Other Wrong behavior:

  • Change the active object to the 2,5k object at the top;
  • Select the 2499 objects from the file, leaving the 2,5k out of the selection, but "active";
  • With them selected, select them again plus the 2,5k and +1 object: it will deselect (wrong behavior);

Selection_2,5k_objects.webm

**System Information** Operating system: Windows 10 Graphics card: GTX 970 **Blender Version** Broken: 3.3.1 **Short description of error** Select Box Tool in object mode: - Works as intended when the previous object selection is lower or equal to 2500 AND you are trying to select <=2500 objects; - If the selection is 2500 or higher AND you try to select more or equal to 2501 objects, the tool will deselect all the objects; - If the selection is 2499 AND you try to select 2501 (or more) AND being one of those 2 more objects an active object, the tool will deselect all the objects as well. It is probably related to https://developer.blender.org/T102485 **Exact steps for others to reproduce the error** [Selection_+2.5K_objects_weird_behavior.blend](https://archive.blender.org/developer/F13905977/Selection__2.5K_objects_weird_behavior.blend) Right behavior: - Select the 2499 objects from the file; - With them selected, select them again plus the 2,5k and +1 object: it will work as intended; Wrong behavior: - Select the 2500 objects from the file; - With them selected, select them again plus the +1 object: it will **deselect** (wrong behavior); Other Wrong behavior: - Change the active object to the 2,5k object at the top; - Select the 2499 objects from the file, leaving the 2,5k out of the selection, but "active"; - With them selected, select them again plus the 2,5k and +1 object: it will **deselect** (wrong behavior); [Selection_2,5k_objects.webm](https://archive.blender.org/developer/F13906076/Selection_2_5k_objects.webm)

Added subscriber: @SidneyMoraesJr

Added subscriber: @SidneyMoraesJr

Added subscriber: @deadpin

Added subscriber: @deadpin

Yes, this is rooted in the same issue as the other bug. I'll duplicate this bug with your other one, note the below information, and ask the devs what they'd want to do about it -- it's been this way for many years now including back to the Blender 2.7x series. It was introduced in 50e9868abe

The 2500 number is hardcoded right now. The particular usage of this value during selection is roughly 2 * MAXPICKELEMS as seen in:
https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_view3d/view3d_select.cc$3740

/**
 * The default value for the maximum number of elements that can be selected at once
 * using view-port selection.
 *
 * \note in many cases this defines the size of fixed-size stack buffers,
 * so take care increasing this value.
 */
#define MAXPICKELEMS 2500
Yes, this is rooted in the same issue as the other bug. I'll duplicate this bug with your other one, note the below information, and ask the devs what they'd want to do about it -- it's been this way for many years now including back to the Blender 2.7x series. It was introduced in 50e9868abe The 2500 number is hardcoded right now. The particular usage of this value during selection is roughly 2 * MAXPICKELEMS as seen in: `https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_view3d/view3d_select.cc$3740` ``` /** * The default value for the maximum number of elements that can be selected at once * using view-port selection. * * \note in many cases this defines the size of fixed-size stack buffers, * so take care increasing this value. */ #define MAXPICKELEMS 2500 ```

Closed as duplicate of blender/documentation#102485

Closed as duplicate of blender/documentation#102485

Thanks, Jesse. By the way, sorry, I edited the other task text and forgot to send it. When I sent the link, I saw you had already updated it.

Thanks, Jesse. By the way, sorry, I edited the other task text and forgot to send it. When I sent the link, I saw you had already updated it.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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#102487
No description provided.