Skip to content

Dart Error: Can't load Kernel binary: Invalid SDK hash. #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
moritzxbe opened this issue Jul 7, 2022 · 4 comments
Closed

Dart Error: Can't load Kernel binary: Invalid SDK hash. #261

moritzxbe opened this issue Jul 7, 2022 · 4 comments

Comments

@moritzxbe
Copy link

I am facing issues on a fresh installed raspberry pi with bullseye.

I am using flutter-pi e306d1b and engine-binaries 6b09dd7ef4981ca52eec86fc78f47cc050fd330b and locally I have bundled it locally using the following flutter version
Flutter 3.0.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 85684f9300 (7 days ago) • 2022-06-30 13:22:47 -0700
Engine • revision 6ba2af10bb
Tools • Dart 2.17.5 • DevTools 2.12.2

I am getting the following error:
[ERROR:flutter/shell/common/shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid SDK hash.
[ERROR:flutter/runtime/dart_isolate.cc(143)] Could not prepare isolate.
[ERROR:flutter/runtime/runtime_controller.cc(382)] Could not create root isolate.
[ERROR:flutter/shell/common/shell.cc(600)] Could not launch engine with configuration.

Any idea how to fix that issue?

@ardera
Copy link
Owner

ardera commented Jul 7, 2022

What does sha256sum /usr/lib/libflutter_engine.so.debug say for you on the pi?

@moritzxbe
Copy link
Author

This is the output:
061bb7bc5e9eaa32a3ccdbfb61981831dde262682db2316646651fdc9bed7da4 /usr/lib/libflutter_engine.so.debug

@ardera
Copy link
Owner

ardera commented Jul 8, 2022

For me it's

pi@hpi4:~/devel/flutter-engine-binaries-for-arm $ sha256sum ./arm/libflutter_engine.so.debug
23e90022efaca95ec4b58eeb8591b64486cf7f6026fd5292fd067370377c379c  ./arm/libflutter_engine.so.debug

Try installing the engine binaries again

@moritzxbe
Copy link
Author

after reinstalling engine binaries again everything is working fine. problem might be related to Ansible deployment of flutter-pi and engine-binaries. Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants