Text objects count as double in scene statistics #94038

Open
opened 2021-12-14 01:01:23 +01:00 by Damien Picard · 23 comments
Member

System Information
Operating system: Linux-5.13.0-22-generic-x86_64-with-glibc2.34 64 Bits
Graphics card: GeForce GTX 660M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.226.00

Blender Version
Broken: version: 3.0.0 Release
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-12-13 23:43, hash: b647509913
Caused by b9febb54a4

Short description of error
Text objects count as double in scene statistics. No other object type seems to be affected.

Exact steps for others to reproduce the error

text_objects_duplicate_in_statistics.blend

  • Open Blender with factory defaults
  • Delete default objects
  • Create text object
  • Activate scene statistics in the bottom status bar
  • Activate statistics in viewport overlays

Both statistics display 2 objects instead of just 1.

image.png

**System Information** Operating system: Linux-5.13.0-22-generic-x86_64-with-glibc2.34 64 Bits Graphics card: GeForce GTX 660M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.226.00 **Blender Version** Broken: version: 3.0.0 Release Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-12-13 23:43, hash: `b647509913` Caused by b9febb54a4 **Short description of error** Text objects count as double in scene statistics. No other object type seems to be affected. **Exact steps for others to reproduce the error** [text_objects_duplicate_in_statistics.blend](https://archive.blender.org/developer/F12738439/text_objects_duplicate_in_statistics.blend) - Open Blender with factory defaults - Delete default objects - Create text object - Activate scene statistics in the bottom status bar - Activate statistics in viewport overlays Both statistics display 2 objects instead of just 1. ![image.png](https://archive.blender.org/developer/F12738440/image.png)
Author
Member

Added subscriber: @pioverfour

Added subscriber: @pioverfour
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123

Added subscriber: @Garek

Added subscriber: @Garek

I can confirm on 3.0 release. Note that in Edit and Pose modes it count text as 1 object, in all others it's 2 (unless I missed some modes that shows only after adding certain object). No other category is counted as 2.

I can confirm on 3.0 release. Note that in Edit and Pose modes it count text as 1 object, in all others it's 2 (unless I missed some modes that shows only after adding certain object). No other category is counted as 2.
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Pratik Borhade self-assigned this 2021-12-14 10:36:32 +01:00
Member

Thanks for the report. Can confirm as well.

@Garek , thanks for testing :)
How did you manage to enter in pose & other mode with text object? With cube as active object?

Thanks for the report. Can confirm as well. @Garek , thanks for testing :) How did you manage to enter in pose & other mode with text object? With cube as active object?

In #94038#1272083, @PratikPB2123 wrote:
How did you manage to enter in pose mode with text object? With cube as active object?

Since scene statistics counts all objects, not only active one, I just added armature object, selected it and changed to Pose mode. Same with other modes.

> In #94038#1272083, @PratikPB2123 wrote: > How did you manage to enter in pose mode with text object? With cube as active object? Since scene statistics counts all objects, not only active one, I just added armature object, selected it and changed to Pose mode. Same with other modes.
Author
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Author
Member

@HooglyBoogly I bisected this to b9febb54a4.

I don’t understand what exactly is going on, but it looks like a text object inside geometry nodes is counted as an object in addition to the top-level object.

I tried using the geometry from a text object inside a mesh’s geometry nodes, and that object counted triple!

rBb9febb54a492_geo_curves_duplicates.png

@HooglyBoogly I bisected this to b9febb54a4. I don’t understand what exactly is going on, but it looks like a text object inside geometry nodes is counted as an object in addition to the top-level object. I tried using the geometry from a text object inside a mesh’s geometry nodes, and that object counted *triple*! ![rBb9febb54a492_geo_curves_duplicates.png](https://archive.blender.org/developer/F12754089/rBb9febb54a492_geo_curves_duplicates.png)
Pratik Borhade removed their assignment 2021-12-18 11:07:07 +01:00

Added subscriber: @nignibegna

Added subscriber: @nignibegna

Hi, I uploaded a revision for this task https://developer.blender.org/D13840

Hi, I uploaded a revision for this task https://developer.blender.org/D13840

Added subscriber: @WCN

Added subscriber: @WCN

Curves with a bevel_object also count as double.

Curves with a `bevel_object` also count as double.

Added subscriber: @brecht

Added subscriber: @brecht

Tagging high priority bugs with 3.1 so we get an overview of the work remaining for that release. If the module owner does not consider this planned for 3.1, please change the tag to 3.2 or lower the priority to normal.

Tagging high priority bugs with 3.1 so we get an overview of the work remaining for that release. If the module owner does not consider this planned for 3.1, please change the tag to 3.2 or lower the priority to normal.
Member

I think this is complicated by two things:

  • The internals don't match the UI (the fact that we present mesh instances as objects to renderers is a relic of past design that should arguably be completely rethought).
  • There is no clear design for what that object count is actually supposed to mean.

There are plenty of possibilities and cases to consider:

  • Original objects
  • Original objects and object instances
  • Original objects and recursive objects in collection instances
  • Evaluated objects with multiple geometry components
  • Evaluated objects with nested instancing
  • Evaluated objects with geometry component instances (where geometry component can have more than one geometry component).

Packing all that information into a single number is going to require some compromises, I think. I've messed around with adding various flags to DupliObject a few times in the past, but never got something that I think everyone would consider "a fix".

I would just make this number count original objects and avoid all that complexity. More precise information about instancing can be found with the spreadsheet editor anyway.

I think this is complicated by two things: - The internals don't match the UI (the fact that we present mesh instances as objects to renderers is a relic of past design that should arguably be completely rethought). - There is no clear design for what that object count is actually supposed to mean. There are plenty of possibilities and cases to consider: - Original objects - Original objects and object instances - Original objects and recursive objects in collection instances - Evaluated objects with multiple geometry components - Evaluated objects with nested instancing - Evaluated objects with geometry component instances (where geometry component can have more than one geometry component). Packing all that information into a single number is going to require some compromises, I think. I've messed around with adding various flags to `DupliObject` a few times in the past, but never got something that I think everyone would consider "a fix". I would just make this number count original objects and avoid all that complexity. More precise information about instancing can be found with the spreadsheet editor anyway.

What stats are designed for right now is to show the scene complexity as delivered to the renderer, not the original scene. I think that's reasonably well defined, even if arguments can be made for and against that.

If there's a text object in the scene presumably the renderer is only going to render one object and that's the one we can count? At least I assume it's not e.g. exporting two objects with one being empty.

What stats are designed for right now is to show the scene complexity as delivered to the renderer, not the original scene. I think that's reasonably well defined, even if arguments can be made for and against that. If there's a text object in the scene presumably the renderer is only going to render one object and that's the one we can count? At least I assume it's not e.g. exporting two objects with one being empty.

Also, this does not seem like a showstopper for 3.1 even if it's a regression.

Also, this does not seem like a showstopper for 3.1 even if it's a regression.
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Also, this does not seem like a showstopper for 3.1 even if it's a regression.

Agreed.

> Also, this does not seem like a showstopper for 3.1 even if it's a regression. Agreed.

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

In #94038#1315716, @brecht wrote:
Also, this does not seem like a showstopper for 3.1 even if it's a regression.

In this case please change the tag to 3.2 or general BF Blender, so it's not on the 3.1 board anymore.

> In #94038#1315716, @brecht wrote: > Also, this does not seem like a showstopper for 3.1 even if it's a regression. In this case please change the tag to 3.2 or general BF Blender, so it's not on the 3.1 board anymore.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:44:20 +01:00
Member

#99088 #112913 have the same roots.

#99088 #112913 have the same roots.
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
10 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#94038
No description provided.