OpenGL framebuffer creation error on macOS #53568

Closed
opened 2017-12-16 14:34:04 +01:00 by the Elder · 6 comments

System Information
Operating system and graphics card
OS X El Capitan 10.11.6
AMD Radeon HD7850 Series 2048MB
GCN 1st gen
The desktop display mode is 1920x1080@60Hz 30-bit color (ARGB2101010) as in many modern macs with compatible GPUs. This is not an option but a system made choice upon boot.

Blender Version
Broken:2.80.3 2017-12-15 17:21 468ac90317

Short description of error

This is happening at launch:
Read prefs: /Users/***/Library/Application Support/Blender/2.80/config/userpref.blend
found bundled python: /Applications/Blender 2.80/blender.app/Contents/Resources/2.80/python
GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
Error invalid framebuffer
GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
Error invalid framebuffer
GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
Error invalid framebuffer
GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
Error invalid framebuffer
GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
Error invalid framebuffer
GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
Error invalid framebuffer

The main window opens up but eevee is showing either grayscale fills or random texture noise.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
This happens all the time with every scene and kind of content.

**System Information** Operating system and graphics card OS X El Capitan 10.11.6 AMD Radeon HD7850 Series 2048MB GCN 1st gen The desktop display mode is 1920x1080@60Hz 30-bit color (ARGB2101010) as in many modern macs with compatible GPUs. This is not an option but a system made choice upon boot. **Blender Version** Broken:2.80.3 2017-12-15 17:21 468ac903176 **Short description of error** This is happening at launch: Read prefs: /Users/***/Library/Application Support/Blender/2.80/config/userpref.blend found bundled python: /Applications/Blender 2.80/blender.app/Contents/Resources/2.80/python GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT Error invalid framebuffer GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT Error invalid framebuffer GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT Error invalid framebuffer GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT Error invalid framebuffer GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT Error invalid framebuffer GPUFrameBuffer: framebuffer status GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT Error invalid framebuffer The main window opens up but eevee is showing either grayscale fills or random texture noise. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps This happens all the time with every scene and kind of content.
Author

Added subscriber: @theElder

Added subscriber: @theElder

Added subscribers: @fclem, @mano-wii

Added subscribers: @fclem, @mano-wii

I think this change could silence the GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT message. But I don't know if it would solve the problem :\

diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c
index 223012e3906..edcfa6bdb7c 100644
--- a/source/blender/draw/engines/eevee/eevee_effects.c
+++ b/source/blender/draw/engines/eevee/eevee_effects.c
@@ -348,10 +348,11 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, GPUTexture *depth_src, int l
 	else {
 		DRW_draw_pass(psl->minz_downdepth_ps);
 	}
-	DRW_framebuffer_texture_detach(stl->g_data->minzbuffer);
 
 	/* Create lower levels */
 	DRW_framebuffer_recursive_downsample(fbl->downsample_fb, stl->g_data->minzbuffer, 8, &min_downsample_cb, vedata);
+	DRW_framebuffer_texture_detach(stl->g_data->minzbuffer);
+
 	DRW_stats_group_end();
 #endif
 
@@ -365,10 +366,11 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, GPUTexture *depth_src, int l
 	else {
 		DRW_draw_pass(psl->maxz_downdepth_ps);
 	}
-	DRW_framebuffer_texture_detach(txl->maxzbuffer);
 
 	/* Create lower levels */
 	DRW_framebuffer_recursive_downsample(fbl->downsample_fb, txl->maxzbuffer, 8, &max_downsample_cb, vedata);
+	DRW_framebuffer_texture_detach(txl->maxzbuffer);
+
 	DRW_stats_group_end();
 
 	/* Restore */

Perhaps @fclem (when back from vacation) can take a look ;)

I think this change could silence the `GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT` message. But I don't know if it would solve the problem :\ ``` diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c index 223012e3906..edcfa6bdb7c 100644 --- a/source/blender/draw/engines/eevee/eevee_effects.c +++ b/source/blender/draw/engines/eevee/eevee_effects.c @@ -348,10 +348,11 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, GPUTexture *depth_src, int l else { DRW_draw_pass(psl->minz_downdepth_ps); } - DRW_framebuffer_texture_detach(stl->g_data->minzbuffer); /* Create lower levels */ DRW_framebuffer_recursive_downsample(fbl->downsample_fb, stl->g_data->minzbuffer, 8, &min_downsample_cb, vedata); + DRW_framebuffer_texture_detach(stl->g_data->minzbuffer); + DRW_stats_group_end(); #endif @@ -365,10 +366,11 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, GPUTexture *depth_src, int l else { DRW_draw_pass(psl->maxz_downdepth_ps); } - DRW_framebuffer_texture_detach(txl->maxzbuffer); /* Create lower levels */ DRW_framebuffer_recursive_downsample(fbl->downsample_fb, txl->maxzbuffer, 8, &max_downsample_cb, vedata); + DRW_framebuffer_texture_detach(txl->maxzbuffer); + DRW_stats_group_end(); /* Restore */ ``` Perhaps @fclem (when back from vacation) can take a look ;)
Clément Foucault was assigned by Sergey Sharybin 2017-12-18 10:54:35 +01:00

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

As far as I know all framebuffer errors on macOS have been fixed by now, so let's close this.

As far as I know all framebuffer errors on macOS have been fixed by now, so let's close this.
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#53568
No description provided.