flame-engine/flame

spine_flutter example program crash

Closed this issue · 1 comments

What happened?

spine_flutter example program crashes on open

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _Exception was thrown building FutureBuilder(dirty, state:
_FutureBuilderState#04706):
Exception: Couldn't load skeleton data: Skeleton version 4.1.23-beta does not match runtime version
4.2

The relevant error-causing widget was:
FutureBuilder
FutureBuilder:file:///C:/Github/flame/packages/flame/lib/src/game/game_widget/game_widget.dart:389:30

What do you expect?

Expected program not to error on open

How can we reproduce this?

Error trying to run spine_flutter example program through web. Downloaded flame-engine/flame. Did flutter run -> chrome. Clicked on spine_flutter example from menu on left side of screen.

What steps should take to fix this?

My guess is that the spine skeleton has a 4.1 version embedded that is incompatible with recent 4.2

Maybe replace the spine file with more recent version?

Do have an example of where the bug occurs?

Error trying to run spine_flutter example program through web. Downloaded flame-engine/flame. Did flutter run -> chrome. Clicked on spine_flutter example from menu on left side of screen.

Error happens immediately on launching program

Relevant log output

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _Exception was thrown building FutureBuilder<void>(dirty, state:
_FutureBuilderState<void>#04706):
Exception: Couldn't load skeleton data: Skeleton version 4.1.23-beta does not match runtime version
4.2

The relevant error-causing widget was:
  FutureBuilder<void>
  Fut

Execute in a terminal and put output into the code block below

C:\Github\flame\examples>flutter doctor -v
[√] Flutter (Channel stable, 3.29.2, on Microsoft Windows [Version 10.0.22631.5039], locale en-US) [496ms]
• Flutter version 3.29.2 on channel stable at C:\Flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c236373904 (7 days ago), 2025-03-13 16:17:06 -0400
• Engine revision 18b71d647a
• Dart version 3.7.2
• DevTools version 2.42.3

[√] Windows Version (11 Home 64-bit, 23H2, 2009) [2.8s]

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [3.0s]
• Android SDK at C:\Users\charl\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
• All Android licenses accepted.

[√] Chrome - develop for the web [271ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.3) [270ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.13.35828.75
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.2) [181ms]
• Android Studio at C:\Program Files\Android\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 21.0.3+-12282718-b509.11)

[√] IntelliJ IDEA Ultimate Edition (version 2024.2) [180ms]
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2024.2.3
• Flutter plugin version 82.1.3
• Dart plugin version 242.22855.32

[√] VS Code (version 1.98.2) [14ms]
• VS Code at C:\Users\charl\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.106.0

[√] Connected device (3 available) [151ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.5039]
• Chrome (web) • chrome • web-javascript • Google Chrome 134.0.6998.90
• Edge (web) • edge • web-javascript • Microsoft Edge 134.0.3124.51

[√] Network resources [249ms]
• All expected network resources are available.

• No issues found!

Affected platforms

Web

Other information

From pubspec.lock
spine_flutter:
dependency: transitive
description:
name: spine_flutter
sha256: "21f8448a1b0cd19ec1c8b264182280b2d76e51a6f2bb832ce37eddc2ddd151e7"
url: "https://pub.dev"
source: hosted
version: "4.2.33"

Are you interested in working on a PR for this?

  • I want to work on this

THANK YOU!