Startup.blend file is not loaded on startup if userpref.blend does not exist. #69002

Open
opened 2019-08-21 18:08:44 +02:00 by Narayan Aras · 32 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: Intel(R) UHD Graphics 620 Intel 4.5.0 - Build 26.20.100.7000

Blender Version
Broken: version: 2.81 (sub 3), branch: master, commit date: 2019-08-20 22:35, hash: daba3e871f
Worked: (optional)

Short description of error
Startup.blend file is not loaded on startup if userpref.blend does not exist.

Exact steps for others to reproduce the error

  • Remove userpref.blend file from it's usual location
  • Start blender
  • Dismiss splash screen by clicking on 3D viewport
  • Make some change to the file (move the cube)
  • Save as startup file
  • Close Blender

Open blender

Startup file is not loaded

**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: Intel(R) UHD Graphics 620 Intel 4.5.0 - Build 26.20.100.7000 **Blender Version** Broken: version: 2.81 (sub 3), branch: master, commit date: 2019-08-20 22:35, hash: `daba3e871f` Worked: (optional) **Short description of error** Startup.blend file is not loaded on startup if userpref.blend does not exist. **Exact steps for others to reproduce the error** - Remove userpref.blend file from it's usual location - Start blender - Dismiss splash screen by clicking on 3D viewport - Make some change to the file (move the cube) - Save as startup file - Close Blender # Open blender Startup file is not loaded
Author

Added subscriber: @raindrops

Added subscriber: @raindrops

Added subscriber: @AbidMaqbool

Added subscriber: @AbidMaqbool

Can confirm in Blender 2.81. Seems fine in Blender 2.8 Stable... so latter disordered..

Can confirm in Blender 2.81. Seems fine in Blender 2.8 Stable... so latter disordered..
Author

This comment was removed by @raindrops

*This comment was removed by @raindrops*
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

#59451 is related btw.

#59451 is related btw.
Philipp Oeser changed title from Blender cannot save the two-column layout of toolbar in the 3D Viewport to Startup File: Blender cannot save the two-column layout of toolbar in the 3D Viewport 2019-10-30 13:00:22 +01:00

Added subscriber: @tiles

Added subscriber: @tiles

Some observations here:

Do a fresh installation, remove everything from the appdata folder. Start Blender. Don't click at the NEXT button in the splash screen. Resize the tool shelf to two columns. Now save the startup.blend, close and reopen Blender. The tool shelf will be single column.

Now do a fresh installation, remove everything from the appdata folder. Start Blender and click at the NEXT button in the splash screen. Resize the tool shelf to two columns. Now save the startup.blend, close and reopen Blender. The tool shelf has kept its status. It is two columns now.

But compiling with this startup.blend results in a single column layout again.

Some observations here: Do a fresh installation, remove everything from the appdata folder. Start Blender. Don't click at the NEXT button in the splash screen. Resize the tool shelf to two columns. Now save the startup.blend, close and reopen Blender. The tool shelf will be single column. Now do a fresh installation, remove everything from the appdata folder. Start Blender and click at the NEXT button in the splash screen. Resize the tool shelf to two columns. Now save the startup.blend, close and reopen Blender. The tool shelf has kept its status. It is two columns now. But compiling with this startup.blend results in a single column layout again.

The problem appears at the commits from 31.07.2019. The commit from 30.07 are fine. The commits from 1.08 have the problem. I can unfortunately not get any closer since the commits from this day does not compile with Visual Studio. It throws errors with FFmpeg and another file, which gots fixed later at this day. But one special commit jumped into my eyes here. Better said two.

31.07.2019 - Cleanup: remove BLO_update_defaults_userpref_blend
31.07.2019 - Preferences: don't store preferences in the startup

This is a rewrite of how some settings are stored. And that's where storing the state of the tool shelf rows may got lost. My C fu is unfortunately too weak to fix the problem. But i hope the informations can be of use.

