Skip to content

Improve "Invalid kernel binary format version" error logging to include expected and actual version #46938

@jmagman

Description

@jmagman

When debugging the following error message, it would be nice if the log said what kernel binary format version it expected, and what it found instead.

[  +46 ms] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[        ] [VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[        ] [VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[        ] [VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.

if ((formatVersion < kMinSupportedKernelFormatVersion) ||
(formatVersion > kMaxSupportedKernelFormatVersion)) {
if (error != nullptr) {
*error = kKernelInvalidBinaryFormatVersion;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.customer-flutter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions