sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
408 stars 43 forks source link

Error launching application on i.MX 8 #228

Closed hareendranmg closed 8 months ago

hareendranmg commented 9 months ago

Hi,

I'm running flutter-elinux on my Toradex Apalis i.MX 8 with Yocto build OS based on tdx-reference-multimedia-image image

But when i run the application, below error occurs.

[ +242 ms] Error waiting for a debug connection: The log reader stopped unexpectedly.
[  +17 ms] Error launching application on eLinux.
Full log ```bash root@apalis-imx8-07013820:~/sample# flutter-elinux run -v [ +651 ms] Unable to locate an Android SDK. [ +202 ms] executing: uname -m [ +30 ms] Exit code 0 from: uname -m [ +15 ms] aarch64 [+1935 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] 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 'LegacyCanvasKitRemover' is not required, skipping update. [ +10 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. [ +107 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update. [ +4 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] 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 'LegacyCanvasKitRemover' 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. [ +7 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. [ +157 ms] Skipping pub get: version match. [ +558 ms] Initializing file store [ +50 ms] Skipping target: gen_localizations [ +47 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/root/sample/.dart_tool/package_config_subset} [ +136 ms] gen_dart_plugin_registrant: Complete [ +5 ms] Skipping target: _composite [ +11 ms] complete [ +30 ms] Launching lib/main.dart on eLinux in debug mode... [ +20 ms] /opt/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /opt/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /opt/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/a794cf2681c6c9fe7b260e0e84de96298dc9c18b/ --output-dill /tmp/flutter_tools.AVUEYS/flutter_tool.BNTMXJ/app.dill --packages /home/root/sample/.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/d1e25e033e83e0237fd5ee906d81ede1.cache.dill.track.dill --verbosity=error --flutter-widget-cache --enable-experiment=alternative-invalidation-strategy [ +90 ms] Building app [ +39 ms] Building an eLinux application with wayland backend in debug mode for arm64 target... [ +5 ms] Initializing file store [ +39 ms] Done initializing file store [ +101 ms] Skipping target: gen_localizations [ +29 ms] Skipping target: gen_dart_plugin_registrant [ +2 ms] elinux_plugins: Starting due to {} [+2756 ms] Skipping target: kernel_snapshot [ +20 ms] elinux_plugins: Complete [+2173 ms] Skipping target: debug_elinux_application [ +3 ms] Persisting file store [ +43 ms] Done persisting file store [+1193 ms] executing: [/home/root/sample/build/elinux/arm64/debug/] cmake -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_BACKEND_TYPE=wayland -DFLUTTER_TARGET_PLATFORM=elinux-arm64 /home/root/sample/elinux [ +86 ms] <- compile package:sample/main.dart [+3092 ms] -- The CXX compiler identification is Clang 14.0.6 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/root/sample/build/elinux/arm64/debug CMake Warning: Manually-specified variables were not used by the project: FLUTTER_TARGET_PLATFORM [ +44 ms] executing: [/home/root/sample/build/elinux/arm64/debug/] cmake --build . --parallel 6 [+28110 ms] [ 0%] Built target flutter_assemble [ 7%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o [ 15%] Building CXX object flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o [ 23%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o [ 30%] Building CXX object flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o [ 38%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_engine.cc.o [ 46%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_view_controller.cc.o [ 53%] Building CXX object flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/plugin_registrar.cc.o [ 61%] Linking CXX static library libflutter_wrapper_plugin.a [ 61%] Built target flutter_wrapper_plugin [ 69%] Linking CXX static library libflutter_wrapper_app.a [ 69%] Built target flutter_wrapper_app [ 92%] Building CXX object runner/CMakeFiles/sample.dir/__/flutter/generated_plugin_registrant.cc.o [ 92%] Building CXX object runner/CMakeFiles/sample.dir/flutter_window.cc.o [ 92%] Building CXX object runner/CMakeFiles/sample.dir/main.cc.o [100%] Linking CXX executable sample [100%] Built target sample [ +3 ms] executing: [/home/root/sample/build/elinux/arm64/debug/] cmake --install . [+1002 ms] -- Install configuration: "Debug" -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/sample -- Set runtime path of "/home/root/sample/build/elinux/arm64/debug/bundle/sample" to "$ORIGIN/lib" -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/icudtl.dat -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/lib/libflutter_engine.so -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/lib/libflutter_elinux_wayland.so -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/fonts -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/AssetManifest.bin -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/NOTICES.Z -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/kernel_blob.bin -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/FontManifest.json -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/AssetManifest.json -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/packages -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/packages/cupertino_icons -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/shaders -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/shaders/ink_sparkle.frag -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/vm_snapshot_data -- Installing: /home/root/sample/build/elinux/arm64/debug/bundle/data/flutter_assets/isolate_snapshot_data [ +391 ms] Building an eLinux application with wayland backend in debug mode for arm64 target... (completed in 39.0s) [ +242 ms] Error waiting for a debug connection: The log reader stopped unexpectedly. [ +17 ms] Error launching application on eLinux. [+67175 ms] "flutter run" took 109,392ms. [ +14 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:760:9) #2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1297:27) #3 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #4 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9) #6 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5) #8 run.. (package:flutter_tools/runner.dart:115:9) #9 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #10 main (package:flutter_elinux/executable.dart:80:3) [ +137 ms] ensureAnalyticsSent: 3ms [ +1 ms] Running 1 shutdown hook [ +12 ms] Shutdown hooks complete [ +1 ms] exiting with code 1 ```
flutter-elinux doctor -v ```bash root@apalis-imx8-07013820:~/sample# flutter-elinux doctor -v [!] Flutter (Channel [user-branch], 3.13.7, on TDX Wayland with XWayland 6.4.0-devel-20231010062012+build.0 (kirkstone) 5.15.129-6.4.0-devel+git.67c3153d20ff, locale en_US) ! Flutter version 3.13.7 on channel [user-branch] at /opt/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 2f708eb839 (11 days ago), 2023-10-09 09:58:08 -0500 • Engine revision a794cf2681 • Dart version 3.1.3 • DevTools version 2.25.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. [✓] eLinux toolchain - develop for embedded Linux devices • clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) • cmake version 3.22.3 • pkg-config version 0.29.2 [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use `flutter config --android-sdk` to update to that location. [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✓] Linux toolchain - develop for Linux desktop • clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) • cmake version 3.22.3 • ninja version 1.10.2 • pkg-config version 0.29.2 [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] Connected device (3 available) • Linux (desktop) • linux • linux-arm64 • TDX Wayland with XWayland 6.4.0-devel-20231010062012+build.0 (kirkstone) 5.15.129-6.4.0-devel+git.67c3153d20ff • eLinux (desktop) • elinux-wayland • flutter-tester • TDX Wayland with XWayland 6.4.0-devel-20231010062012+build.0 (kirkstone) 5.15.129-6.4.0-devel+git.67c3153d20ff • eLinux (desktop) • elinux-x11 • flutter-tester • TDX Wayland with XWayland 6.4.0-devel-20231010062012+build.0 (kirkstone) 5.15.129-6.4.0-devel+git.67c3153d20ff [✓] Network resources • All expected network resources are available. ! Doctor found issues in 4 categories. ```
local.confl ``` ACCEPT_FSL_EULA = "1" MACHINE ?= "apalis-imx8" DL_DIR ?= "${TOPDIR}/../downloads" SSTATE_DIR ?= "${TOPDIR}/../sstate-cache" DEPLOY_DIR = "${TOPDIR}/deploy" TI_COMMON_DEPLOY = "${DEPLOY_DIR}" PACKAGE_CLASSES ?= "package_ipk" EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management" USER_CLASSES ?= "buildstats" PATCHRESOLVE = "noop" BB_DISKMON_DIRS ??= "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,/tmp,100M,100K \ HALT,${TMPDIR},100M,1K \ HALT,${DL_DIR},100M,1K \ HALT,${SSTATE_DIR},100M,1K \ HALT,/tmp,10M,1K" PACKAGECONFIG:append:pn-qemu-system-native = " sdl" CONF_VERSION = "2" INHERIT += "rm_work" INHERIT += "toradex-mirrors toradex-sanity" MACHINES_DOWNSTREAM_DISTRO_DEFAULT = "apalis-imx8 colibri-imx8x verdin-imx8mm verdin-imx8mp verdin-am62" DISTRO ?= "${@bb.utils.contains("MACHINES_DOWNSTREAM_DISTRO_DEFAULT", d.getVar('MACHINE') or '', "tdx-xwayland", "tdx-xwayland-upstream", d)}" CORE_IMAGE_EXTRA_INSTALL += "curl" CORE_IMAGE_EXTRA_INSTALL += "git" CORE_IMAGE_EXTRA_INSTALL += "rsync" CORE_IMAGE_EXTRA_INSTALL += "glibc-utils" CORE_IMAGE_EXTRA_INSTALL += "zip" CORE_IMAGE_EXTRA_INSTALL += "make" CORE_IMAGE_EXTRA_INSTALL += "cmake" CORE_IMAGE_EXTRA_INSTALL += "gcc" CORE_IMAGE_EXTRA_INSTALL += "autoconf automake libtool" CORE_IMAGE_EXTRA_INSTALL += "ninja" CORE_IMAGE_EXTRA_INSTALL += "clang" CORE_IMAGE_EXTRA_INSTALL += "pkgconfig" CORE_IMAGE_EXTRA_INSTALL += "gtk+3-dev" CORE_IMAGE_EXTRA_INSTALL += "xz" CORE_IMAGE_EXTRA_INSTALL += "packagegroup-core-buildessential" CORE_IMAGE_EXTRA_INSTALL += "util-linux" CORE_IMAGE_EXTRA_INSTALL += "mesa" CORE_IMAGE_EXTRA_INSTALL += "libgl-mesa-dev" CORE_IMAGE_EXTRA_INSTALL += "glew" CLANGSDK = "1" include conf/machine/include/${MACHINE}.inc ```
env ```bash root@apalis-imx8-07013820:~/sample# env SHELL=/bin/sh SYSTEMD_COLORS=0 EDITOR=vi PWD=/home/root/sample LOGNAME=root HOME=/home/root WAYLAND_DISPLAY=/run/wayland-0 SSH_CONNECTION=::ffff:192.168.3.5 41490 ::ffff:192.168.3.4 22 QT_QPA_PLATFORM=wayland-egl TERM=xterm-256color USER=root DISPLAY=:0.0 SHLVL=2 PS1=\u@\h:\w\$ SSH_CLIENT=::ffff:192.168.3.5 41490 22 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/bin:/opt/flutter/bin SSH_TTY=/dev/pts/0 OLDPWD=/home/root _=/usr/bin/env ```

