sony / flutter-embedded-linux

Embedded Linux embedding for Flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dart VM: Wrong full snapshot version, expected XXX, found YYY

barlone opened this issue · comments

I could not use several last releases. Application builds without errors (arm64+X11) but crashes on start with error:

[FATAL:flutter/runtime/dart_vm_initializer.cc(89)] Error while initializing the Dart VM: Wrong full snapshot version, expected 'f71c76320d35b65f1164dbaa6d95fe09' found 'ee1eb666c76a5cb7746faf39d0b97547'

$flutter-elinux --version
Flutter 3.19.5 • channel [user-branch] • unknown source
Framework • revision 300451adae (5 days ago) • 2024-03-27 21:54:07 -0500
Engine • revision e76c956498
Tools • Dart 3.3.3 • DevTools 2.31.1

last version, that fork for me is:
Flutter 3.16.0 • channel [user-branch] • unknown source
Framework • revision db7ef5bf9f (5 months ago) • 2023-11-15 11:25:44 -0800
Engine • revision 74d16627b9
Tools • Dart 3.2.0 • DevTools 2.28.2

I don't think this issue depends on this software or flutter-elinux. Can you please try the following?

rm -r ${FLUTTER_HOME}/bin/cache/
flutter-elinux doctor

See also https://stackoverflow.com/questions/53431517/flutter-app-error-while-initializing-the-dart-vm-wrong-full-snapshot-version-e

rm -r ${FLUTTER_HOME}/bin/cache/ , git clean -xffd, flutter-elinux clean - not helps

$ flutter-elinux doctor
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.16.0, on Ubuntu 22.04.4 LTS 6.5.0-1019-oracle, locale C.UTF-8)
! Flutter version 3.16.0 on channel [user-branch] at /opt/flutter-elinux/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.
[✓] eLinux toolchain - develop for embedded Linux devices
[✗] 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
[!] Android Studio (not installed)
[✓] Connected device (3 available)
[✓] Network resources