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

RuntimeException: Unable to start activity ComponentInfo{org.wordpress.android/org.wordpress.android.ui.ShareIntent... #19373

Closed
sentry-io bot opened this issue Oct 13, 2023 · 7 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 13, 2023

Sentry Issue: WORDPRESS-ANDROID-2QTT

NetworkOnMainThreadException: None
    at org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:220)
    at org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:193)
    at org.wordpress.android.ui.ShareIntentReceiverActivity.downloadExternalMedia(ShareIntentReceiverActivity.java:104)
    at org.wordpress.android.ui.ShareIntentReceiverActivity.refreshContent(ShareIntentReceiverActivity.java:79)
    at org.wordpress.android.ui.ShareIntentReceiverActivity.onCreate(ShareIntentReceiverActivity.java:70)
...
(33 additional frame(s) were not displayed)

RuntimeException: Unable to start activity ComponentInfo{org.wordpress.android/org.wordpress.android.ui.ShareIntentReceiverActivity}: android.os.NetworkOnMainThreadException
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4169)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4325)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
...
(8 additional frame(s) were not displayed)
@sentry-io
Copy link
Author

sentry-io bot commented Oct 13, 2023

Sentry issue: JETPACK-ANDROID-ATT

@thomashorta
Copy link
Contributor

It looks like the external media can be a network stream, which causes this code to run the Network connection on the main thread, which is not allowed in the Main Thread.

@antonis
Copy link
Contributor

antonis commented Dec 7, 2023

I'm closing this issue since the last occurrence was 2 months ago in release 23.3.1 of the WordPress app (3 months ago in the Jetpack app). We can reopen if the issue occurs again.

@antonis antonis closed this as completed Dec 7, 2023
@antonis antonis reopened this Jan 11, 2024
Copy link
Author

sentry-io bot commented Jan 11, 2024

Sentry issue: JETPACK-ANDROID-GWQ

Copy link
Author

sentry-io bot commented Jan 11, 2024

Sentry issue: JETPACK-ANDROID-GZP

@antonis
Copy link
Contributor

antonis commented Jan 11, 2024

Reopening since the issue reappeared in the recent releases. The frequency remains low.

@antonis
Copy link
Contributor

antonis commented Mar 13, 2024

Looking at the linked Sentry Issues:

Considering the above I'm closing the issue for now.

@antonis antonis closed this as completed Mar 13, 2024
@antonis antonis self-assigned this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants