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

Distribute crash app when close CompletedDownloadDialog #1747

Open
Sotatek-NinhTran opened this issue Dec 5, 2024 · 2 comments
Open

Distribute crash app when close CompletedDownloadDialog #1747

Sotatek-NinhTran opened this issue Dec 5, 2024 · 2 comments
Labels

Comments

@Sotatek-NinhTran
Copy link

Description

The application crashes while updating to a new version. In the AOS source, I use fun Distribute.checkForUpdate()

Repro Steps

Please list the steps used to reproduce your issue.

Step 1: The app update can be performed either from the login screen or from the left menu.
Step 2: Grant permissions and successfully download the update.
Step 3: If the app is in the background, a notification will appear: “DS version number (version build) has been downloaded and is ready to be installed” → The user taps on it to reopen the app (1.1).
Step 4: If the app is in the foreground, a popup will appear: “Do you want to update this app?” (1.2).
Step 5: In popup (1.1), tap the Install button, close the current popup, and open popup (1.2).
Step 6: When repeatedly closing and opening between popups (1.1) and (1.2), the app will crash.

My evidence folder

“Fatal Exception: java.lang.RuntimeException
Unable to resume activity {com.coway.catalog.seller/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Expected: AppCenter.Installer Calling: main"

Details

  1. Which SDK version are you using?
    • "com.microsoft.appcenter:appcenter-distribute: 5.0.4"
  2. Which OS version did you experience the issue on?
    • Android 9/12/13/14
  3. What device version did you see this error on? Were you using an emulator or a physical device?
    • Physical device: Galaxy S24+, Galaxy s20/s22/s23 Ultra, Galaxy Z Fold4, Galaxy A23, Galaxy Quantum4, Galaxy S10 5G, Galaxy S20+ 5G, Galaxy Z Flip5, Galaxy Note20 Ultra 5G, ...
@Sotatek-NinhTran
Copy link
Author

@MikhailSuendukov Thank you so much

@MikhailSuendukov
Copy link
Contributor

I was able to reproduce the error and have prepared a #1750 with a fix.

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

No branches or pull requests

2 participants