Regression in 4.0, crash loading blend file without a scene collection #112649

Closed
opened 2023-09-21 05:31:39 +02:00 by Campbell Barton · 8 comments

Broken: f6082a5042db7cfe6c4617387a04f216a1ba3f99
Working: 3.6 LTS.

This test from lib/ crashes on load:

blender ../lib/tests/depsgraph/deg_point_cache_transform.blend

This crashes in release builds, asserts in debug builds:

./blender.bin() ./source/blender/blenlib/intern/system.c:86: BLI_system_backtrace (0x2fa9abe)
./blender.bin() ./source/blender/blenlib/intern/BLI_assert.c:38: _BLI_assert_print_backtrace (0x29ca0f0)
./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2101 (discriminator 2): scene_collections_array(Scene*, Collection***, int*) (0x35b760e)
./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2124: BKE_scene_collections_iterator_begin (0x35b79ba)
./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2182: scene_objects_iterator_begin(BLI_Iterator*, Scene*, GSet*) (0x35b7f87)
./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2193: BKE_scene_objects_iterator_begin (0x35b8056)
./blender.bin() ./source/blender/blenkernel/intern/lib_override_proxy_conversion.cc:126: BKE_lib_override_library_main_proxy_convert(Main*, BlendFileReadReport*) (0x3f08530)
./blender.bin() ./source/blender/blenloader/intern/versioning_common.cc:522: do_versions_after_setup(Main*, BlendFileReadReport*) (0x4e43643)
./blender.bin() ./source/blender/blenloader/intern/readblenentry.cc:512: BLO_read_do_version_after_setup (0x4d1c740)
./blender.bin() ./source/blender/blenkernel/intern/blendfile.cc:880: setup_app_data(bContext*, BlendFileData*, BlendFileReadParams const*, BlendFileReadWMSetupData*, BlendFileReadReport*) (0x3520a67)
./blender.bin() ./source/blender/blenkernel/intern/blendfile.cc:956: setup_app_blend_file_data(bContext*, BlendFileData*, BlendFileReadParams const*, BlendFileReadWMSetupData*, BlendFileReadReport*) (0x3521081)
./blender.bin() ./source/blender/blenkernel/intern/blendfile.cc:994: BKE_blendfile_read_setup_readfile (0x35213c3)
./blender.bin() ./source/blender/windowmanager/intern/wm_files.cc:1067: WM_file_read(bContext*, char const*, ReportList*) (0x3033a5f)
./blender.bin() ./source/creator/creator_args.cc:2185 (discriminator 1): handle_load_file(bContext*, char const*, bool) (0x29c726d)
./blender.bin() ./source/creator/creator_args.cc:2256 (discriminator 1): main_args_handle_load_file (0x29c76c5)
./blender.bin() ./source/blender/blenlib/intern/BLI_args.c:322: BLI_args_parse (0x2fbfa62)
./blender.bin() ./source/creator/creator.cc:564: main (0x29bcaa4)
/usr/lib/libc.so.6(+0x27cd0) ??:0: ?? (0x7fdfca627cd0)
/usr/lib/libc.so.6(__libc_start_main+0x8a) ??:0: ?? (0x7fdfca627d8a)
./blender.bin() ??:?: _start (0x29bc125)
BLI_assert failed: source/blender/blenkernel/intern/collection.cc:2101, scene_collections_array(), at 'collection != nullptr'
Broken: `f6082a5042db7cfe6c4617387a04f216a1ba3f99` Working: 3.6 LTS. This test from `lib/` crashes on load: `blender ../lib/tests/depsgraph/deg_point_cache_transform.blend` This crashes in release builds, asserts in debug builds: ``` ./blender.bin() ./source/blender/blenlib/intern/system.c:86: BLI_system_backtrace (0x2fa9abe) ./blender.bin() ./source/blender/blenlib/intern/BLI_assert.c:38: _BLI_assert_print_backtrace (0x29ca0f0) ./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2101 (discriminator 2): scene_collections_array(Scene*, Collection***, int*) (0x35b760e) ./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2124: BKE_scene_collections_iterator_begin (0x35b79ba) ./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2182: scene_objects_iterator_begin(BLI_Iterator*, Scene*, GSet*) (0x35b7f87) ./blender.bin() ./source/blender/blenkernel/intern/collection.cc:2193: BKE_scene_objects_iterator_begin (0x35b8056) ./blender.bin() ./source/blender/blenkernel/intern/lib_override_proxy_conversion.cc:126: BKE_lib_override_library_main_proxy_convert(Main*, BlendFileReadReport*) (0x3f08530) ./blender.bin() ./source/blender/blenloader/intern/versioning_common.cc:522: do_versions_after_setup(Main*, BlendFileReadReport*) (0x4e43643) ./blender.bin() ./source/blender/blenloader/intern/readblenentry.cc:512: BLO_read_do_version_after_setup (0x4d1c740) ./blender.bin() ./source/blender/blenkernel/intern/blendfile.cc:880: setup_app_data(bContext*, BlendFileData*, BlendFileReadParams const*, BlendFileReadWMSetupData*, BlendFileReadReport*) (0x3520a67) ./blender.bin() ./source/blender/blenkernel/intern/blendfile.cc:956: setup_app_blend_file_data(bContext*, BlendFileData*, BlendFileReadParams const*, BlendFileReadWMSetupData*, BlendFileReadReport*) (0x3521081) ./blender.bin() ./source/blender/blenkernel/intern/blendfile.cc:994: BKE_blendfile_read_setup_readfile (0x35213c3) ./blender.bin() ./source/blender/windowmanager/intern/wm_files.cc:1067: WM_file_read(bContext*, char const*, ReportList*) (0x3033a5f) ./blender.bin() ./source/creator/creator_args.cc:2185 (discriminator 1): handle_load_file(bContext*, char const*, bool) (0x29c726d) ./blender.bin() ./source/creator/creator_args.cc:2256 (discriminator 1): main_args_handle_load_file (0x29c76c5) ./blender.bin() ./source/blender/blenlib/intern/BLI_args.c:322: BLI_args_parse (0x2fbfa62) ./blender.bin() ./source/creator/creator.cc:564: main (0x29bcaa4) /usr/lib/libc.so.6(+0x27cd0) ??:0: ?? (0x7fdfca627cd0) /usr/lib/libc.so.6(__libc_start_main+0x8a) ??:0: ?? (0x7fdfca627d8a) ./blender.bin() ??:?: _start (0x29bc125) BLI_assert failed: source/blender/blenkernel/intern/collection.cc:2101, scene_collections_array(), at 'collection != nullptr' ```
Campbell Barton added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-09-21 05:31:39 +02:00
Member

