blender -b untitled.blend just quits on windows with v2.7 #40928

Closed
opened 2014-07-02 20:26:42 +02:00 by Martin Crawford · 11 comments

Win 7
Radeon 7400M

2.71

Summary:
blender -b just quits on windows with v2.7

steps to reproduce:
launch blender, save default scene as untitled.blend
The try to render in non-interactive mode. e.g.:

C:\Program Files\Blender Foundation\Blender>blender -b C:\Users\Martin\Documents\untitled.blend

And nothing happens (blender quits). use default scene which blender opens with. It renders interactively. If I repeat the above command without the "-b", blender finds and opens the file. Hitting the render button (interactively) does render an image. I have tried this with some of the benchmark files on BlenderArtists.org. Same results.

I have tried all sorts of arguments as listed on
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Command_Line
...can't get it working

Best regards
Martin

**Win 7** Radeon 7400M **2.71** Summary: **blender -b just quits on windows with v2.7** **steps to reproduce**: launch blender, save default scene as untitled.blend The try to render in non-interactive mode. e.g.: C:\Program Files\Blender Foundation\Blender>blender -b C:\Users\Martin\Documents\untitled.blend And nothing happens (blender quits). use default scene which blender opens with. It renders interactively. If I repeat the above command without the "-b", blender finds and opens the file. Hitting the render button (interactively) does render an image. I have tried this with some of the benchmark files on BlenderArtists.org. Same results. I have tried all sorts of arguments as listed on http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Command_Line ...can't get it working Best regards Martin

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @compositor1

Added subscriber: @compositor1

Changed status from 'Open' to: 'Duplicate'

Changed status from 'Open' to: 'Duplicate'

✘ Merged into blender/blender-addons#40907.

✘ Merged into blender/blender-addons#40907.

Added subscriber: @mont29

Added subscriber: @mont29

Uh, maybe was a bit quick on this one… I try to launch from the cmd box of windows, not from a windows console, right?

If it’s from a windows console, then I merged by mistake.

Else, it should work from console (M$ managed to break embeded py when ran without any std stream available, in there latest compilers…).

Uh, maybe was a bit quick on this one… I try to launch from the cmd box of windows, not from a windows console, right? If it’s from a windows console, then I merged by mistake. Else, it should work from console (M$ managed to break embeded py when ran without any std stream available, in there latest compilers…).

I was attempting to run blender -b from a cmd.exe window

I was attempting to run blender -b from a cmd.exe window

Then please try to do it from a real commandline (console) window, here it should work at least.

Then please try to do it from a real commandline (console) window, here it should work at least.

How do I launch a real commandline (console) window?
Please advise

How do I launch a real commandline (console) window? Please advise

Added subscriber: @Ignaramus

Added subscriber: @Ignaramus

This is most likely not a bug but a user error, the windows commandline is cmd.exe and blender/blender-addons#40907 is not affecting it.

The expected output for:

C:\Program Files\Blender Foundation\Blender>blender -b C:\Users\Martin\Documents\untitled.blend

would be something like:

Read new prefs: C:\Users\Martin\AppData\Roaming\Blender Foundation\Blender\2.71\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender\2.71\python
read blend C:\Users\Martin\Documents\untitled.blend

Blender quit

There will not be any images rendered, in order to do that you need to specify an output, format and frame, as outlined here: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Command_Line#Render_a_picture

Example:

C:\Program Files\Blender Foundation\Blender>blender -b C:\Users\Martin\Documents\untitled.blend -o C:\Users\Martin\Documents\render -F JPEG -x 1 -f 1

which should result in frame 1 being rendered to:


C:\Users\Martin\Documents\render0001.jpg
This is most likely not a bug but a user error, the windows commandline is cmd.exe and blender/blender-addons#40907 is not affecting it. The expected output for: ``` C:\Program Files\Blender Foundation\Blender>blender -b C:\Users\Martin\Documents\untitled.blend ``` would be something like: ``` Read new prefs: C:\Users\Martin\AppData\Roaming\Blender Foundation\Blender\2.71\config\userpref.blend found bundled python: C:\Program Files\Blender Foundation\Blender\2.71\python read blend C:\Users\Martin\Documents\untitled.blend Blender quit ``` There will not be any images rendered, in order to do that you need to specify an output, format and frame, as outlined here: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Command_Line#Render_a_picture Example: ``` C:\Program Files\Blender Foundation\Blender>blender -b C:\Users\Martin\Documents\untitled.blend -o C:\Users\Martin\Documents\render -F JPEG -x 1 -f 1 ``` which should result in frame 1 being rendered to: ``` C:\Users\Martin\Documents\render0001.jpg ```
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#40928
No description provided.