Linked background scene disappears on Save. Crash on reload. #75935

Closed
opened 2020-04-20 15:25:34 +02:00 by Zsolt Stefan · 35 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-20 02:11, hash: blender/blender@23bb42a06e
Worked: 2.82 and previous version worked

Short description of error
I often link a scene from another Blend file into my project, then set this as background scene. I just noticed on the 2.83 daily builds this bug: when saving the file, the background scene simply disappears.

It is however still linked, going to the outliner, switching to Display Mode = Blend file, it is still there. When I then right-click in the outliner and select Reload, Blender crashes (sometimes, sometimes not)

Exact steps for others to reproduce the error

  • Make a Blend file, rename the Scene to = "Background", SAVE.

  • Make a second Blend file.

  • Link the Scene "Background" from the first file.

  • Go to scene settings, under "Background Scene" select the linked Scene. --> it appears in the viewport.

  • Save the file. --> The linked background disappears!

  • Go to outliner, set "Display Mode = Blender file". Scroll down, the linked file ist still there!

  • Right click on link, choose Reload --> CRASH! (sometimes)

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19 **Blender Version** Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-20 02:11, hash: `blender/blender@23bb42a06e` Worked: 2.82 and previous version worked **Short description of error** I often link a scene from another Blend file into my project, then set this as background scene. I just noticed on the 2.83 daily builds this bug: when saving the file, the background scene simply disappears. It is however still linked, going to the outliner, switching to Display Mode = Blend file, it is still there. When I then right-click in the outliner and select Reload, Blender crashes (sometimes, sometimes not) **Exact steps for others to reproduce the error** - Make a Blend file, rename the Scene to = "Background", SAVE. - Make a second Blend file. - Link the Scene "Background" from the first file. - Go to scene settings, under "Background Scene" select the linked Scene. --> it appears in the viewport. - Save the file. --> **The linked background disappears!** - Go to outliner, set "Display Mode = Blender file". Scroll down, the linked file ist still there! - Right click on link, choose Reload --> CRASH! (sometimes)
Author

Added subscriber: @ZsoltStefan

Added subscriber: @ZsoltStefan

Added subscriber: @rjg

Added subscriber: @rjg

I can't reproduce this with a build of the same commit. The scene neither disappears in the viewport nor does it crash when reloading the linked scene. Are you using a specific scene other than the default startup file? If it is a particular background scene, please try to create a minimal version that still results in a crash and attach the .blend file to your report.

Please open Blender's installation directory and double-click on the blender_debug_log.cmd. This will start Blender in debug mode and create log files. Try to make Blender crash again. The Windows Explorer should open and show you two files. Add them to your bug report by clicking on the upload button as shown in the screenshot below.

2019_12_04_upload_icon_developer_blender_org.png

I can't reproduce this with a build of the same commit. The scene neither disappears in the viewport nor does it crash when reloading the linked scene. Are you using a specific scene other than the default startup file? If it is a particular background scene, please try to create a minimal version that still results in a crash and attach the .blend file to your report. Please open Blender's installation directory and double-click on the `blender_debug_log.cmd`. This will start Blender in debug mode and create log files. Try to make Blender crash again. The Windows Explorer should open and show you two files. Add them to your bug report by clicking on the upload button as shown in the screenshot below. ![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png)

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

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

I made a very simple scene which also has the bug. Put both files in one order, open linked_scene_bug.blend. There is a Suzanne head and some objects around it. When saving the file, the linked objects disappear, only the monkey remains.

I coudn't get this file to crash.
I did however get my other project to crash. I saved the file and reloaded the linked background scene about 3 times, then I reloaded one of the other linked files, then it crashed. The log is attached.

linked_scene_bug.blend

linked_scene_bug_background.blend

blender_debug_output.txt

blender_system_info.txt

I made a very simple scene which also has the bug. Put both files in one order, open linked_scene_bug.blend. There is a Suzanne head and some objects around it. When saving the file, the linked objects disappear, only the monkey remains. I coudn't get this file to crash. I did however get my other project to crash. I saved the file and reloaded the linked background scene about 3 times, then I reloaded one of the other linked files, then it crashed. The log is attached. [linked_scene_bug.blend](https://archive.blender.org/developer/F8487271/linked_scene_bug.blend) [linked_scene_bug_background.blend](https://archive.blender.org/developer/F8487272/linked_scene_bug_background.blend) [blender_debug_output.txt](https://archive.blender.org/developer/F8487276/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F8487277/blender_system_info.txt)

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

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

Added subscriber: @iss

Added subscriber: @iss

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

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

I can not reproduce this @rjg was you able to reproduce?

@ZsoltStefan does this happen if you click on File > Defaults > Load Factory Settings?

I can not reproduce this @rjg was you able to reproduce? @ZsoltStefan does this happen if you click on File > Defaults > Load Factory Settings?

@iss No, I haven't been able to.

@iss No, I haven't been able to.
Author

@iss I reset it to defaults, but the same behaviour.
Interesting: when saving the file and the linked scene disappears: all the objects from the linked scene show up in the Outliner Orphan Data view. After reload of the scene, they're removed from here.
image.png

@iss I reset it to defaults, but the same behaviour. Interesting: when saving the file and the linked scene disappears: all the objects from the linked scene show up in the Outliner Orphan Data view. After reload of the scene, they're removed from here. ![image.png](https://archive.blender.org/developer/F8489619/image.png)

@ZsoltStefan can you test this with Blender version 2.90?

Since we can not reproduce this I assume there is high chance that there is something wrong on your side.
Can you also check what happens if you right click on broken library in outliner and click on relocate?

@ZsoltStefan can you test this with Blender version 2.90? Since we can not reproduce this I assume there is high chance that there is something wrong on your side. Can you also check what happens if you right click on broken library in outliner and click on relocate?
Author

@iss The bug happens on two different computers. They have different hardware, but similar software setups.
Relocate works normally, I can select the same file and it loads the scene like it was before. And crashes sometimes (about 50% of the time)

Just tested on 2.90. The 2.90 build from today works! This is encouraging. So it's something in the 2.83 builds.
I have however managed to make it crash in the same way. Once with Reload from the outliner, once with Relocate, for this latter case I have the debug log:
blender_debug_output.txt
blender_system_info.txt

@iss The bug happens on two different computers. They have different hardware, but similar software setups. Relocate works normally, I can select the same file and it loads the scene like it was before. And crashes sometimes (about 50% of the time) Just tested on 2.90. The 2.90 build from today works! This is encouraging. So it's something in the 2.83 builds. I have however managed to make it crash in the same way. Once with Reload from the outliner, once with Relocate, for this latter case I have the debug log: [blender_debug_output.txt](https://archive.blender.org/developer/F8490742/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F8490743/blender_system_info.txt)

Crash may be related to this problem, I haven't tried hard to reproduce it though.

I would like to further investigate 2.83 problem.

Can you open folder C:\Users\q399628\AppData\Roaming\Blender Foundation\Blender\
either remove folder 2.83 or rename it before testing temporarily if you don't want to lose any user preferences
Then check if this issue persists in version 2.83. I would recommend downloading latest build and extract it to new temporary location (prefferably desktop) and do testing from there

Crash may be related to this problem, I haven't tried hard to reproduce it though. I would like to further investigate 2.83 problem. Can you open folder `C:\Users\q399628\AppData\Roaming\Blender Foundation\Blender\` either remove folder `2.83` or rename it before testing temporarily if you don't want to lose any user preferences Then check if this issue persists in version 2.83. I would recommend downloading latest build and extract it to new temporary location (prefferably desktop) and do testing from there
Author

Okay, I renamed the preferences folder. This did the trick, linked scenes stay after saving. I also have not yet experienced a crash. With today's build, but also with the 2.83 build from the bug report.