I can confirm the crash

I can confirm the crash
Pratik Borhade added
Module
Core
Priority
High
Status
Confirmed
and removed
Priority
Normal
Status
Needs Triage
labels 2023-09-21 06:04:19 +02:00
Member

Caused by 30a25a42e6
@mod_moder ^

Caused by 30a25a42e64daf697d82e94174dd9311aee46ad4 @mod_moder ^
Iliya Katushenock self-assigned this 2023-09-25 09:29:33 +02:00

I can't reproduce crash in 98b973294b , i'll bisect this...

I can't reproduce crash in 98b973294b5f0b3e4ff60cc85611db737e6b03d5 , i'll bisect this...
Iliya Katushenock removed their assignment 2023-09-25 16:19:12 +02:00

In 30a25a42e6 was introduced few regression, i hope all of this was fixed until 98b973294b. At least, that bug can not be reproduced in 98b973294b .
After bisect in range 98b973294b -- f6082a5042 : Causer is: 23835a393c .
Or someone in range 7f34ad736a -- 23835a393c .

@mont29 /

In 30a25a42e64daf697d82e94174dd9311aee46ad4 was introduced few regression, i hope all of this was fixed until 98b973294b5f0b3e4ff60cc85611db737e6b03d5. At least, that bug can not be reproduced in 98b973294b5f0b3e4ff60cc85611db737e6b03d5 . After bisect in range 98b973294b5f0b3e4ff60cc85611db737e6b03d5 -- f6082a5042db7cfe6c4617387a04f216a1ba3f99 : Causer is: 23835a393c80d23018e645338418446bd691dd7d . Or someone in range 7f34ad736ac12e10a96c6bf045e3f64b67a29cdd -- 23835a393c80d23018e645338418446bd691dd7d . @mont29 /
Author
Owner

For me the crash happens in 30a25a42e6 and not in the previous commit 30a25a42e6~1, although it's always possible this is a red-herring somehow as it does seem more likely this is related to changes to the scene collection handling.

For me the crash happens in 30a25a42e6 and not in the previous commit 30a25a42e6~1, although it's always possible this is a red-herring somehow as it does seem more likely this is related to changes to the scene collection handling.

They have a different stack and the older crash was later fixed (Check 98b973294b as time point of worked state).

They have a different stack and the older crash was later fixed (Check 98b973294b5f0b3e4ff60cc85611db737e6b03d5 as time point of worked state).

As @mod_moder found, this compatibility with very old early 2.80 dev files was removed on purpose in 23835a393c .

This file is Version 280 sub 4 date 2018-02-07, the removed code affects all version from 2.80 sub 1 to 2.80 sub 14 afaik.

Will try to find a way to avoid crash by adding a default collection/viewlayer in these cases when am back from holidays. But this is definitely not a high prio issue!

As @mod_moder found, this compatibility with very old early 2.80 dev files was removed on purpose in 23835a393c . This file is `Version 280 sub 4 date 2018-02-07`, the removed code affects all version from `2.80 sub 1` to `2.80 sub 14` afaik. Will try to find a way to avoid crash by adding a default collection/viewlayer in these cases when am back from holidays. But this is definitely _not_ a high prio issue!
Bastien Montagne self-assigned this 2023-09-26 15:36:32 +02:00
Bastien Montagne added
Priority
Normal
Interest
BlendFile
Type
Bug
and removed
Priority
High
Type
Report
labels 2023-09-26 15:37:19 +02:00

This also raises the question whether we should keep at all files from older development versions in our tests tbh... Full compatibility with files from released versions is critical, but from files coming from super-alpha dev builds... Not so sure. ;)

This also raises the question whether we should keep at all files from older development versions in our tests tbh... Full compatibility with files from released versions is critical, but from files coming from super-alpha dev builds... Not so sure. ;)
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-10-04 13:26:22 +02:00
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
4 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#112649
No description provided.