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 #2647

Open
t2307532 opened this issue Dec 16, 2024 · 4 comments
Open

Distribute crash app when close CompletedDownloadDialog #2647

t2307532 opened this issue Dec 16, 2024 · 4 comments
Labels
feature request New feature request sdk

Comments

@t2307532
Copy link

t2307532 commented Dec 16, 2024

I created an issue in appcenter-distribute [1747] but no one supported it so I created the issue again here (microsoft/appcenter-sdk-android#1747)

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
Which SDK version are you using?
"com.microsoft.appcenter:appcenter-distribute: 5.0.4"
Which OS version did you experience the issue on?
Android 9/12/13/14
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, ...

@t2307532 t2307532 added the feature request New feature request label Dec 16, 2024
@MikhailSuendukov
Copy link

Hello, and thank you for reaching out to us! Could you please provide more details on the steps to reproduce this issue? Specifically, how are you switching repeatedly between the two popups?

@Sotatek-NinhTran
Copy link

Sotatek-NinhTran commented Dec 18, 2024

Thank you for your support. Please refer to the detailed demo video showing the app crash error. The app sometimes crashes after pressing the cancel button 1-2 times, while at other times it takes more than 3 presses before it crashes.evidence

@Sotatek-NinhTran
Copy link

This is the crash log on firebase. Please see for more details com.coway.catalog.seller_issue_b183d92875fcd8e9fc034e002a01eab1_crash_session_67622CEA0257000115709B9BA6EAE235_DNE_0_v2_stacktrace.txt

@Sotatek-NinhTran
Copy link

@MikhailSuendukov update about this? Thank you

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

No branches or pull requests

4 participants