Repository: flutter
Issue: `Check failed: gl_version_string. The GL proc resolver's glGetString(GL_VERSION) failed` on Linux with Nvidia Graphics Card
Labels: c: crash,e: device-specific,engine,platform-linux,a: desktop,P2,team-linux,triaged-linux

<!-- 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 run -d linux`.
2. Get the problem.

**Expected results:** For it to run.

**Actual results:** Getting the error in logs with `flutter run -d linux --verbose`.

<details>
  <summary>Logs</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.
-->

```
[  +84 ms] executing: uname -m
[  +39 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +7 ms] executing: [/home/erayerdin/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +5 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] executing: [/home/erayerdin/snap/flutter/common/flutter/] git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[  +14 ms] Exit code 0 from: git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] 2.2.1
[   +9 ms] executing: [/home/erayerdin/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/erayerdin/snap/flutter/common/flutter/] git ls-remote --get-url origin
[   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +94 ms] Unable to locate an Android SDK.
[   +8 ms] executing: [/home/erayerdin/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +70 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +93 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +95 ms] Skipping pub get: version match.
[  +89 ms] Found plugin package_info_plus at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.0.2/
[   +7 ms] Found plugin package_info_plus_macos at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_macos-1.1.1/
[   +3 ms] Found plugin package_info_plus_web at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_web-1.0.2/
[   +4 ms] Found plugin path_provider at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.2/
[   +1 ms] Found plugin path_provider_linux at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/
[   +1 ms] Found plugin path_provider_macos at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/
[   +2 ms] Found plugin path_provider_windows at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/
[  +14 ms] Found plugin sqflite at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/
[  +13 ms] Found plugin url_launcher at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.7/
[        ] Found plugin url_launcher_linux at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.0/
[        ] Found plugin url_launcher_macos at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.0/
[   +1 ms] Found plugin url_launcher_web at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.1/
[        ] Found plugin url_launcher_windows at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.0/
[ +117 ms] Found plugin package_info_plus at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.0.2/
[   +4 ms] Found plugin package_info_plus_macos at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_macos-1.1.1/
[   +1 ms] Found plugin package_info_plus_web at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_web-1.0.2/
[   +1 ms] Found plugin path_provider at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.2/
[        ] Found plugin path_provider_linux at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/
[        ] Found plugin path_provider_macos at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/
[   +1 ms] Found plugin path_provider_windows at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/
[   +8 ms] Found plugin sqflite at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/
[   +7 ms] Found plugin url_launcher at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.7/
[   +1 ms] Found plugin url_launcher_linux at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.0/
[        ] Found plugin url_launcher_macos at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.0/
[   +1 ms] Found plugin url_launcher_web at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.1/
[        ] Found plugin url_launcher_windows at /home/erayerdin/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.0/
[  +15 ms] Generating /home/erayerdin/Documents/Projects/levelheadbrowser/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +132 ms] Initializing file store
[  +13 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +5 ms] Launching lib/main.dart on Linux in debug mode...
[   +6 ms] /home/erayerdin/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/erayerdin/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/erayerdin/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.LACGQS/flutter_tool.KIXCMR/app.dill --packages
/home/erayerdin/Documents/Projects/levelheadbrowser/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build/3c113a45063dc6628e68a4111abcacad.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +37 ms] Building Linux application...
[  +25 ms] <- compile package:levelheadbrowser/main.dart
[   +3 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64
/home/erayerdin/Documents/Projects/levelheadbrowser/linux
[  +73 ms] -- Configuring done
[  +13 ms] -- Generating done
[        ] -- Build files have been written to: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug
[   +5 ms] executing: ninja -C build/linux/x64/debug install
[  +10 ms] ninja: Entering directory `build/linux/x64/debug'
[+33668 ms] [1/7] Generating /home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_value.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/fl_view.h,
/home/erayerdin/Documents/Projects/levelheadbrowser/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[   +9 ms] [  +89 ms] executing: uname -m
[        ] [  +42 ms] Exit code 0 from: uname -m
[        ] [        ] x86_64
[        ] [   +8 ms] executing: [/home/erayerdin/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +5 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] [   +1 ms] executing: [/home/erayerdin/snap/flutter/common/flutter/] git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] [  +19 ms] Exit code 0 from: git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] [        ] 2.2.1
[        ] [   +7 ms] executing: [/home/erayerdin/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/erayerdin/snap/flutter/common/flutter/] git ls-remote --get-url origin
[        ] [   +3 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +65 ms] Unable to locate an Android SDK.
[        ] [   +8 ms] executing: [/home/erayerdin/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +69 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [ +133 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +75 ms] Initializing file store
[        ] [  +19 ms] Done initializing file store
[        ] [  +83 ms] Skipping target: gen_localizations
[        ] [+2159 ms] Skipping target: unpack_linux
[        ] [ +758 ms] kernel_snapshot: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
/home/erayerdin/Documents/Projects/levelheadbrowser/lib/presentation/pages/settings/pages/filtering/profile/profile.settings.page.dart}
[   +5 ms] [  +19 ms] /home/erayerdin/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/erayerdin/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/erayerdin/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies
-DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --packages
/home/erayerdin/Documents/Projects/levelheadbrowser/.dart_tool/package_config.json --output-dill
/home/erayerdin/Documents/Projects/levelheadbrowser/.dart_tool/flutter_build/f12817ff658642e7ef3e96979ba8246d/app.dill --depfile
/home/erayerdin/Documents/Projects/levelheadbrowser/.dart_tool/flutter_build/f12817ff658642e7ef3e96979ba8246d/kernel_snapshot.d package:levelheadbrowser/main.dart
[   +3 ms] [+25379 ms] kernel_snapshot: Complete
[        ] [ +915 ms] invalidated build due to missing files: /home/erayerdin/Documents/Projects/levelheadbrowser/DOES_NOT_EXIST_RERUN_FOR_WILDCARD449931742
[        ] [ +948 ms] debug_bundle_linux-x64_assets: Starting due to {InvalidatedReasonKind.inputMissing: The following inputs were missing:
/home/erayerdin/Documents/Projects/levelheadbrowser/DOES_NOT_EXIST_RERUN_FOR_WILDCARD449931742}
[   +1 ms] [ +691 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[        ] [  +25 ms] debug_bundle_linux-x64_assets: Complete
[        ] [ +893 ms] Persisting file store
[        ] [  +29 ms] Done persisting file store
[        ] [  +28 ms] build succeeded.
[        ] [  +29 ms] "flutter assemble" took 32,202ms.
[        ] [ +248 ms] ensureAnalyticsSent: 239ms
[        ] [   +3 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[+1079 ms] [2/5] Building CXX object CMakeFiles/levelheadbrowser.dir/flutter/generated_plugin_registrant.cc.o
[ +124 ms] [3/5] Building CXX object CMakeFiles/levelheadbrowser.dir/my_application.cc.o
[ +161 ms] [4/5] Linking CXX executable intermediates_do_not_run/levelheadbrowser
[        ] [4/5] Install the project...
[  +21 ms] -- Install configuration: "Debug"
[  +38 ms] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/levelheadbrowser
[   +1 ms] -- Set runtime path of "/home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/levelheadbrowser" to "$ORIGIN/lib"
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/icudtl.dat
[   +2 ms] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so
[ +303 ms] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/lib/liburl_launcher_linux_plugin.so
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets/images
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/icons
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/icons/icon.ase
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/icons/icon.png
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/badges
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/badges/error-badge.png
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/badges/loading-badge.png
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/packages
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/version.json
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES
[   +1 ms] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/fonts
[        ] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[   +3 ms] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin
[ +141 ms] -- Installing: /home/erayerdin/Documents/Projects/levelheadbrowser/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json
[  +27 ms] Building Linux application... (completed in 35.7s)
[+1075 ms] [FATAL:flutter/shell/gpu/gpu_surface_gl_delegate.cc(50)] Check failed: gl_version_string. The GL proc resolver's glGetString(GL_VERSION) failed
[ +349 ms] Error waiting for a debug connection: The log reader stopped unexpectedly.
[   +5 ms] Error launching application on Linux.
[  +11 ms] "flutter run" took 37,928ms.
[   +8 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:663:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:196:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>
           
           
[ +236 ms] ensureAnalyticsSent: 233ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.2.1, on Linux, locale en_US.UTF-8)
    • Flutter version 2.2.1 at /home/erayerdin/snap/flutter/common/flutter
    • Framework revision 02c026b03c (5 weeks ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /media/erayerdin/XBACKUP/SDK/Android/
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /snap/android-studio/105/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio (version 4.2)
    • Android Studio at /snap/android-studio/105/android-studio
    • 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+0-b944-P17168821)

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 91.0.4472.114

• No issues found!
```

</details>

The weird thing is this happened after I plugged NVIDIA Corporation G94 [GeForce 9600 GT] to my machine. I was using Intel HD Graphics before and never had any issue.

This issue is similar to #51286 but that issue is about Windows and seems to be resolved.

https://github.com/flutter/flutter/issues/51286#issuecomment-812456464

But it is still relevant on some machines like mine (Ubuntu 20.04). So I am opening a new issue.