Okay, I renamed the preferences folder. This did the trick, linked scenes stay after saving. I also have not yet experienced a crash. With today's build, but also with the 2.83 build from the bug report.

My suspicion here is, that this may be caused by addon, even if it is disabled. I have seen report of disabled addon causing problems.

Otherwise I have no idea what can cause this behavior. If you can investigate this further and find a cause please let us know.
I will leave this report open in state needs info from user, and will be closed in 7-ish days with no new information provided.

Thanks for reporting.

My suspicion here is, that this may be caused by addon, even if it is disabled. I have seen report of disabled addon causing problems. Otherwise I have no idea what can cause this behavior. If you can investigate this further and find a cause please let us know. I will leave this report open in state needs info from user, and will be closed in 7-ish days with no new information provided. Thanks for reporting.

@iss Part of the problem seems to be a bug when a crash happens on a clean install of 2.90 with only the default add-ons enabled:

In #75935#916001, @ZsoltStefan wrote:
@iss The bug happens on two different computers. They have different hardware, but similar software setups.
Relocate works normally, I can select the same file and it loads the scene like it was before. And crashes sometimes (about 50% of the time)

Just tested on 2.90. The 2.90 build from today works! This is encouraging. So it's something in the 2.83 builds.
I have however managed to make it crash in the same way. Once with Reload from the outliner, once with Relocate, for this latter case I have the debug log:
blender_debug_output.txt
blender_system_info.txt

@ZsoltStefan Have you copied your user preferences over to 2.90 install?

@iss Part of the problem seems to be a bug when a crash happens on a clean install of 2.90 with only the default add-ons enabled: > In #75935#916001, @ZsoltStefan wrote: > @iss The bug happens on two different computers. They have different hardware, but similar software setups. > Relocate works normally, I can select the same file and it loads the scene like it was before. And crashes sometimes (about 50% of the time) > > Just tested on 2.90. The 2.90 build from today works! This is encouraging. So it's something in the 2.83 builds. > **I have however managed to make it crash in the same way. Once with Reload from the outliner, once with Relocate, for this latter case I have the debug log:** > [blender_debug_output.txt](https://archive.blender.org/developer/F8490742/blender_debug_output.txt) > [blender_system_info.txt](https://archive.blender.org/developer/F8490743/blender_system_info.txt) @ZsoltStefan Have you copied your user preferences over to 2.90 install?
Author

@iss Ok I've found the culprit for the disappearing scene. It is the BlenderKit addon. Disabling it makes linked assets work normally.

For more information: I don't know if this is the cause, but the addon is not logged into an account. I have a Blenderkit account, however when I log in (through the browser), Blender just waits and waits for a connection. If I press cancel I get this message:
image.png This is a work computer, so maybe the company network prohibits the connection. So I can't use the addon anyways, I can disable it. Still shouldn't be deleting linked scenes though.

@rjg I can't say with certainty, but I probably did not copy the settings, otherwise Blenderkit would have been enabled and then I would've had the same problem.

Which leaves the question of the crash. I haven't had a crash today, I'll post here if it happens again and under what conditions.

