First image drawn with the Python gpu module may be black #81003

Closed
opened 2020-09-20 19:19:43 +02:00 by Inês Almeida · 12 comments
Member

System Information
Operating system: Linux-5.4.43-x86_64-Intel-R-_Core-TM-i7-7500U_CPU@_2.70GHz-with-slackware-14.2 64 Bits
Graphics card: Mesa Intel(R) HD Graphics 620 (KBL GT2) Intel 4.6 (Core Profile) Mesa 20.1.0

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-20 05:59, hash: f470a02afa
Worked: version: 2.90.0 Release, branch: master, commit date: 2020-08-31 11:26, hash: 0330d1af29
Caused by c766d9b9dc

Short description of error
When drawing images with the Python gpu module, the first image rendering command may produce a black image.
black_froggo.png

Exact steps for others to reproduce the error
See the attached .blend file.
python_gl_draw_image.blend

  • if line 32 is commented, the error occurs
  • if line 32 is active (something is drawn beforehand), the error does not occur

Probably related: blender/blender-addons#80730 (BGL deprecation)

**System Information** Operating system: Linux-5.4.43-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-slackware-14.2 64 Bits Graphics card: Mesa Intel(R) HD Graphics 620 (KBL GT2) Intel 4.6 (Core Profile) Mesa 20.1.0 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-20 05:59, hash: `f470a02afa` Worked: version: 2.90.0 *Release*, branch: master, commit date: 2020-08-31 11:26, hash: `0330d1af29` Caused by c766d9b9dc **Short description of error** When drawing images with the Python gpu module, the first image rendering command may produce a black image. ![black_froggo.png](https://archive.blender.org/developer/F8903634/black_froggo.png) **Exact steps for others to reproduce the error** See the attached .blend file. [python_gl_draw_image.blend](https://archive.blender.org/developer/F8903627/python_gl_draw_image.blend) - if line 32 is commented, the error occurs - if line 32 is active (something is drawn beforehand), the error does not occur Probably related: blender/blender-addons#80730 (BGL deprecation)
Author
Member

Added subscriber: @brita

Added subscriber: @brita

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I cannot reproduce this with either the latest stable or current development versions of Blender.

However, I had to choose another image, since "Toad Sphere Render.png" had not been packed in the file.
image.png

Please try the latest daily build: https://builder.blender.org/download/

Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue.

If the problem persists, please give us more clear instructions on how to reproduce it from scratch.

I cannot reproduce this with either the latest stable or current development versions of Blender. However, I had to choose another image, since "Toad Sphere Render.png" had not been packed in the file. ![image.png](https://archive.blender.org/developer/F8916455/image.png) Please try the latest daily build: https://builder.blender.org/download/ Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue. If the problem persists, please give us more clear instructions on how to reproduce it from scratch.
Author
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Author
Member

I have re-tested it in a build from today and the problem still persists for me.

The problem can be seen by commenting out line 32 of the script in the test file.
The particular image is not important.

I have re-tested it in a build from today and the problem still persists for me. The problem can be seen by commenting out line 32 of the script in the test file. The particular image is not important.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can confirm [if commenting line 32].

Probably related: blender/blender-addons#80730 (BGL deprecation)

I can confirm [if commenting line 32]. Probably related: blender/blender-addons#80730 (BGL deprecation)
Member

Caused by c766d9b9dc

Caused by c766d9b9dc

This issue was referenced by f12b0373f3

This issue was referenced by f12b0373f322b710b9fa5cebb67bdf363ff90e9f

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Clément Foucault self-assigned this 2020-10-08 16:38:05 +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
5 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#81003
No description provided.