-
Notifications
You must be signed in to change notification settings - Fork 223
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
Comments
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? |
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 |
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 |
@MikhailSuendukov update about this? Thank you |
@MikhailSuendukov Thank you so much |
Hello, and apologies for the delayed response. I was able to reproduce the error and have prepared a pull request with a fix. Thank you for your patience! |
I close this issue as a duplicate of this one microsoft/appcenter-sdk-android#1747. I suggest continuing the discussion of this error there. |
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, ...
The text was updated successfully, but these errors were encountered: