Repository: flutter
Issue: libEGL  : call to OpenGL ES API with no current context (logged once per thread)
Labels: c: crash,platform-android,engine,P2,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1. Run `flutter create bug`.
2. Update the files as follows: ... <!-- include every file that is different from the template app! -->
3. ... <!-- describe how to reproduce the problem -->
This is an occasional crash. I can't provide a reproduction path.
**Expected results:** <!-- what did you want to see? -->
I hope it can be used normally
**Actual results:** <!-- what did you see? -->
App crash
<details>
  <summary>

```
Thread 0 (crashed)
 0  libflutter.so + 0x31374c
 1  libflutter.so + 0x315d31
 2  libflutter.so + 0x315d41
 3  libflutter.so + 0x148de5
 4  libflutter.so + 0x28eedd
 5  libflutter.so + 0x28e891
 6  libflutter.so + 0x28e8b5
 7  libflutter.so + 0x148de5
 8  libflutter.so + 0x1e8817
 9  libflutter.so + 0x1e8cc7
10  libflutter.so + 0x1e8891
11  libflutter.so + 0x1e88a5
12  libflutter.so + 0x142f5f
13  libflutter.so + 0x1cf33f
14  libflutter.so + 0x1cf2cb
15  libflutter.so + 0x1cf479
16  libflutter.so + 0x2038f7
17  libflutter.so + 0x20390d
18  libflutter.so + 0x15b58b
19  libflutter.so + 0x15dfb3
```

</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
Flutter (Channel stable, 2.2.3, on Mac OS X 10.15.6 19G73 darwin-x64, locale
    zh-Hans-CN)
    • Flutter version 2.2.3 at /Users/xingke/Documents/Project/Flutter
    • Framework revision f4abaa0735 (6 周前), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/xingke/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS
      development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)
    • SM G9650 (mobile) • 314c494d4a4c3098 • android-arm64  • Android 8.0.0 (API
      26)
    • Chrome (web)      • chrome           • web-javascript • Google Chrome
      92.0.4515.131
```

</details>