No responding open .blend file reuse mesh many times #92596

Open
opened 2021-10-29 03:29:35 +02:00 by sunfei · 12 comments

System Information
Operating system: Windows 10
Graphics card: RTX 3090

Blender Version
Broken: blender-3.0.0-alpha+master.32cc9ff03746-windows.amd64-release (example: 2.80, edbf15d3c0, master, 2018-11-28, as found on the splash screen)
Worked: None (newest version of Blender that worked as expected)

Short description of error
.blend file can download here
https://devtalk.blender.org/t/latest-blender3-0-cannot-open-this-blend-file/21082

Exact steps for others to reproduce the error
I use bpy build a scene reuse some mesh many times. reuse around 64 times can work smoothly, only 0.4 second to build and open immediately. 128 times build 0.9 seconds and open will take a while. 256 times build 3.17 seconds and cannot open(no responding, not error).

          collection = bpy.data.collections.new('matrices')
          bpy.data.collections['meshes'].children.link(collection)
          count = 0
          for mat in self.matrices:
              obj = bpy.data.objects.new(mesh.name, mesh)
              collection.objects.link(obj)
              mat_bpy = matrix_translate_to_bpy(mat)
              obj.matrix_world = mathutils.Matrix([mat_bpy[:4], mat_bpy[4:8], mat_bpy[8:12], mat_bpy[12:16]])
              obj.data.materials.append(materials[get_material_key(self.material)])
              count += 1
              if count > 256:break
**System Information** Operating system: Windows 10 Graphics card: RTX 3090 **Blender Version** Broken: blender-3.0.0-alpha+master.32cc9ff03746-windows.amd64-release (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen) Worked: None (newest version of Blender that worked as expected) **Short description of error** .blend file can download here https://devtalk.blender.org/t/latest-blender3-0-cannot-open-this-blend-file/21082 **Exact steps for others to reproduce the error** I use bpy build a scene reuse some mesh many times. reuse around 64 times can work smoothly, only 0.4 second to build and open immediately. 128 times build 0.9 seconds and open will take a while. 256 times build 3.17 seconds and cannot open(no responding, not error). ``` collection = bpy.data.collections.new('matrices') bpy.data.collections['meshes'].children.link(collection) count = 0 for mat in self.matrices: obj = bpy.data.objects.new(mesh.name, mesh) collection.objects.link(obj) mat_bpy = matrix_translate_to_bpy(mat) obj.matrix_world = mathutils.Matrix([mat_bpy[:4], mat_bpy[4:8], mat_bpy[8:12], mat_bpy[12:16]]) obj.data.materials.append(materials[get_material_key(self.material)]) count += 1 if count > 256:break ```
Author

Added subscriber: @sunfei

Added subscriber: @sunfei

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

This report is incomplete - Please provide all data needed to run this script and create files for investigation. Not sure if file on devtalk can be used, but these files are already hard to work with because opening them takes a long time. I will do profiling in meanwhile to see what is main issue of long loading time.

This report is incomplete - Please provide all data needed to run this script and create files for investigation. Not sure if file on devtalk can be used, but these files are already hard to work with because opening them takes a long time. I will do profiling in meanwhile to see what is main issue of long loading time.

Added subscriber: @mont29

Added subscriber: @mont29

Here is flame graph of loading provided .blend file. there are about 5K objects distributed in not that many (not quite sure how many exactly, in order on 100) collections. @mont29 I think you will know whether this would be known issue or bug?
Untitled.png
128.blend

Here is flame graph of loading provided .blend file. there are about 5K objects distributed in not that many (not quite sure how many exactly, in order on 100) collections. @mont29 I think you will know whether this would be known issue or bug? ![Untitled.png](https://archive.blender.org/developer/F11590796/Untitled.png) [128.blend](https://archive.blender.org/developer/F11590803/128.blend)

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

This happening in the Outliner's draw code (during building its tree), so think @JulianEisel should be the first to have a look at this?

But this is definitely a bug yes, something wrong in that code.

In the mean time, a work around is to not have an outliner view in the UI.

This happening in the Outliner's draw code (during building its tree), so think @JulianEisel should be the first to have a look at this? But this is definitely a bug yes, something wrong in that code. In the mean time, a work around is to not have an outliner view in the UI.

Added subscriber: @PaulMelis

Added subscriber: @PaulMelis
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:23:05 +01:00
Member

I get significantly better results when opening these files in 4.0 compared to 3.0. There have been a lot of refactors and optimizations to the Outliner code, so this doesn't surprise me.

@sunfei can you confirm this is working better now?

I get significantly better results when opening these files in 4.0 compared to 3.0. There have been a lot of refactors and optimizations to the Outliner code, so this doesn't surprise me. @sunfei can you confirm this is working better now?
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
6 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#92596
No description provided.