Skip to content

[Impeller] GL Error GL_INVALID_OPERATION(1282) encountered on call to glGenerateMipmap. #135524

@jwinarske

Description

@jwinarske

Is there an existing issue for this?

Steps to reproduce

  1. Flutter SDK 3.15.0-15.2.pre
  2. Checkout corresponding engine repo
  3. Apply PR: [Impeller] Fix OpenGLES EGL_BAD_ACCESS due to context being current on multiple threads. engine#46287
  4. build libflutter_engine.so using:
    --unoptimized --runtime-mode=debug --embedder-for-target --enable-fontconfig --disable-desktop-embeddings --no-build-embedder-examples --enable-impeller-3d --enable-impeller-opengles --no-lto --no-goma
  5. Checkout flutter gallery main and run using:
    flutter run --enable-impeller --local-engine=host_debug_unopt --local-engine-host=host_debug_unopt --local-engine-src-path=/mnt/raid10/workspace-automation/.config/flutter_workspace/flutter-engine/engine/src -d homescreen
  6. Add location of lib.unstripped/libflutter_engine.so to your LD_LIBRARY_PATH
  7. Run app. Restart app until error hits

Expected results

Not to see any GL errors

Actual results

Mesa: error: GL_INVALID_OPERATION in glGenerateMipmap(zero size base image)
[FATAL:flutter/impeller/renderer/backend/gles/proc_table_gles.h(33)] Check failed: error == GL_NO_ERROR. GL Error GL_INVALID_OPERATION(1282) encountered on call to glGenerateMipmap

Code sample

Ping me to setup a repo if need be

Screenshots or Video

NA

Logs

Logs
[glGenerateMipmap_Trace.txt](https://github.com/flutter/flutter/files/12731577/glGenerateMipmap_Trace.txt)

Flutter Doctor output

Doctor output
[!] Flutter (Channel [user-branch], 3.15.0-15.2.pre, on Fedora Linux 38 (Workstation Edition) 6.4.15-200.fc38.x86_64, locale en_US.UTF-8)
    ! Flutter version 3.15.0-15.2.pre on channel [user-branch] at /mnt/raid10/workspace-automation/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 0d074ced6c (5 days ago), 2023-09-21 10:24:15 -0700
    • Engine revision 453411bcf3
    • Dart version 3.2.0 (build 3.2.0-134.1.beta)
    • DevTools version 2.27.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 16.0.6 (Fedora 16.0.6-3.fc38)
    • cmake version 3.27.4
    • ninja version 1.11.1
    • pkg-config version 1.8.0

[✓] VS Code (version 1.82.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.72.0

[✓] Connected device (2 available)
    • Linux (desktop)              • linux              • linux-x64 • Fedora Linux 38 (Workstation Edition) 6.4.15-200.fc38.x86_64
    • Toyota homescreen (mobile)   • homescreen         • linux-x64 • homescreen x86_64

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.found in release: 3.13Found to occur in 3.13found in release: 3.15Found to occur in 3.15has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions