Bug: grease pencil objects cause command-line render to fail (2.82,2.90) #75952

Closed
opened 2020-04-21 07:05:59 +02:00 by Daniel · 20 comments

System Information
Operating system: Ubuntu Server 18.04.4 LTS
Graphics: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
CPU: Intel(R) Pentium(R) CPU G3220 @ 3.00GHz
Memory: 4GB DDR3

Blender Version
Broken:
2.82a headless built from Git (https://git.blender.org/blender.git)
2.90 headless built from Git (https://git.blender.org/blender.git)
2.82a portable build (https://www.blender.org/download/Blender2.82/blender-2.82a-linux64.tar.xz/)
2.90 portable build (https://builder.blender.org/download/blender-2.90-55a2682348df-linux64.tar.xz)

Short description of error
Rendering anything with a Grease Pencil object from the command line fails
On headless builds, produces a crash file and “Segmentation fault” message after a single frame has ‘Finished’ rendering
On full portable builds, produces a “Unable to open a display" and "Aborted” message after a single frame has ‘Finished’ rendering

Exact steps for others to reproduce the error
To build the headless blender, follow the steps on https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu, inserting:

git checkout blender-v2.82-release

or

git checkout blender-v2.90-release

directly after

git clone https://git.blender.org/blender.git

and using

make headless

in place of

make

Using the following .blend file, which only contains a single Grease Pencil object (plus light and camera), and set to use Cycles
render-fail.blend
run:
For full portable blender:

sudo ./blender -b -noaudio /”path to .blend file”/render-fail.blend -o /”path for output file”/render-fail -f 1

or for headless build:

sudo ./blender /”path to .blend file”/render-fail.blend -o /”path for output file”/render-fail -f 1

In all circumstances when rendering the files with Grease Pencil objects, the render completes but does not save. For headless built versions, it prints the error “Segmentation fault” and a crash report
2.82 headless crash file.txt
For portable full versions, it prints the error “Unable to open a display” then “Aborted” without a crash report

Thanks for your help!

**System Information** Operating system: Ubuntu Server 18.04.4 LTS Graphics: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) CPU: Intel(R) Pentium(R) CPU G3220 @ 3.00GHz Memory: 4GB DDR3 **Blender Version** Broken: 2.82a headless built from Git (https://git.blender.org/blender.git) 2.90 headless built from Git (https://git.blender.org/blender.git) 2.82a portable build (https://www.blender.org/download/Blender2.82/blender-2.82a-linux64.tar.xz/) 2.90 portable build (https://builder.blender.org/download/blender-2.90-55a2682348df-linux64.tar.xz) **Short description of error** Rendering anything with a Grease Pencil object from the command line fails On headless builds, produces a crash file and “Segmentation fault” message after a single frame has ‘Finished’ rendering On full portable builds, produces a “Unable to open a display" and "Aborted” message after a single frame has ‘Finished’ rendering **Exact steps for others to reproduce the error** To build the headless blender, follow the steps on https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu, inserting: ``` git checkout blender-v2.82-release ``` or ``` git checkout blender-v2.90-release ``` directly after ``` git clone https://git.blender.org/blender.git ``` and using ``` make headless ``` in place of ``` make ``` Using the following .blend file, which only contains a single Grease Pencil object (plus light and camera), and set to use Cycles [render-fail.blend](https://archive.blender.org/developer/F8486341/render-fail.blend) run: For full portable blender: ``` sudo ./blender -b -noaudio /”path to .blend file”/render-fail.blend -o /”path for output file”/render-fail -f 1 ``` or for headless build: ``` sudo ./blender /”path to .blend file”/render-fail.blend -o /”path for output file”/render-fail -f 1 ``` In all circumstances when rendering the files with Grease Pencil objects, the render completes but does not save. For headless built versions, it prints the error “Segmentation fault” and a crash report [2.82 headless crash file.txt](https://archive.blender.org/developer/F8486351/2.82_headless_crash_file.txt) For portable full versions, it prints the error “Unable to open a display” then “Aborted” without a crash report Thanks for your help!
Author

Added subscriber: @Majestic

Added subscriber: @Majestic

#85336 was marked as duplicate of this issue

#85336 was marked as duplicate of this issue

#85546 was marked as duplicate of this issue

#85546 was marked as duplicate of this issue
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

For portable full versions, it prints the error “Unable to open a display” then “Aborted” without a crash report

Then I suppose it would crash for even default cube. After the render is complete, the app icon appears in the dock & goes back. So there seems to be a problem with opening Blender at that time ? (though I'm using make since I got a linking error in headless. )

> For portable full versions, it prints the error “Unable to open a display” then “Aborted” without a crash report Then I suppose it would crash for even default cube. After the render is complete, the app icon appears in the dock & goes back. So there seems to be a problem with opening Blender at that time ? (though I'm using `make` since I got a linking error in headless. )
Author

Then I suppose it would crash for even default cube.

Default cube should render and does for me, it seems to only fail on renders with Grease Pencil objects. It doesn't show those errors for

After the render is complete, the app icon appears in the dock & goes back. So there seems to be a problem with opening Blender at that time ?

With the -b and -noaudio arguments used, Blender should never try to open and that's the issue with full builds. It's trying to open graphical blender but isn't allowed to nor told to.

(though I'm using make since I got a linking error in headless. )

I also had an error initially in headless that I thought was fixed by using make update but you may have to edit the CMakeCache.txt file and enable headless through there and then do make update and make help to list the available build types.

> Then I suppose it would crash for even default cube. Default cube should render and does for me, it seems to only fail on renders with Grease Pencil objects. It doesn't show those errors for > After the render is complete, the app icon appears in the dock & goes back. So there seems to be a problem with opening Blender at that time ? With the `-b` and `-noaudio` arguments used, Blender should never try to open and that's the issue with full builds. It's trying to open graphical blender but isn't allowed to nor told to. > (though I'm using make since I got a linking error in headless. ) I also had an error initially in headless that I thought was fixed by using `make update` but you may have to edit the CMakeCache.txt file and enable headless through there and then do `make update` and `make help` to list the available build types.

Added subscriber: @brecht

Added subscriber: @brecht

Headless OpenGL rendering with a regular build and OpenGL rendering with a headless build are not currently supported. Both Eevee and Grease Pencil use OpenGL and so will not work in those cases.

It would be good to print more informative error messages about this.

Headless OpenGL rendering with a regular build and OpenGL rendering with a headless build are not currently supported. Both Eevee and Grease Pencil use OpenGL and so will not work in those cases. It would be good to print more informative error messages about this.

There is some information on how to work around this limitation here (for regular builds, not headless):
https://devtalk.blender.org/t/blender-2-8-unable-to-open-a-display-by-the-rendering-on-the-background-eevee/1436/12

There is some information on how to work around this limitation here (for regular builds, not headless): https://devtalk.blender.org/t/blender-2-8-unable-to-open-a-display-by-the-rendering-on-the-background-eevee/1436/12
Author

The file is set to use Cycles though - not Eevee. When using Eevee, the render stops before any rendering begins. I also tested using the -E argument to set the engine to Cycles and a workaround for the issue discussed in https://devtalk.blender.org/t/blender-2-8-unable-to-open-a-display-by-the-rendering-on-the-background-cycles/8607/12, using a python script to set every scene to use Cycles.

Do Grease pencil objects require OpenGL when using Cycles, therefore headless rendering of them is not supported?

Are there plans to support headless rendering of Grease Pencil objects?

I'm not very experienced in Blender, but I'm using this to build a render farm as a project for my school which is to be used by others. I would prefer to use headless builds as there won't be monitors on the nodes of the farm, but I could use desktop Linux and therefore follow the steps on https://devtalk.blender.org/t/blender-2-8-unable-to-open-a-display-by-the-rendering-on-the-background-eevee/1436/12 if headless support is not available in the near future.

The file is set to use Cycles though - not Eevee. When using Eevee, the render stops before any rendering begins. I also tested using the `-E` argument to set the engine to Cycles and a workaround for the issue discussed in https://devtalk.blender.org/t/blender-2-8-unable-to-open-a-display-by-the-rendering-on-the-background-cycles/8607/12, using a python script to set every scene to use Cycles. Do Grease pencil objects require OpenGL when using Cycles, therefore headless rendering of them is not supported? Are there plans to support headless rendering of Grease Pencil objects? I'm not very experienced in Blender, but I'm using this to build a render farm as a project for my school which is to be used by others. I would prefer to use headless builds as there won't be monitors on the nodes of the farm, but I could use desktop Linux and therefore follow the steps on https://devtalk.blender.org/t/blender-2-8-unable-to-open-a-display-by-the-rendering-on-the-background-eevee/1436/12 if headless support is not available in the near future.

Grease Pencil always requires OpenGL. We would like to support headless rendering, and if we do it would be for both Eevee and Grease Pencil.

#54638 (OpenGL headless rendering) is the task for that, but it's not high priority at the moment, so it will likely be a while before it happens.

Grease Pencil always requires OpenGL. We would like to support headless rendering, and if we do it would be for both Eevee and Grease Pencil. #54638 (OpenGL headless rendering) is the task for that, but it's not high priority at the moment, so it will likely be a while before it happens.
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Ankit Meel self-assigned this 2020-04-25 07:50:08 +02:00
Member

Closing as Feature Request. @Majestic you may subscribe there to get updates, if any.

Closing as Feature Request. @Majestic you may subscribe there to get updates, if any.
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58
Contributor

In #75952#916100, @brecht wrote:
Headless OpenGL rendering with a regular build and OpenGL rendering with a headless build are not currently supported. Both Eevee and Grease Pencil use OpenGL and so will not work in those cases.

It would be good to print more informative error messages about this.

Hi Brecht, I know this is not the proper place for feature requests but...

Please, please add a proper and more informative error message in the log.

It would have saved me a lot of headache :)

> In #75952#916100, @brecht wrote: > Headless OpenGL rendering with a regular build and OpenGL rendering with a headless build are not currently supported. Both Eevee and Grease Pencil use OpenGL and so will not work in those cases. > > It would be good to print more informative error messages about this. Hi Brecht, I know this is not the proper place for feature requests but... Please, please add a proper and more informative error message in the log. It would have saved me a lot of headache :)
Member

Added subscribers: @eyecandy, @mano-wii, @dr.sybren

Added subscribers: @eyecandy, @mano-wii, @dr.sybren
Member
Added subscribers: @hcw70, @filedescriptor, @Jeroen-Bakker, @fclem, @Memento

Removed subscriber: @dr.sybren

Removed subscriber: @dr.sybren

Added subscriber: @vadimkantorov

Added subscriber: @vadimkantorov

Same here, please add a better error message (with a link to this issue) and fast fail rather than hangs (trying to connect to non-existent DISPLAY), and only then "Unable to open display" and "Aborted (crash dumped)"

Maybe print "Trying to connect to display ($DISPLAY) because Grease Pencil is used which requires OpenGL and does not support headless for now (https://developer.blender.org/T75952) ..." before connecting to display. Like that it's clear why it hangs and why it needs display.

Same here, please add a better error message (with a link to this issue) and fast fail rather than hangs (trying to connect to non-existent DISPLAY), and only then "Unable to open display" and "Aborted (crash dumped)" Maybe print "Trying to connect to display ($DISPLAY) because Grease Pencil is used which requires OpenGL and does not support headless for now (https://developer.blender.org/T75952) ..." before connecting to display. Like that it's clear why it hangs and why it needs display.
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
7 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#75952
No description provided.