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

IllegalArgumentException: Unknown color #20694

Closed
sentry-io bot opened this issue Apr 22, 2024 · 4 comments · Fixed by wordpress-mobile/AztecEditor-Android#1079 or #20704
Closed

IllegalArgumentException: Unknown color #20694

sentry-io bot opened this issue Apr 22, 2024 · 4 comments · Fixed by wordpress-mobile/AztecEditor-Android#1079 or #20704
Assignees
Labels
Aztec Gutenberg Editing and display of Gutenberg blocks. [Type] Crash
Milestone

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 22, 2024

Sentry Issue: JETPACK-ANDROID-Q8T

java.lang.IllegalArgumentException: Unknown color
    at android.graphics.Color.parseColor(Color.java:1400)
    at org.wordpress.aztec.spans.MarkSpan.<init>(MarkSpan.kt:21)
    at org.wordpress.aztec.spans.MarkSpan.<init>(MarkSpan.kt:21)
    at org.wordpress.aztec.HtmlToSpannedConverter.start(Html.java:561)
    at org.wordpress.aztec.HtmlToSpannedConverter.handleStartTag(Html.java:365)
    at org.wordpress.aztec.HtmlToSpannedConverter.startElement(Html.java:725)
    at org.ccil.cowan.tagsoup.Parser.push(Parser.java:795)
    at org.ccil.cowan.tagsoup.Parser.rectify(Parser.java:1062)
    at org.ccil.cowan.tagsoup.Parser.stagc(Parser.java:1017)
    at org.ccil.cowan.tagsoup.HTMLScanner.scan(HTMLScanner.java:624)
    at org.ccil.cowan.tagsoup.Parser.parse(Parser.java:450)
    at org.wordpress.aztec.HtmlToSpannedConverter.convert(Html.java:275)
    at org.wordpress.aztec.Html.fromHtml(Html.java:213)
    at org.wordpress.aztec.AztecParser.parseHtmlForInspection(AztecParser.kt:72)
    at org.wordpress.android.editor.AztecEditorFragment.parseContent(AztecEditorFragment.java:2283)
    at org.wordpress.android.editor.AztecEditorFragment.hasMediaItemsMarkedWithTag(AztecEditorFragment.java:2223)
    at org.wordpress.android.editor.AztecEditorFragment.hasMediaItemsMarkedUploading(AztecEditorFragment.java:2213)
    at org.wordpress.android.ui.posts.EditPostActivity.lambda$resetUploadingMediaToFailedIfPostHasNotMediaInProgressOrQueued$24(EditPostActivity.java:1115)
    at org.wordpress.android.ui.posts.EditPostActivity.$r8$lambda$qRldFcda8u7Rij1yTRgpqS3bbsQ(EditPostActivity.java:0)
    at org.wordpress.android.ui.posts.EditPostActivity$$InternalSyntheticLambda$2$2bcf07e536162aed6911dd000b270a0a75d37367b130082d83fff88c0bad3e8a$0.invoke(R8$$SyntheticClass:0)
    at org.wordpress.android.ui.posts.EditPostRepository$updateAsync$1$isUpdated$1.invokeSuspend(EditPostRepository.kt:124)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.CoroutineContextKt.withContinuationContext
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:90)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
@dangermattic
Copy link
Collaborator

dangermattic commented Apr 22, 2024

Thanks for reporting! 👍

Copy link
Author

sentry-io bot commented Apr 22, 2024

Sentry Issue: WORDPRESS-ANDROID-2XN6

@antonis
Copy link

antonis commented Apr 22, 2024

I did an initial investigation of this but wasn't able to reproduce the crash.
The crash occurs in EditPostActivity.java:1115 for version 24.6. Note that this file has been converted to Kotlin in 24.7 with #20543 and there seem to be no occurrences in the current 24.7-beta.
The called function in the AztecEditorFragment hasn't changed either.
I did not detect any other suspicious change in 24.6 and given that the occurrences of the issue are trending lower on both apps I suspect that a server side configuration change might have triggered this 🤔

Jetpack WordPress
Screenshot 2024-04-22 at 6 21 00 PM Screenshot 2024-04-22 at 6 35 58 PM

I plan to monitor the issue and revisit tomorrow.

@antonis antonis added the Gutenberg Editing and display of Gutenberg blocks. label Apr 22, 2024
@antonis antonis self-assigned this Apr 23, 2024
@antonis antonis reopened this Apr 23, 2024
@antonis antonis added this to the 24.7 ❄️ milestone Apr 23, 2024
@antonis antonis linked a pull request Apr 23, 2024 that will close this issue
13 tasks
@antonis antonis closed this as completed Apr 23, 2024
Copy link
Author

sentry-io bot commented May 13, 2024

Sentry Issue: JETPACK-ANDROID-QAV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aztec Gutenberg Editing and display of Gutenberg blocks. [Type] Crash
Projects
None yet
4 participants