The problem appears at the commits from 31.07.2019. The commit from 30.07 are fine. The commits from 1.08 have the problem. I can unfortunately not get any closer since the commits from this day does not compile with Visual Studio. It throws errors with FFmpeg and another file, which gots fixed later at this day. But one special commit jumped into my eyes here. Better said two. 31.07.2019 - Cleanup: remove BLO_update_defaults_userpref_blend 31.07.2019 - Preferences: don't store preferences in the startup This is a rewrite of how some settings are stored. And that's where storing the state of the tool shelf rows may got lost. My C fu is unfortunately too weak to fix the problem. But i hope the informations can be of use.

Added subscriber: @iss

Added subscriber: @iss

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

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

I have re-triaged this report and can not reproduce it.
Can you please check if this is still an issue in latest build?
https://builder.blender.org/download/

I have re-triaged this report and can not reproduce it. Can you please check if this is still an issue in latest build? https://builder.blender.org/download/

Yes, that's still an issue. Nobody has fixed this one yet. I have tested it before a few moments with the newest 2.83 buildbot build . There's the above told workaround available for the users. But at the moment nobody can make a working startup.blend file to compile new defaults with a two rows toolbar for example. Or another tool shelf default button than Box Select.

To reproduce:
Remove all stored information in the appdata path. We need a blank Blender.
Open Blender. Do NOT click at the Next button in the splash screen.
Resize toolbar to two rows.
Save startup.blend.
When you reopen Blender, then the toolbar is single column again.

Yes, that's still an issue. Nobody has fixed this one yet. I have tested it before a few moments with the newest 2.83 buildbot build . There's the above told workaround available for the users. But at the moment nobody can make a working startup.blend file to compile new defaults with a two rows toolbar for example. Or another tool shelf default button than Box Select. To reproduce: Remove all stored information in the appdata path. We need a blank Blender. Open Blender. Do NOT click at the Next button in the splash screen. Resize toolbar to two rows. Save startup.blend. When you reopen Blender, then the toolbar is single column again.

Forgot to say, the other way to reproduce is to create a two column tool shelf layout, save the startup.blend, and compile with this startup.blend then. With a fresh installation you will have it single row again then.

Forgot to say, the other way to reproduce is to create a two column tool shelf layout, save the startup.blend, and compile with this startup.blend then. With a fresh installation you will have it single row again then.

Hm, this bug seems not only to block any new factory defaults in the tool shelf, but also in other UI areas. I saved a startup.blend with a different stretching method in the UV Editor. And compiled with it. And the factory default stretching method is back at Blender defaults then.

Hm, this bug seems not only to block any new factory defaults in the tool shelf, but also in other UI areas. I saved a startup.blend with a different stretching method in the UV Editor. And compiled with it. And the factory default stretching method is back at Blender defaults then.
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

In #69002#866391, @tiles wrote:
Yes, that's still an issue. Nobody has fixed this one yet. I have tested it before a few moments with the newest 2.83 buildbot build . There's the above told workaround available for the users. But at the moment nobody can make a working startup.blend file to compile new defaults with a two rows toolbar for example. Or another tool shelf default button than Box Select.

To reproduce:
Remove all stored information in the appdata path. We need a blank Blender.
Open Blender. Do NOT click at the Next button in the splash screen.
Resize toolbar to two rows.
Save startup.blend.
When you reopen Blender, then the toolbar is single column again.

I did exactly this and it worked.

With a fresh installation you will have it single row again then.

What do you mean by fresh installation?

> In #69002#866391, @tiles wrote: > Yes, that's still an issue. Nobody has fixed this one yet. I have tested it before a few moments with the newest 2.83 buildbot build . There's the above told workaround available for the users. But at the moment nobody can make a working startup.blend file to compile new defaults with a two rows toolbar for example. Or another tool shelf default button than Box Select. > > To reproduce: > Remove all stored information in the appdata path. We need a blank Blender. > Open Blender. Do NOT click at the Next button in the splash screen. > Resize toolbar to two rows. > Save startup.blend. > When you reopen Blender, then the toolbar is single column again. I did exactly this and it worked. > With a fresh installation you will have it single row again then. What do you mean by fresh installation?

I will make a video. Give me a few moments please.

