Skip to content
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

package:shorebird_code_push 1.x crashes with newer Flutter versions? #2673

Closed
sssolinjie opened this issue Dec 10, 2024 · 11 comments · Fixed by shorebirdtech/updater#258
Closed
Assignees
Labels
bug Something isn't working

Comments

@sssolinjie
Copy link

sssolinjie commented Dec 10, 2024

update error, app_id: de3c0af9-b1df-4a3c-9694-5400674772ce

on: Invalid argument(s): Failed to lookup symbol 'shorebird_check_for_update': undefined symbol: shorebird_check_for_update
12-10 18:18:52.594 14770 14822 E flutter : #0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33)
12-10 18:18:52.594 14770 14822 E flutter : #1 UpdaterBindings._shorebird_check_for_updatePtr (package:shorebird_code_push/src/generated/updater_bindings.g.dart:2147)
12-10 18:18:52.594 14770 14822 E flutter : #2 UpdaterBindings._shorebird_check_for_update (package:shorebird_code_push/src/generated/updater_bindings.g.dart)
12-10 18:18:52.594 14770 14822 E flutter : #3 UpdaterBindings.shorebird_check_for_update (package:shorebird_code_push/src/generated/updater_bindings.g.dart)
12-10 18:18:52.594 14770 14822 E flutter : #4 Updater.checkForUpdate (package:shorebird_code_push/src/updater.dart:23)
12-10 18:18:52.594 14770 14822 E flutter : #5 _RemoteRunner._run (dart:isolate:1090)
12-10 18:18:52.594 14770 14822 E flutter : #6 _RemoteRunner._remoteExecute (dart:isolate:1084)
12-10 18:18:52.594 14770 14822 E flutter : #7 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300)
12-10 18:18:52.594 14770 14822 E flutter : #8 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184)
12-10 18:18:52.594 14770 14822 E flutter :

@sssolinjie sssolinjie added the bug Something isn't working label Dec 10, 2024
@eseidel
Copy link
Contributor

eseidel commented Dec 10, 2024

This is presumably running package:shorebird_code_push in a build that does not include the shorebird updater. But it shouldn't error like this, I don't think. 🤔

@eseidel eseidel added this to 1.1 Dec 10, 2024
@eseidel eseidel moved this to Todo in 1.1 Dec 10, 2024
@gutzy
Copy link

gutzy commented Dec 12, 2024

This happened to me when I tried creating a new release after updating shorebird without updating my shorebird_code_push dependency. When auto_update is off and you implement your update code yourself, your app will break despite working in your dev environment because the Shorebird updater implementation has changed a lot in recent months.

@felangel
Copy link
Contributor

This happened to me when I tried creating a new release after updating shorebird without updating my shorebird_code_push dependency. When auto_update is off and you implement your update code yourself, your app will break despite working in your dev environment because the Shorebird updater implementation has changed a lot in recent months.

Can you provide some detailed reproduction steps? Thanks!

@zyq9613
Copy link

zyq9613 commented Dec 18, 2024

I had the same problem.My shorebird_code_push version is ^1.1.3, does it have to be updated to 2.0.0

@gutzy
Copy link

gutzy commented Dec 18, 2024

That's just it - my version was also ^1.1.3, updating shorebird doesn't update shorebird_code_push (don't know if it can/should) and doesn't support the old version

@eseidel
Copy link
Contributor

eseidel commented Dec 18, 2024

Sounds like we somehow broke using the 1.x shorebird_code_push package with newer Flutter engine builds?

@eseidel eseidel changed the title update error, app_id: de3c0af9-b1df-4a3c-9694-5400674772ce package:shorebird_code_push 1.x crashes with newer Flutter versions? Dec 18, 2024
@sssolinjie
Copy link
Author

听起来好像我们在使用 1.x shorebird_code_push 包与较新的 Flutter 引擎版本时出现了问题?

yes.

就是这样 - 我的版本也是 ^1.1.3,更新 shorebird 不会更新 shorebird_code_push(不知道是否可以/应该)并且不支持旧版本

@felangel
Copy link
Contributor

Just took a closer look and it looks like we accidentally replaced the shorebird_check_for_update export instead of adding a new export. I'll work on a fix shortly -- sorry for the inconvenience!

@felangel
Copy link
Contributor

Planning to ship the fix in the next shorebird_cli release later today

@felangel
Copy link
Contributor

The release is queued up: #2723
Needs to be smoke tested so it likely won't go out until tomorrow morning. Apologies for the inconvenience!

@felangel
Copy link
Contributor

This should be fixed now in v1.5.4 of Shorebird CLI. You'll need to re-release in order to use the fixed Flutter revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants