Preferences not being saved #37
Labels
No Label
bug
duplicate
enhancement
help wanted
need info
not a bug
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: extensions/space_view3d_pie_menus#37
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CC @Mets
System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Blender Version: 4.2.1 LTS, branch: blender-v4.2-release, commit: 2024-08-19
Add-on Version: (1, 6, 0)
Description of the problem:
Customizing the preferences of the 3D Viewport Pie menus addon, then saving the preferences doesn't save the preferences for the addon. Re-starting Blender resets the addon settings back to the default settings.
I have attached a screen recording so you can better understand the issue.
Heya, I wonder if it could be a disk read/write permission issue, can't repro on my end. The preferences should get saved to a .txt file in your blender config folder and it looks like that's not happening. Could you try the following:
%appdata%
, then go toRoaming\Blender Foundation\Blender\4.2\config
space_view3d_pie_menus.txt
Hi! This happened to me as well. Addon version 1.6.2. It occurred on the Windows 11 work computer and my personal Windows 10 computer (22H2 19045.4957). I am using Blender 4.2.2, but it also happened for me in the previous version, 4.2.1.
I checked in "AppData\Roaming\Blender Foundation\Blender\4.2" whether there was a file called "space_view3d_pie_menus.txt" as you described. It's not there, but there is a file called "viewport_pie_menus.txt".
Running Blender as administrator did nothing for me. But:
I tried deleting the "viewport_pie_menus.txt", and now it works flawlessly!
No "viewport_pie_menus.txt" or "space_view3d_pie_menus.txt" files appeared in the config folder after.
I am so happy I got this working. Thank you very much for this amazing addon and for the solution. It's one of my absolute favourite addons!
@Stinaus Hmm, I'm glad it's fixed, but it's not clear to me what's going on with the files. "viewport_pie_menus.txt" should be from an older version, and shouldn't be causing any conflicts, nor should it matter for fixing anything, I hope. And if "space_view3d_pie_menus.txt" isn't getting created, then I think your preferences aren't being saved?
Hi, sorry for the late response!
Today when I checked Blender to reply to this thread, I noticed the same problem. I was unsure what had happened. I tried the same fix that had worked last time, it even worked when restarting the computer. I have not seen "space_view3d_pie_menus.txt".
I tried some different things, but I finally managed to replicate the issue by disabling the addon.
It works flawlessly as long as "viewport_pie_menus" is deleted/not in the config folder.
If I disable the addon, it will add "viewport_pie_menus" back into the folder, thus breaking the preferences again.
I hope this is helpful, I wish you a great week, and again, thank you for making this amazing addon! Let me know if there is anything else you want me to test
Okay, I finally understand why the file name is different for you guys, I was just being stupid.
Note that due to technical limitations, the add-on's preferences will currently NOT be saved if:
Is anything like that happening maybe?
That could very well be! That might be why I had no problems with it for a while after deleting the file, and then the issue suddenly appeared again later (probably because of a crash or something).
If that is the case, I assume the "viewport_pie_menus" file is generated if Blender crashes for instance? For me, if the "viewport_pie_menus" file exists, the preferences are not saved, even when I close Blender normally.
It should be the other way around, the .txt file should be storing your add-on preferences, and they should be getting loaded from it. It only gets created on unregister/quit, but not on a crash.
That is not the case for me, my preferences will not save if it is there. But if the file is not there, it does save the preferences.
This is unlike other addons I have installed, they save my preferences when I edit them. Maybe this is a bug that happens only on Windows or something like that?
I've tested on both Windows and Linux and it works for me.
I'm also not sure why Blender refuses to save some types of keymap entries, as it seems completely random. That's why I had to implement custom behaviour to save these preferences.
If it manages to save the file for the first time, my only guess is that you don't have rights to modify the file after it's created. But you already said you tried launching it as admin, so, I'm out of ideas. :/
I still couldn't reproduce this, but clearly it's affecting a lot of users. In the latest version, 1.6.5, I've added buttons to manually save and load the preferences, right here:
Please let me know if you get any errors from trying to use these buttons, or if they fix the issue for you. 🤞 They also print some data into the terminal, so if you could Toggle System Console and copy paste its contents here (attach as text file ideally), that might be useful.
3D Viewport Pie Menus addon's Preferences not being savedto Preferences not being saved