@iss Ok I've found the culprit for the disappearing scene. It is the BlenderKit addon. Disabling it makes linked assets work normally. For more information: I don't know if this is the cause, but the addon is not logged into an account. I have a Blenderkit account, however when I log in (through the browser), Blender just waits and waits for a connection. If I press cancel I get this message: ![image.png](https://archive.blender.org/developer/F8492355/image.png) This is a work computer, so maybe the company network prohibits the connection. So I can't use the addon anyways, I can disable it. Still shouldn't be deleting linked scenes though. @rjg I can't say with certainty, but I probably did not copy the settings, otherwise Blenderkit would have been enabled and then I would've had the same problem. Which leaves the question of the crash. I haven't had a crash today, I'll post here if it happens again and under what conditions.

@ZsoltStefan Thanks for info.

I would recommend making a bug report for BlenderKit addon if they have a tracker or notifying it's developers of this problem. They will probably be able to find root cause easily and colaborate with us on fixing it.

Will wait for new info to reproduce crash

@ZsoltStefan Thanks for info. I would recommend making a bug report for BlenderKit addon if they have a tracker or notifying it's developers of this problem. They will probably be able to find root cause easily and colaborate with us on fixing it. Will wait for new info to reproduce crash
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

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

Changed status from 'Needs User Info' to: 'Archived'
Ankit Meel self-assigned this 2020-05-01 17:02:57 +02:00
Member

I would recommend making a bug report for BlenderKit addon if they have a tracker or notifying it's developers of this problem. They will probably be able to find root cause easily and colaborate with us on fixing it.
Will wait for new info to reproduce crash

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report.

>I would recommend making a bug report for BlenderKit addon if they have a tracker or notifying it's developers of this problem. They will probably be able to find root cause easily and colaborate with us on fixing it. >Will wait for new info to reproduce crash No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report.

Added subscriber: @AndresStephens

Added subscriber: @AndresStephens

Yes, I can confirm, it's the Blenderkit addon that causes this issue.

Yes, I can confirm, it's the Blenderkit addon that causes this issue.
Member

Did anyone file a bug report https://www.blenderkit.com/report-bug/ ?
@iss or should we reopen it since blenderkit is part of addons project ?

Did anyone file a bug report https://www.blenderkit.com/report-bug/ ? @iss or should we reopen it since blenderkit is part of addons project ?

In #75935#1038837, @ankitm wrote:
@iss or should we reopen it since blenderkit is part of addons project ?

Oops I didn't check this, I assumed it's not.
I will re-check if I can reproduce first

> In #75935#1038837, @ankitm wrote: > @iss or should we reopen it since blenderkit is part of addons project ? Oops I didn't check this, I assumed it's not. I will re-check if I can reproduce first

Changed status from 'Archived' to: 'Confirmed'

Changed status from 'Archived' to: 'Confirmed'

Added subscriber: @VilemDuha

Added subscriber: @VilemDuha

Yes I can reproduce, that backround scene will dissappear, I can't reproduce crash anymore.

CC @VilemDuha

Yes I can reproduce, that backround scene will dissappear, I can't reproduce crash anymore. CC @VilemDuha
Ankit Meel removed their assignment 2020-10-22 15:41:41 +02:00
Member

Thanks for linking me, wasn't aware of this bug until now, will investigate asap before release. BlenderKit doesn't interact with linked scenes, but also, I never used the background scene feature so need to check well if this issue is still there.

Thanks for linking me, wasn't aware of this bug until now, will investigate asap before release. BlenderKit doesn't interact with linked scenes, but also, I never used the background scene feature so need to check well if this issue is still there.

This issue was referenced by df726ecd2b

This issue was referenced by df726ecd2bad8cdcdfec57ab0d161fa8ac4ef247

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Hi.
i have exactly this issue with blender 3.6.
i have blenderkit installed but not loaded. will try with a fresh blender install on another pc tomorrow.
to reproduce:

  1. create new file
  2. link whole blender file with link-> scene
  3. the linked blender scene shows up under scenes.
  4. i stay in the default scene and save
  5. reopen, the linked file is gone without trace.
Hi. i have exactly this issue with blender 3.6. i have blenderkit installed but not loaded. will try with a fresh blender install on another pc tomorrow. to reproduce: 1. create new file 2. link whole blender file with link-> scene 3. the linked blender scene shows up under scenes. 4. i stay in the default scene and save 5. reopen, the linked file is gone without trace.

seems that the scene needs to be opened in the compositor or editor, so it get saved with the file. probably garbage collection?

seems that the scene needs to be opened in the compositor or editor, so it get saved with the file. probably garbage collection?

Please make new report, this one was resolved already.

Please make new report, this one was resolved already.
Sign in to join this conversation.
No Milestone
No project
No Assignees
8 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-addons#75935
No description provided.