Unnecessary write operations on blender_assets.cats.txt #111576

Open
opened 2023-08-27 03:23:37 +02:00 by Albert-OShea · 2 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.99

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-08-25 22:23, hash: 67843e188b24

Short description of error
If you have opened an Asset Browser area while working on a blend file, (it doesn't matter if you currently have it open, it only matters if you had it open at one point), and your asset catalogs are saved to a blender_assets.cats.txt file, this file will be overwritten every time you save your blend file, regardless of whether or not the catalogs were changed.

This seems harmless at first, but it can cause some issues with syncing and file sharing services like OneDrive; the constant writing and syncing of this file can cause annoyances, which to be fair, is not really Blender's problem, but the unnecessary writing to this file shouldn't be intended behavior in the first place if I'm not mistaken.

Exact steps for others to reproduce the error

  • Make sure your asset library is set up and you have the blender_assets.cats.txt storing your catalog information.
  • Open an Asset Browser area in your blend file. Don't modify any catalogs.
  • Save your file and look at the 'Date modified' of the blender_assets.cats.txt file to verify it was just overwritten.
  • Close the Asset Browser area in Blender.
  • Save your file and check blender_assets.cats.txt in the same way to verify it was just overwritten again.
**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.99 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-08-25 22:23, hash: `67843e188b24` **Short description of error** If you have opened an Asset Browser area while working on a blend file, (it doesn't matter if you currently have it open, it only matters if you had it open at one point), and your asset catalogs are saved to a blender_assets.cats.txt file, this file will be overwritten every time you save your blend file, regardless of whether or not the catalogs were changed. This seems harmless at first, but it can cause some issues with syncing and file sharing services like OneDrive; the constant writing and syncing of this file can cause annoyances, which to be fair, is not really Blender's problem, but the unnecessary writing to this file shouldn't be intended behavior in the first place if I'm not mistaken. **Exact steps for others to reproduce the error** - Make sure your asset library is set up and you have the blender_assets.cats.txt storing your catalog information. - Open an Asset Browser area in your blend file. Don't modify any catalogs. - Save your file and look at the 'Date modified' of the blender_assets.cats.txt file to verify it was just overwritten. - Close the Asset Browser area in Blender. - Save your file and check blender_assets.cats.txt in the same way to verify it was just overwritten again.
Albert-OShea added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-08-27 03:23:38 +02:00
Iliya Katushenock added the
Interest
Asset Browser
label 2023-08-27 03:26:27 +02:00
Jesse Yurkovich added
Status
Confirmed
Module
Pipeline, Assets & IO
and removed
Status
Needs Triage
labels 2023-08-27 10:38:48 +02:00

Somehow this issue has gotten worse over time for me.

Somehow this issue has gotten worse over time for me.

We have this issue at work too.
It is pretty anoing, because we do version control with hg mercurial and constantly have to revert or commit the blender_assets.cats.
Because they get changed all the time, even if nothing in the assets has changed.

This is anoing, because often hg status shows us that the blender_assets.cats changed, but then you have a second look and recognize that nothing else has changed...
And we don't want to commit unnecessary changes.

I think blender_assets.cats should only change if you really do change something in the asset categories.

We have this issue at work too. It is pretty anoing, because we do version control with hg mercurial and constantly have to revert or commit the blender_assets.cats. Because they get changed all the time, even if nothing in the assets has changed. This is anoing, because often hg status shows us that the blender_assets.cats changed, but then you have a second look and recognize that nothing else has changed... And we don't want to commit unnecessary changes. I think blender_assets.cats should only change if you really do change something in the asset categories.
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
3 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#111576
No description provided.