How do I get blender to run scripts from command line in headless mode? It segmentation faults when I do with blender -b. #49902

Closed
opened 2016-11-01 17:24:22 +01:00 by Shyamal Chandra · 14 comments

System Information
macOS Sierra 10.12.1 & Nvidia GeForce GT 755M 1024 MB

Blender Version
Broken: Version 2.77 (2.77 2016-03-19
Worked: None

Short description of error

iMac:Blender advancecoder$ blender.app/Contents/MacOS/blender -b
Writing: blender.crash.txt
Unable to save 'blender.crash.txt': Permission denied
Segmentation fault: 11
iMac:Blender advancecoder$

Exact steps for others to reproduce the error

  1. run the command "/Applications/Blender/blender.app/Contents/MacOS/blender -b"
**System Information** macOS Sierra 10.12.1 & Nvidia GeForce GT 755M 1024 MB **Blender Version** Broken: Version 2.77 (2.77 2016-03-19 Worked: None **Short description of error** iMac:Blender advancecoder$ blender.app/Contents/MacOS/blender -b Writing: blender.crash.txt Unable to save 'blender.crash.txt': Permission denied Segmentation fault: 11 iMac:Blender advancecoder$ **Exact steps for others to reproduce the error** 1. run the command "/Applications/Blender/blender.app/Contents/MacOS/blender -b"

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @Shyamal-Chandra

Added subscriber: @Shyamal-Chandra
Member

Added subscriber: @oenvoyage

Added subscriber: @oenvoyage
Member

I tried on 2 different macs imac and MBP both with Sierra, and it worked fine.
I have 2.78a though, the latest version.
Can you download 2.78a and try if it works ?
Also if it can not write the crash log, maybe try to run it as root or sudo just for this occasion

I tried on 2 different macs imac and MBP both with Sierra, and it worked fine. I have 2.78a though, the latest version. Can you download 2.78a and try if it works ? Also if it can not write the crash log, maybe try to run it as root or sudo just for this occasion

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2016-12-02 09:15:38 +01:00

More than a week without reply. Due to the policy of the tracker archiving for until required info/data are provided.

More than a week without reply. Due to the policy of the tracker archiving for until required info/data are provided.

Added subscriber: @FloridaJo

Added subscriber: @FloridaJo

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Trying to find xxx.crash.txt for another bug, and is not writing 'blendfile'.crash.txt as above.
Reopening.
05/25/17 buildbot build

CompInfo.png

Blcr.txt.png

Trying to find xxx.crash.txt for another bug, and is not writing 'blendfile'.crash.txt as above. Reopening. 05/25/17 buildbot build ![CompInfo.png](https://archive.blender.org/developer/F610457/CompInfo.png) ![Blcr.txt.png](https://archive.blender.org/developer/F610459/Blcr.txt.png)
Bastien Montagne removed their assignment 2017-05-27 13:01:04 +02:00

This is unclear whether this is same issue even? Original report was about crash when running blender in background mode.

Also, you are launching blender in admin mode (assuming sudo means more or less the same thing as under linux), why?

In any case, we'll need some dev with OSX access to try and reproduce that with a debug build…

This is unclear whether this is same issue even? Original report was about crash when running blender in background mode. Also, you are launching blender in admin mode (assuming `sudo` means more or less the same thing as under linux), why? In any case, we'll need some dev with OSX access to try and reproduce that with a debug build…

I think the core bug in this report is the same as I'm experiencing, and that is the OSX version is not writing to crash.txt like it is supposed to from creator_signals.c (code below)
I launched Blender in both admin mode and regular mode. the reason for trying sudo was at the request of Olivier Amrein above.

FILE *fp;
	char header[512];
	wmWindowManager *wm = G.main->wm.first;

	char fname[FILE_MAX];

	if (!G.main->name[0]) {
		BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), "blender.crash.txt");
	}
	else {
		BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), BLI_path_basename(G.main->name));
		BLI_replace_extension(fname, sizeof(fname), ".crash.txt");
	}
I think the core bug in this report is the same as I'm experiencing, and that is the OSX version is not writing to crash.txt like it is supposed to from creator_signals.c (code below) I launched Blender in both admin mode and regular mode. the reason for trying sudo was at the request of Olivier Amrein above. ``` FILE *fp; char header[512]; wmWindowManager *wm = G.main->wm.first; char fname[FILE_MAX]; if (!G.main->name[0]) { BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), "blender.crash.txt"); } else { BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), BLI_path_basename(G.main->name)); BLI_replace_extension(fname, sizeof(fname), ".crash.txt"); } ```

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Joel Godin self-assigned this 2017-05-27 20:54:01 +02:00

Okay, I see what you are saying.
I was reading the info, not the title.
I will close this and open a new report.

Okay, I see what you are saying. I was reading the info, not the title. I will close this and open a new report.
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
4 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#49902
No description provided.