Skip to content

[ImageBlockProcessor] UnsupportedOperationException: JsonNull #12397

@oguzkocer

Description

@oguzkocer

This seems to be the same issue as #12105 which was addressed by @mkevins in #12114. The issue still happens in the latest beta. I don't know if the fix is shipped yet, but since it has a lot of events, I didn't want to risk not reporting it.

I took some time to go through all the similar issues in Sentry and found 64 different issues which all seem to point to the same root cause. I merged them aggresively to the linked Sentry issue. This is due to crashes during EventBus callbacks being reported as part of the event, so if a piece of code is called from different EventBus callbacks, they will generate different issues in Sentry. This is something I've addressed recently in #12102, but of course it only affects the issues going forward. Due to all these issues being merged, some details we add through our script was inaccurate, so I removed them manually. (such as first release, first seen etc)

@mkevins Could you please check if the fix is shipped yet? If it is, could you look into the issue again to see if we missed anything? Please feel free to ping me if you need any assistance with Sentry. (or anything else)

cc @bummytime

Sentry Url: https://sentry.io/share/issue/e9b85687aca34e74af221f0ca14832aa/
User Count: 172
Count: 1072
24 Hours: 30
30 Days: 706

UnsupportedOperationException: JsonNull
     at org.wordpress.android.ui.posts.mediauploadcompletionprocessors.ImageBlockProcessor.processBlockJsonAttributes(ImageBlockProcessor.java:36)
     at org.wordpress.android.ui.posts.mediauploadcompletionprocessors.BlockProcessor.processBlock(BlockProcessor.java:91)
     at org.wordpress.android.ui.posts.mediauploadcompletionprocessors.MediaUploadCompletionProcessor.processBlock(MediaUploadCompletionProcessor.java:78)
     at org.wordpress.android.ui.posts.mediauploadcompletionprocessors.MediaUploadCompletionProcessor.processContent(MediaUploadCompletionProcessor.java:59)
     at org.wordpress.android.ui.posts.mediauploadcompletionprocessors.MediaUploadCompletionProcessor.processContent(MediaUploadCompletionProcessor.java:60)
     at org.wordpress.android.ui.posts.PostUtils.replaceMediaFileWithUrlInGutenbergPost(PostUtils.java:433)
     at org.wordpress.android.ui.uploads.MediaUploadReadyProcessor.replaceMediaFileWithUrlInPost(MediaUploadReadyProcessor.java:25)
     at org.wordpress.android.ui.uploads.UploadService.updatePostWithMediaUrl(UploadService.java:611)
     at org.wordpress.android.ui.uploads.UploadService.updatePostWithCurrentlyCompletedUploads(UploadService.java:459)
     at org.wordpress.android.ui.uploads.UploadService.updateOnePostModelWithCompletedAndFailedUploads(UploadService.java:707)
...
(15 additional frame(s) were not displayed)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions