Mesh selection in viewport broken with scenes using a high number of models #104008
Labels
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#104008
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.02
Blender Version
Broken: version: 3.5.0 Alpha, branch: master, commit date: 2023-01-19 00:14, hash:
83f9218801
Worked: Never (2.8+)
Short description of error
We are working on a commercial project with imported SketchUp scenes using 55K+ models and running more and more into broken scenes with selection issues in the viewport.
What we figured out so far:
When we delete all my other scenes in the Blender file and purge the data the selection modes work again.
Exact steps for others to reproduce the error
T104008_Selection_Bug_350_v006_CUBES_REPORT.blend
Try to select cubes.
Added subscriber: @Renderbicks
+++ Serious +++ mesh selection issue in viewport with complex scenesto Mesh selection issue in viewport with complex scenesAdded subscriber: @SteffenD
Added subscriber: @mod_moder
I really don't think there are so few places in blender to bypass and test them all in all possible scenarios, just excluding some of the cases you describe.
To confirm this, you must at least have a way to reproduce this problem.
So you can:
Also. Here is a video example. On it, I demonstrate running the blender through the console. Try to do this in order to have at least some information about the fall after the crash.
2023-01-19 19-43-54.mp4
+++ UPDATE +++
Unfortunately not possible this way. It has something to do with the complexity. Reducing the scene will remove the issue at a point. The bug is a critical showstopper here. I will try to replace all objects with a cube now to see if this works.
It's good! Also, in case of failure, try to explore other suggested options.
Added subscriber: @LazyDodo
if it does depend on the complex geometry, applying the cast modifier and turn all meshes into spheres may be an option for you, be sure to apply the modifier though, so it doesn't retain the original mesh data
Same idea ;-) I simply linked a cube to all objects. The instances give a small scene with the issue and it's clear that it's not the geometry but the number of objects.
The right cube can be selected in the viewport. But not the left cube.
If you select now the right cube and delete it and click on the left cube, Blender will close immediately.
When I prepared the scene first by isolating the cubes for a crash by a Collection I figured out that the above crash is fixed when I search the models in the outliner, select them and move them with "m" to a new Collection.
And then the left cube is selectable in the viewport again.
Could it be that the number of objects in a collection causes this error?
You can switch between two scenes with different SketchUp imports. Try to select models in the viewport with different methods. If you would delete e.g. the Ground_Floor and purge the data the Second_Floor seems to be fixed and vice versa.
Note: The scene contains a lot of Empty parents for the meshes.
Perfect! The repro file is shocking: Select and delete the first cube (because the cube on the left isn't selectable for ominous reasons) and afterwards selecting the next cube will crash Blender. I can totally confirm it here under Linux and latest master as well.
Some models react on point selection by selecting another model in the Collection.
+++ RESEARCH UPDATE +++
I played around by reducing the number of objects in the Blender file across the scenes.
Suspicion: Reducing the number of objects under 30K will fix the issue. It is noticeable that when I reduce the number step by step, more and more cubes are directly selectable and others are not yet.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @iss
Can also reproduce crash
base
wasnullptr.
+++ RESEARCH UPDATE +++
I created a Blender file with a grid of42,001 cubes. Cubes are named from Cube to Cube.42000. I can select all cubes in my scene using point-and-click and Box Select. But Box Select can't select all cubes in one run. I have to do it by selecting a specific number of cubes with Shift over and over again till all cubes are selected. With Lasso Select, I am able to select all cubes in one run. Circle Select works, too, but very laggy.Try the scene here: Research_30K+_Cubes_v001.blend
Then I save this Blender file to a new name, add another scene, and append the Collection of the first Blender file to this empty scene. Cubes are named from Cube.42001 to Cube.84000. I can select cubes in my scene using point-and-click and Box Select. But just to a specific number and the rest is not selectable anymore. The order is crucial. I can select exactly 26,949 models.
Now I switch to my original scene tab and start to Box Select. But the selection order is corrupted in a fixed pattern. Different cubes will be selected in specific areas. I can finally select 38,585 cubes only. If I delete the second scene and purge the data I can select all 42,001 models with the broken Box Select as before.
Try the scene here: Research_30K+_Cubes_v002_Append.blend
Here's a recording of the selection process:
T104008_Blender350_Selection_Bug.mp4
Just for reference, the reason for the selection limit blender/documentation#102485 (Box selection, tool or B key, doesn't select more than 5K objects)
Mesh selection issue in viewport with complex scenesto Mesh selection issue in viewport with scenes using a high number of modelsI am actually struggling with our project because the selection bug (not the 5K limit) is a serious showstopper in our case. The viewport becomes useless when you can't pick meshes. I know that our amount of objects is unusual but it's good that this showed up the bug.
Here's a better debug scene with 125,000 objects (1 cube, 124,999 linked). This bug should be flagged as a critical showstopper. At a specific number of elements, Blender becomes useless because it's impossible to select the right object in the viewport.
T104008_Selection_Bug_350_125K_Cubes_v001.blend
For the debug scene "T104008_Selection_Bug_350_125K_Cubes_v001.blend" I have created a movie to show the corrupted data management when trying to box or click select cubes.
T104008_Selection_Bug_350_125K_Cubes_v001.mp4
Added subscriber: @Jeroen-Bakker
Does it help disabling gpu selection in the user preferences? Gpu selection has some limitations when handling scenes. With a large number of objects.
@Jeroen-Bakker If you mean "GPU Depth Picking" then no, it doesn't help. I already tried that.
I also tried running "blender-softwaregl" under Linux and it also doesn't improve the situation.
Blender can handle 214K of linked object data pretty nicely on my XMG NEO laptop with RTX 3080. It's just the selection issue that kills my project actually. Someone said that this looks like a limitation by 16-bit integer (65536). The figure is consistent with my observation.
blender_uOxJ4wo16B.mp4
I would suggest that you consider using geometry nodes and representing all of these things as points in a mesh. With their subsequent instantiation. Although typing by writing a type index into an attribute would not yet be so convenient.
In any case, this is in case of further problems with the report.
My cubes scene was created for debugging to reproduce the issues of my retail shop interior scene. We import SketchUp scenes with up to 106K objects incl. Empty objects and have to go through the meshes by material selection and create instances of the same mesh type to lower the polygon count for GPU rendering and better viewport performance. But for this, we need to select the objects directly in the viewport. And this is broken when the scene exceeds 65K objects. There is no workflow for geocodes and we have to replace the meshes a couple of times with newer Sketchup updates in the interior design process.
Mesh selection issue in viewport with scenes using a high number of modelsto Mesh selection in viewport broken with scenes using a high number of modelsSimilarly, reproducing in 3.2, 3.5, 3.6.0, etc., copying an object out, copying it back, and clicking on other objects will cause a crash. The c key selection can work; Finally, select one object and choose another object; This situation also exists in UE5.1, where too much vegetation can lead to collapse and the same selection error (selecting another tree)