Android OpenGL: visual test 'Prepass SSAO + MSAA' fails with 'Failed to create frame buffer'

Open
#2,118 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
46/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
android
Domain
mobile-dev

Research direction

Start with Apps/Playground/Scripts/config.json at visual test #LSTDFU#0 (index 369), then inspect the prepass MRT and MSAA attachment setup used by that test. Reproduce it on Android OpenGL ES and read the bgfx framebuffer validation reason surfaced after #2102. Done means the test passes with a valid attachment setup, or is excluded on OpenGL ES with a link to this issue.

Written by the indexing model from the issue text.

Description

Visual test "Prepass SSAO + MSAA" (#LSTDFU#0, index 369 in Apps/Playground/Scripts/config.json) fails on Android OpenGL ES (Pixel 9a, Mali, V8, Debug) with a JavaScript error:

Failed to create frame buffer

Before #2102 this was a debug crash: bgfx::createFrameBuffer asserts on invalid attachments. #2102 validates the attachments with bgfx::isFrameBufferValid first and throws the bgfx reason to JavaScript, so the crash became this error. The same test passes on Android Vulkan and on Win32 D3D11/D3D12.

The cause isn't known yet. The test combines a prepass MRT with MSAA, so the suspect is a multisampled MRT/depth attachment combination that GLES on Mali can't create. With #2102 the error message includes bgfx's validation reason (Failed to create frame buffer: <reason>), which should narrow it down.

Android visual tests don't run in CI, so config.json has no exclusion for this. Fix the attachment setup, or exclude it on OpenGL ES with a link to this issue.

Dominant language
C++
Stars
931
Forks
169
Avg merge
2d 17h
Merged PRs (30d)
66

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BabylonJS/BabylonNative

All issues in BabylonJS/BabylonNative

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.