File Output Node does not write image file with EGL context #75072

Closed
opened 2020-03-25 02:26:43 +01:00 by Christian Rauch · 9 comments

System Information
Operating system: Ubuntu 18.04
Graphics card: Intel Corporation HD Graphics 5500

Blender Version
Broken: master, at least since 2.82a
built from source: make lite debug developer ninja BUILD_CMAKE_ARGS="-DWITH_GL_EGL=ON"

Short description of error
When using the EGL context (on X11 with WITH_GL_EGL=ON or on SDL or Wayland), the File Output Node will not write the image file to the specified path.

Exact steps for others to reproduce the error

  1. load the example blender file: test_render_file.blend
  2. render image (F12)

Results
The rendered image will be shown in the blender GUI, but it will not be written to disk. Likewise, in background mode (blender -b test_render_file.blend) the file will not be written to disk with the EGL context.

Further, the rendered image in the GUI will have incorrect lighting.

Expected results (from X11 + GLX):
cube_OK.png

Actual results with (X11 + EGL, SDL or Wayland):
cube_FAIL_EGL.png

However, rendering without the File Output Node, e.g. via script

import bpy
scn = bpy.context.scene
scn.render.resolution_x = 320
scn.render.resolution_y = 240
scn.render.image_settings.file_format = 'PNG'
scn.render.filepath = "/tmp/image.png"
bpy.ops.render.render(write_still = True)

will write the file, albeit with the same lighting issues.

**System Information** Operating system: Ubuntu 18.04 Graphics card: Intel Corporation HD Graphics 5500 **Blender Version** Broken: master, at least since 2.82a built from source: `make lite debug developer ninja BUILD_CMAKE_ARGS="-DWITH_GL_EGL=ON"` **Short description of error** When using the EGL context (on X11 with `WITH_GL_EGL=ON` or on SDL or Wayland), the `File Output` Node will not write the image file to the specified path. **Exact steps for others to reproduce the error** 1. load the example blender file: [test_render_file.blend](https://archive.blender.org/developer/F8427723/test_render_file.blend) 2. render image (F12) **Results** The rendered image will be shown in the blender GUI, but it will not be written to disk. Likewise, in background mode (`blender -b test_render_file.blend`) the file will not be written to disk with the EGL context. Further, the rendered image in the GUI will have incorrect lighting. Expected results (from X11 + GLX): ![cube_OK.png](https://archive.blender.org/developer/F8427725/cube_OK.png) Actual results with (X11 + EGL, SDL or Wayland): ![cube_FAIL_EGL.png](https://archive.blender.org/developer/F8427727/cube_FAIL_EGL.png) However, rendering without the `File Output` Node, e.g. via script ``` import bpy scn = bpy.context.scene scn.render.resolution_x = 320 scn.render.resolution_y = 240 scn.render.image_settings.file_format = 'PNG' scn.render.filepath = "/tmp/image.png" bpy.ops.render.render(write_still = True) ``` will write the file, albeit with the same lighting issues.
Author
Member

Added subscriber: @christian.rauch

Added subscriber: @christian.rauch
Author
Member

This might also be related to the specific build settings (lite debug developer).
However, there is no warning about missing functionality or similar to indicate what could have caused the wrong lighting and the missing file export.

This might also be related to the specific build settings (`lite debug developer`). However, there is no warning about missing functionality or similar to indicate what could have caused the wrong lighting and the missing file export.
Author
Member

It turns out that this was indeed related to the compilation settings and not EGL.

The WITH_OPENCOLORIO option fixes the lighting issues:
make lite ninja BUILD_CMAKE_ARGS="-DWITH_GL_EGL=ON -DWITH_BOOST=ON -DWITH_OPENCOLORIO=ON"
but the File Output node in the blend file does not write the file to disk, even though the script is able to do so.

In any case, Blender should show a warning when a requested feature is not available.

It turns out that this was indeed related to the compilation settings and not EGL. The `WITH_OPENCOLORIO` option fixes the lighting issues: `make lite ninja BUILD_CMAKE_ARGS="-DWITH_GL_EGL=ON -DWITH_BOOST=ON -DWITH_OPENCOLORIO=ON"` but the `File Output` node in the blend file does not write the file to disk, even though the script is able to do so. In any case, Blender should show a warning when a requested feature is not available.
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member
  • DWITH_COMPOSITOR=ON

You can't use the File Output node if you don't build the compositor.

I agree that this is confusing, since you can still add all of the nodes you want in the compositor, they just don't do anything.

- DWITH_COMPOSITOR=ON You can't use the `File Output` node if you don't build the compositor. I agree that this is confusing, since you can still add all of the nodes you want in the compositor, they just don't do anything.
Author
Member

Thanks., In summary, these settings solve the described issues:
make lite ninja BUILD_CMAKE_ARGS="-DWITH_GL_EGL=ON -DWITH_BOOST=ON -DWITH_OPENCOLORIO=ON -DWITH_COMPOSITOR=ON"

Sorry about the confusion about EGL.

This issue is now about enabling warnings when trying to use a feature that is disabled.

Thanks., In summary, these settings solve the described issues: `make lite ninja BUILD_CMAKE_ARGS="-DWITH_GL_EGL=ON -DWITH_BOOST=ON -DWITH_OPENCOLORIO=ON -DWITH_COMPOSITOR=ON"` Sorry about the confusion about EGL. This issue is now about enabling warnings when trying to use a feature that is disabled.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

Changed status from 'Needs Triage' to: 'Archived'
Germano Cavalcante self-assigned this 2020-03-26 15:33:04 +01:00

Although warnings are very useful, the lack of them is not considered an error or bug.
Feel free to propose a patch if you feel it is necessary and are willing to work on it: https://developer.blender.org/differential/diff/create/
Or use other channels for feature requests: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

Although warnings are very useful, the lack of them is not considered an error or bug. Feel free to propose a patch if you feel it is necessary and are willing to work on it: https://developer.blender.org/differential/diff/create/ Or use other channels for feature requests: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
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
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#75072
No description provided.