I will make a video. Give me a few moments please.

Here the bug:the_bug.mp4

Here the workaround for the users: the_workaround_for_users.mp4

And i would have loved to show the problem and to talk about the consequences for self builders who needs custom factory defaults. Because this bug now prevents us from having own factory defaults, at least for the tool shelf. But the current version of Blender does not compile here at the moment. Any idea what the problem could be?

notcompiling.jpg

Here the bug:[the_bug.mp4](https://archive.blender.org/developer/F8325900/the_bug.mp4) Here the workaround for the users: [the_workaround_for_users.mp4](https://archive.blender.org/developer/F8325902/the_workaround_for_users.mp4) And i would have loved to show the problem and to talk about the consequences for self builders who needs custom factory defaults. Because this bug now prevents us from having own factory defaults, at least for the tool shelf. But the current version of Blender does not compile here at the moment. Any idea what the problem could be? ![notcompiling.jpg](https://archive.blender.org/developer/F8325911/notcompiling.jpg)

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Ok my mistake, I think what I did was open new file instead of restarting Blender.

Seems, that startup.blend file is not loaded if userpref.blend does not exist.
2.79 does not have such problem, but since workaround is quite simple, I would not consider this to be a bug

And i would have loved to show the problem and to talk about the consequences for self builders who needs custom factory defaults. Because this bug now prevents us from having own factory defaults, at least for the tool shelf.

I am not quite sure what you mean by this, but please be aware that this website is strictly dedicated to reporting bugs or patches.

But the current version of Blender does not compile here at the moment. Any idea what the problem could be?

best to ask at https://blender.chat at #blender-coders channel. Do make update and I always rebuild whole solution in MSVC

Ok my mistake, I think what I did was open new file instead of restarting Blender. Seems, that `startup.blend` file is not loaded if userpref.blend does not exist. 2.79 does not have such problem, but since workaround is quite simple, I would not consider this to be a bug > And i would have loved to show the problem and to talk about the consequences for self builders who needs custom factory defaults. Because this bug now prevents us from having own factory defaults, at least for the tool shelf. I am not quite sure what you mean by this, but please be aware that this website is strictly dedicated to reporting bugs or patches. > But the current version of Blender does not compile here at the moment. Any idea what the problem could be? best to ask at https://blender.chat at #blender-coders channel. Do make update and I always rebuild whole solution in MSVC

Added subscriber: @AlanT

Added subscriber: @AlanT

This comment was removed by @AlanT

*This comment was removed by @AlanT*
Richard Antalik changed title from Startup File: Blender cannot save the two-column layout of toolbar in the 3D Viewport to Startup.blend file is not loaded on startup if userpref.blend does not exist. 2020-02-07 01:06:28 +01:00

2.79 does not have such problem, but since workaround is quite simple, I would not consider this to be a bug

It worked in 2.80. The workaround just works for normal end users. And that a workaround exists even shows that it is a bug.

And i think that you have still not understood the consequences. I really have to do the third video ...

You cut away all self builders that wants to do custom factory defaults at the tool shelf. Self compilers are also users. And even Blender is affected by this. Try to create a factory default with a tool shelf with two rows now. A good example could be the sculpting tool shelf. It already bustes with one row. You most probably need to make it two rows at one point. And this part, to change the factory defaults for the tool shelf, does not work anymore, caused by this bug.

Other factory defaults that gots removed from the startup.blend went into the release\datafiles\userdef\userdef_default.c file. But not the width of the toolbar yet. And not the state of the active toolbar button. Box select is imho a very bad default. Something that i would love to change in my custom factory defaults. And a few other things are also lost now from what i can see.

You could of course create a todo for just the factory defaults part, and separate it from this report. But the cause is this bug here. It's not several bugs. I's one bug with several consequences. When you just fix the end user part, then the bug is just partially fixed.

I am not quite sure what you mean by this, but please be aware that this website is strictly dedicated to reporting bugs or patches.

Err. I usually just report bugs at this tracker. I can of course still be wrong. Humans makes mistakes, i am not different here. But when i report it then i can usually reproduce it, and am under the strong impression that it is a bug. And i have even provided lots of material now to proove it.

This bug here is not even reported by me. I am just somebody who can reproduce it, somebody who understands the dimensions since he is affected, and who is willing to spend the time to explain it in detail and to help with a solution. I even already pointed at the commits and the C files where the problem resides. See above.

I have now seen quite a few showstoppers making their way at the "fix comes in twenty years if even" list. Better known as "Known Issue". I don't want to see this showstopper for self compilers and factory default changers going the same way. It is important and vital to me.

best to ask at https://blender.chat at #blender-coders channel. Do make update and I always rebuild whole solution in MSVC

Thanks for the ideas. I compile at Windows, not at Linux, as the screenshot shows. No make update here. But you can be sure that i know how to compile Blender. That i have pulled the newest versions. Also the libs. And that my periphery software like git and cmake is up to date. And usually compiling Blender works flawless here. Since years.

Well, it fails from time to time since some baddies makes it always into the master. See above, when i tried to catch the commit with the trouble code. But i do not really ask for help to compile Blender here. It's just i wanted to reproduce the problem for you with a video, so that you understand the dimensions of the problem. And just in this moment the compiling failed, the first time since months. Murphy's law. It breaks just in the moment when you need it ...

Now it takes a bit longer, with lots of unnecessary discussions. The video would have been the fastest way to make things obvious. And telling me why compiling fails would have lead to the video.

>2.79 does not have such problem, but since workaround is quite simple, I would not consider this to be a bug It worked in 2.80. The workaround just works for normal end users. And that a workaround exists even shows that it is a bug. And i think that you have still not understood the consequences. I really have to do the third video ... You cut away all self builders that wants to do custom factory defaults at the tool shelf. Self compilers are also users. And even Blender is affected by this. Try to create a factory default with a tool shelf with two rows now. A good example could be the sculpting tool shelf. It already bustes with one row. You most probably need to make it two rows at one point. And this part, to change the factory defaults for the tool shelf, does not work anymore, caused by this bug. Other factory defaults that gots removed from the startup.blend went into the release\datafiles\userdef\userdef_default.c file. But not the width of the toolbar yet. And not the state of the active toolbar button. Box select is imho a very bad default. Something that i would love to change in my custom factory defaults. And a few other things are also lost now from what i can see. You could of course create a todo for just the factory defaults part, and separate it from this report. But the cause is this bug here. It's not several bugs. I's one bug with several consequences. When you just fix the end user part, then the bug is just partially fixed. > I am not quite sure what you mean by this, but please be aware that this website is strictly dedicated to reporting bugs or patches. Err. I usually just report bugs at this tracker. I can of course still be wrong. Humans makes mistakes, i am not different here. But when i report it then i can usually reproduce it, and am under the strong impression that it is a bug. And i have even provided lots of material now to proove it. This bug here is not even reported by me. I am just somebody who can reproduce it, somebody who understands the dimensions since he is affected, and who is willing to spend the time to explain it in detail and to help with a solution. I even already pointed at the commits and the C files where the problem resides. See above. I have now seen quite a few showstoppers making their way at the "fix comes in twenty years if even" list. Better known as "Known Issue". I don't want to see this showstopper for self compilers and factory default changers going the same way. It is important and vital to me. >best to ask at https://blender.chat at #blender-coders channel. Do make update and I always rebuild whole solution in MSVC Thanks for the ideas. I compile at Windows, not at Linux, as the screenshot shows. No make update here. But you can be sure that i know how to compile Blender. That i have pulled the newest versions. Also the libs. And that my periphery software like git and cmake is up to date. And usually compiling Blender works flawless here. Since years. Well, it fails from time to time since some baddies makes it always into the master. See above, when i tried to catch the commit with the trouble code. But i do not really ask for help to compile Blender here. It's just i wanted to reproduce the problem for you with a video, so that you understand the dimensions of the problem. And just in this moment the compiling failed, the first time since months. Murphy's law. It breaks just in the moment when you need it ... Now it takes a bit longer, with lots of unnecessary discussions. The video would have been the fastest way to make things obvious. And telling me why compiling fails would have lead to the video.

I don't really understand, why this is showstopper. Why can't you click on that next button on the splashscreen?

No make update here.

Please follow https://wiki.blender.org/wiki/Building_Blender/Windows
especially Starting the command prompt section

I don't really understand, why this is showstopper. Why can't you click on that `next` button on the splashscreen? > No make update here. Please follow https://wiki.blender.org/wiki/Building_Blender/Windows especially `Starting the command prompt` section

I don't really understand, why this is showstopper. Why can't you click on that next button on the splashscreen?

We still misunderstand each other here. I can do this part. This is indeed a valid workaround for the end user.

But this workaround does not help when you want to compile with a created startup.blend to change the factory defaults. That's where it is a showstopper now. The two row tool shelf does not arrive at the factory defaults anymore. And as told, this is caused by the same bug. Another aspect, but the same cause. The user problem with the minor workaround is just the tip of the iceberg.

The factory defaults for the tool shelf are for example of interest to developers when you want to toy around with some ideas, and the Blender factory defaults are in the way. Like adding more content or tabs to the tool shelf. It is very time consuming to always resize the tool shelf to two rows. Or to change the box select default to tweak, which makes imho more sense.

Please follow https://wiki.blender.org/wiki/Building_Blender/Windows
especially Starting the command prompt section

Again thanks for the advice. I use Tortoisegit to fetch and pull. To compile i double click at the sln file to open VS, and build from there. And as told, usually this works, since years. Haven't found the cause yet. It remains curious.

>I don't really understand, why this is showstopper. Why can't you click on that next button on the splashscreen? We still misunderstand each other here. I can do this part. This is indeed a valid workaround for the end user. But this workaround does not help when you want to compile with a created startup.blend to change the factory defaults. That's where it is a showstopper now. The two row tool shelf does not arrive at the factory defaults anymore. And as told, this is caused by the same bug. Another aspect, but the same cause. The user problem with the minor workaround is just the tip of the iceberg. The factory defaults for the tool shelf are for example of interest to developers when you want to toy around with some ideas, and the Blender factory defaults are in the way. Like adding more content or tabs to the tool shelf. It is very time consuming to always resize the tool shelf to two rows. Or to change the box select default to tweak, which makes imho more sense. >Please follow https://wiki.blender.org/wiki/Building_Blender/Windows >especially Starting the command prompt section Again thanks for the advice. I use Tortoisegit to fetch and pull. To compile i double click at the sln file to open VS, and build from there. And as told, usually this works, since years. Haven't found the cause yet. It remains curious.

Have it. Submodules made fun, Locale was missing. Pulling everything from scratch solved the issue.

So here comes the promised third video. The consequences for developers. The factory defaults problem.
Sorry for the size. I have kept it as short as possible.

factorydefaults.mp4

Have it. Submodules made fun, Locale was missing. Pulling everything from scratch solved the issue. So here comes the promised third video. The consequences for developers. The factory defaults problem. Sorry for the size. I have kept it as short as possible. [factorydefaults.mp4](https://archive.blender.org/developer/F8329135/factorydefaults.mp4)

@tiles Thanks for explanation.
This looks like quite different issue, than this one. Could you please make new report for this?

@tiles Thanks for explanation. This looks like quite different issue, than this one. Could you please make new report for this?

Sure. Will do. But it is the same commits and the same change that is responsible for both behaviours.

31.07.2019 - Cleanup: remove BLO_update_defaults_userpref_blend
31.07.2019 - Preferences: don't store preferences in the startup

Sure. Will do. But it is the same commits and the same change that is responsible for both behaviours. 31.07.2019 - Cleanup: remove BLO_update_defaults_userpref_blend 31.07.2019 - Preferences: don't store preferences in the startup

Task created, and thanks for your patience.

Task created, and thanks for your patience.

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

I don't see how this relates to the #blender_file project, so I'll remove the tag.

I don't see how this relates to the #blender_file project, so I'll remove the tag.
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:25:22 +01: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
7 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#69002
No description provided.