I get loads of errors in Output when opening a project and having a tab of a scene open but inactive with ScatterCache. If instead when opening the project the tab with this scene is active or not open at all, I do not get these errors.
So errors appear on scene load if the tab is inactive.
This happened with both AssetLib version and the latest version from v4 branch.
Video
At the beginning of the video the project loads. There are tabs "world_scene" and "player". This time, the "player" tab is open after loading and there are errors in output.
Then I change the active tab to "world_scene" which has a ScatterCache. I reload the project and there are no errors.
Then I change the active tab back to "player" and reload the project, and the errors are there again.
https://github.com/HungryProton/scatter/assets/16261733/6f028268-f244-41ee-9077-24c481994e35
Errors from Output
```
(3) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D()
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance').
(2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D()
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
res://addons/proton_scatter/src/common/scatter_util.gd:74 - Cannot call method 'get_node_or_null' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
res://addons/proton_scatter/src/common/scatter_util.gd:74 - Cannot call method 'get_node_or_null' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance').
(2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D()
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance').
(2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D()
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance').
(2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D()
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
res://addons/proton_scatter/src/scatter.gd:489 - Cannot call method 'get_child_count' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance').
(2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D()
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value.
scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr
res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance').
```
I get loads of errors in Output when opening a project and having a tab of a scene open but inactive with ScatterCache. If instead when opening the project the tab with this scene is active or not open at all, I do not get these errors.
So errors appear on scene load if the tab is inactive.
This happened with both AssetLib version and the latest version from v4 branch.
Video
At the beginning of the video the project loads. There are tabs "world_scene" and "player". This time, the "player" tab is open after loading and there are errors in output. Then I change the active tab to "world_scene" which has a ScatterCache. I reload the project and there are no errors. Then I change the active tab back to "player" and reload the project, and the errors are there again. https://github.com/HungryProton/scatter/assets/16261733/6f028268-f244-41ee-9077-24c481994e35
Errors from Output
``` (3) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. res://addons/proton_scatter/src/common/scatter_util.gd:74 - Cannot call method 'get_node_or_null' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. res://addons/proton_scatter/src/common/scatter_util.gd:74 - Cannot call method 'get_node_or_null' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. res://addons/proton_scatter/src/scatter.gd:489 - Cannot call method 'get_child_count' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). ```