No longer support zero-byte fresh .blend at startup (commandline) #113960

Closed
opened 2023-10-20 06:54:37 +02:00 by Jaggz H · 3 comments

Operating system: Debian, Linux, Stable
Graphics card: Nvidia 3090

Blender Version
Broken: 4.0.0 Alpha, branch: main (modified), commit date: 2023-06-29 23:21, hash: f47eed749e, type: Release
build date: 2023-07-06, 04:22:50
Broken: 3.6.0
Worked: 3.5.1

This changed in 2d81e65703

Creating 0-byte file (touch foo.blend), then loading with blender foo.blend causes an exit.

Exact steps for others to reproduce the error

  1. touch newfile.blend
  2. blender newfile.blend

This used to run blender and that file would be the current name ready to save with ctrl+S

Operating system: Debian, Linux, Stable Graphics card: Nvidia 3090 **Blender Version** Broken: 4.0.0 Alpha, branch: main (modified), commit date: 2023-06-29 23:21, hash: f47eed749eaf, type: Release build date: 2023-07-06, 04:22:50 Broken: 3.6.0 Worked: 3.5.1 This changed in 2d81e65703bb Creating 0-byte file (touch foo.blend), then loading with `blender foo.blend` causes an exit. **Exact steps for others to reproduce the error** 1. touch newfile.blend 2. blender newfile.blend This used to run blender and that file would be the current name ready to save with ctrl+S
Jaggz H added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-10-20 06:54:38 +02:00
Member

Can confirm

It should take the code path reaching

... opened default scene instead; saving will write to:

but doesnt anymore, will check when this broke

Can confirm It should take the code path reaching `... opened default scene instead; saving will write to:` but doesnt anymore, will check when this broke
Philipp Oeser added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-10-20 10:59:58 +02:00
Member

This changed in 2d81e65703

So this is actually expected behavior now (see that commit message).

You dont really have to touch the file, you could just do blender newfile.blend without it.
Does this work for you?

This changed in 2d81e65703bb So this is actually expected behavior now (see that commit message). You dont really have to touch the file, you could just do `blender newfile.blend` without it. Does this work for you?
Philipp Oeser added
Status
Needs Information from User
and removed
Status
Confirmed
labels 2023-10-20 11:10:53 +02:00

Closing as this is intended behavior, loading blender, referencing the path without an error could even overwrite a file from the future (if the file fails to load and the user saves) - this would loose user data.

There is no need to touch the file first, instead - reference a new file that doesn't yet exist.

Closing as this is intended behavior, loading blender, referencing the path without an error could even overwrite a file from the future (if the file fails to load and the user saves) - this would loose user data. There is no need to touch the file first, instead - reference a new file that doesn't yet exist.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-10-24 05:50:59 +02: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
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#113960
No description provided.