But when i run flutter-elinux run -d linux -v a white screen appliction created with no content and following OpenGL error,

[ +525 ms] (sample:3844): Gdk-CRITICAL **: 07:33:03.713: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
[   +4 ms] ** (sample:3844): WARNING **: 07:33:03.726: Failed to start Flutter renderer: No GL implementation is available
Full error ```bash root@apalis-imx8-07013820:~/sample# flutter-elinux run -d linux -v Building Linux application... [ +648 ms] Unable to locate an Android SDK. [ +198 ms] executing: uname -m [ +32 ms] Exit code 0 from: uname -m [ +17 ms] aarch64 [+1694 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. [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update. [ +6 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. [ +58 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update. [ +2 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] 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 'LegacyCanvasKitRemover' 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. [ +4 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. [ +96 ms] Skipping pub get: version match. [ +356 ms] Initializing file store [ +31 ms] Skipping target: gen_localizations [ +30 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/root/sample/.dart_tool/package_config_subset} [ +89 ms] gen_dart_plugin_registrant: Complete [ +3 ms] Skipping target: _composite [ +7 ms] complete [ +18 ms] Launching lib/main.dart on Linux in debug mode... [ +12 ms] /opt/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /opt/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /opt/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/a794cf2681c6c9fe7b260e0e84de96298dc9c18b/ --output-dill /tmp/flutter_tools.FCYFVK/flutter_tool.AYBZTU/app.dill --packages /home/root/sample/.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/d1e25e033e83e0237fd5ee906d81ede1.cache.dill.track.dill --verbosity=error --flutter-widget-cache --enable-experiment=alternative-invalidation-strategy [ +113 ms] Building Linux application... [ +73 ms] <- compile package:sample/main.dart [ +15 ms] executing: [build/linux/arm64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-arm64 /home/root/sample/linux [ +171 ms] -- Configuring done [ +4 ms] -- Generating done [ +4 ms] -- Build files have been written to: /home/root/sample/build/linux/arm64/debug [ +49 ms] executing: ninja -C build/linux/arm64/debug install [ +56 ms] ninja: Entering directory `build/linux/arm64/debug' [+117994 ms] [1/6] Generating /home/root/sample/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/root/sample/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_ [ +13 ms] Woah! You appear to be trying to run flutter as root. [ ] We strongly recommend running the flutter tool without superuser privileges. [ ] / [ +11 ms] 📎 [ +4 ms] [ +68 ms] Unable to locate an Android SDK. [ ] [ +35 ms] executing: uname -m [ ] [ +15 ms] Exit code 0 from: uname -m [ ] [ +1 ms] aarch64 [ ] [ +144 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] [ +1 ms] 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 'LegacyCanvasKitRemover' is not required, skipping update. [ ] [ +12 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] [ +1 ms] 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. [ ] [ +635 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] 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 'LegacyCanvasKitRemover' 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. [ ] [ +6 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. [ ] [ +121 ms] Initializing file store [ ] [ +100 ms] Skipping target: gen_localizations [ ] [ +33 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/root/sample/.dart_tool/package_config_subset} [ +104 ms] [ +884 ms] unpack_linux: Starting due to {InvalidatedReasonKind.outputMissing: The following outputs were missing: /home/root/sample/linux/flutter/ephemeral/libflutter_linux_gtk.so,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_ dart_project.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,/home/root/sample/lin ux/flutter/ephemeral/flutter_linux/fl_view.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,/hom e/root/sample/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux /fl_method_channel.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,/home/root/sample/linux/flutter/ep hemeral/flutter_linux/fl_json_method_codec.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/flutter_linux.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_engine.h,/home/root/sample/ linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_plugi n_registry.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_value.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /opt/flutter/packages/flutter_tools/lib/src/build_system/targets/linux.dart,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/libflutter_linux_gtk.so,/opt/flutter/bin/cache/artifacts/engine/linux-arm64 /icudtl.dat,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_pixel_buffer_texture.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_binary_messenger.h,/opt/flutte r/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_dart_project.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_standard_method_codec.h,/opt/flutter/bin/cache/artifacts/engi ne/linux-arm64/flutter_linux/fl_standard_message_codec.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_view.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_j son_message_codec.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_string_codec.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_texture_gl.h,/opt/flutter/bin/ cache/artifacts/engine/linux-arm64/flutter_linux/fl_plugin_registrar.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_binary_codec.h,/opt/flutter/bin/cache/artifacts/engine/linux-ar m64/flutter_linux/fl_method_channel.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_texture.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_method_call.h,/op t/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_message_codec.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_json_method_codec.h,/opt/flutter/bin/cache/artifacts /engine/linux-arm64/flutter_linux/flutter_linux.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_texture_registrar.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linu x/fl_engine.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_method_codec.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_basic_message_channel.h,/opt/flutter /bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_plugin_registry.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_value.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64 /flutter_linux/fl_method_response.h,/opt/flutter/bin/cache/artifacts/engine/linux-arm64/flutter_linux/fl_event_channel.h,/home/root/sample/linux/flutter/ephemeral/icudtl.dat,/home/root/sample/linux/flutt er/ephemeral/flutter_linux/fl_pixel_buffer_texture.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_texture_gl.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_texture.h,/home/roo t/sample/linux/flutter/ephemeral/flutter_linux/fl_texture_registrar.h,/home/root/sample/linux/flutter/ephemeral/flutter_linux/fl_event_channel.h} [ +26 ms] [ +221 ms] unpack_linux: Complete [ ] [ +982 ms] gen_dart_plugin_registrant: Complete [ ] [ +3 ms] kernel_snapshot: Starting due to {} [ +9 ms] [ +28 ms] /opt/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /opt/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /opt/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/a794cf2681c6c9fe7b260e0e84de96298dc9c18b/ -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages /home/root/sample/.dart_tool/package_config.json --output-dill /home/root/sample/.dart_tool/flutter_build/b1592870cfce2a391c66a6ab5019e73b/app.dill --depfile /home/root/sample/.dart_tool/flutter_build/b1592870cfce2a391c66a6ab5019e73b/kernel_snapshot.d --incremental --initialize-from-dill /home/root/sample/.dart_tool/flutter_build/b1592870cfce2a391c66a6ab5019e73b/app.dill --verbosity=error package:sample/main.dart [ +3 ms] [+99796 ms] kernel_snapshot: Complete [ ] [+1492 ms] debug_bundle_linux-arm64_assets: Starting due to {} [ +1 ms] [ +550 ms] shaderc command: [/opt/flutter/bin/cache/artifacts/engine/linux-arm64/impellerc, --sksl, --iplr, --sl=/home/root/sample/build/flutter_assets/shaders/ink_sparkle.frag, --spirv=/home/root/sample/build/flutter_assets/shaders/ink_sparkle.frag.spirv, --input=/opt/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag, --input-type=frag, --include=/opt/flutter/packages/flutter/lib/src/material/shaders, --include=/opt/flutter/bin/cache/artifacts/engine/linux-arm64/shader_lib] [ +2 ms] [+2305 ms] debug_bundle_linux-arm64_assets: Complete [ ] [+1721 ms] Persisting file store [ ] [ +29 ms] Done persisting file store [ ] [ +20 ms] build succeeded. [ ] [ +39 ms] "flutter assemble" took 109,035ms. [ ] [ +61 ms] ensureAnalyticsSent: 0ms [ ] [ ] Running 0 shutdown hooks [ ] [ ] Shutdown hooks complete [ ] [ ] exiting with code 0 [+3345 ms] [2/6] Building CXX object CMakeFiles/sample.dir/my_application.cc.o [ +217 ms] [3/6] Building CXX object CMakeFiles/sample.dir/main.cc.o [ +302 ms] [4/6] Building CXX object CMakeFiles/sample.dir/flutter/generated_plugin_registrant.cc.o [ +872 ms] [5/6] Linking CXX executable intermediates_do_not_run/sample [ ] [5/6] Install the project... [ +34 ms] -- Install configuration: "Debug" [ +1 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/sample [ +1 ms] -- Set runtime path of "/home/root/sample/build/linux/arm64/debug/bundle/sample" to "$ORIGIN/lib" [ +1 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/icudtl.dat [ +6 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/lib/libflutter_linux_gtk.so [ +258 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets [ +1 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/fonts [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf [ +11 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/AssetManifest.bin [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/NOTICES.Z [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/kernel_blob.bin [ +253 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/FontManifest.json [ +1 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/AssetManifest.json [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/version.json [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/packages [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/packages/cupertino_icons [ +1 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf [ ] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/shaders [ +1 ms] -- Installing: /home/root/sample/build/linux/arm64/debug/bundle/data/flutter_assets/shaders/ink_sparkle.frag [ +41 ms] Building Linux application... (completed in 123.9s) [ +525 ms] (sample:3844): Gdk-CRITICAL **: 07:33:03.713: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed [ +4 ms] ** (sample:3844): WARNING **: 07:33:03.726: Failed to start Flutter renderer: No GL implementation is available ```
HidenoriMatsubayashi commented 9 months ago

[ +242 ms] Error waiting for a debug connection: The log reader stopped unexpectedly.

This error may depend on your target board environment.

Can you try the following command and put its logs? And also, please make sure OpenGL ES and Wayland compositor (Weston?) work fine on your board.

$ /home/root/sample/build/elinux/arm64/debug/bundle/sample -b .

If the command works fine, you will see the logs like below and sample flutter app.

libEGL warning: pci id for fd 4: 1ab8:0010, driver (null)

pci id for fd 5: 1ab8:0010, driver (null)
flutter: The Dart VM service is listening on http://127.0.0.1:39287/hBEMannkxoA=/
HidenoriMatsubayashi commented 8 months ago

I'll close this since there is no response. Please let me know if you have still this issue. I'll re-open it. Thanks.