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

bug: After patch, the app cannot be started. Is there any troubleshooting method #2663

Open
kuangruan opened this issue Dec 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@kuangruan
Copy link

kuangruan commented Dec 7, 2024

App ID: b2801904-716c-463c-b943-c73253e7cb2e

Description

After patch, the app cannot be started. Is there any troubleshooting method

A clear and concise description of what the bug is.

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

flutter 3.24.5

@kuangruan kuangruan added the bug Something isn't working label Dec 7, 2024
@bryanoltman
Copy link
Contributor

Try running the app using shorebird preview. The following steps should help:

  1. Uninstall the app
  2. Install using shorebird preview
  3. Kill the app on your device (don't terminate the shorebird preview process)
  4. Relaunch the app

I imagine you would see something in the logs explaining what's going on.

@eseidel
Copy link
Contributor

eseidel commented Dec 8, 2024

Looking at our records, looks like this is 1.0.1+1006, patch 1. It's android-only, and does not have any native changes according to our records. So failure to start is definitely unexpected. Would love to see the logs and Bryan describes.

@kuangruan
Copy link
Author

Try running the app using shorebird preview. The following steps should help:

  1. Uninstall the app
  2. Install using shorebird preview
  3. Kill the app on your device (don't terminate the shorebird preview process)
  4. Relaunch the app

I imagine you would see something in the logs explaining what's going on.

After troubleshooting, the app can now be launched, but the new patch has no effect and the content of the new patch is not displayed

Manually clicking to check for updates always returns the status "UpdateStatus.restartRequired". Killing the process and reopening it multiple times has not made any difference

log:
updater::cache::patch_manager: [shorebird] No public key provided, skipping signature verification
12-09 10:57:51.468 26125 26973 I flutter : updater::updater: [shorebird] Patch 1 is already installed, skipping.

@bryanoltman
Copy link
Contributor

Patch 1 is already installed, skipping

Looks like the patch was downloaded and installed correctly. If you're always seeing UpdateStatus.restartRequired, that would suggest that something is keeping your app running when you don't expect it to be. Do you have any kind of long-running service that continues after you terminate your app?

@kuangruan
Copy link
Author

Patch 1 is already installed, skipping

Looks like the patch was downloaded and installed correctly. If you're always seeing UpdateStatus.restartRequired, that would suggest that something is keeping your app running when you don't expect it to be. Do you have any kind of long-running service that continues after you terminate your app?

Commenting out the service allows for patch updates. Is it impossible to update with a running service patch? Is there a relevant solution

@eseidel
Copy link
Contributor

eseidel commented Dec 11, 2024

Is it possible to issue a restart for the service from within your app? e.g. When package:shorebird_code_push api says that a restart is needed can you restart both the service and the app?

@kuangruan
Copy link
Author

Is it possible to issue a restart for the service from within your app? e.g. When package:shorebird_code_push api says that a restart is needed can you restart both the service and the app?

Ok, I'll look into it

In addition, if I write a background according to the code of shorebird cli so that I can use it in China, do I need your authorization or any agreement

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
None yet
Development

No branches or pull requests

3 participants