wordpress-mobile / wordpress-mobile/WordPress-Android

RuntimeException: PARAGRAPH span must start at paragraph boundary (973 follows .)

Open
#20,792 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Medium [Type] Crash Aztec
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Sentry Issue: WORDPRESS-ANDROID-2Y9C

RuntimeException: Failure delivering result ResultInfo{who=null, request=2700, result=-1, data=Intent { (has extras) }} to activity {org.wordpress.android/org.wordpress.android.ui.posts.EditPostActivity}: java.lang.RuntimeException: PARAGRAPH span must start at paragraph boundary (973 follows .)
    at android.app.ActivityThread.deliverResults(ActivityThread.java:5898)
    at android.app.ActivityThread.handleSendResult(ActivityThread.java:5937)
    at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
    at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144)
...
(9 additional frame(s) were not displayed)

RuntimeException: PARAGRAPH span must start at paragraph boundary (973 follows .)
    at org.wordpress.android.editor.AztecEditorFragment.onActivityResult(AztecEditorFragment.java:1885)
    at org.wordpress.android.ui.posts.EditPostActivity.handleMediaSettings(EditPostActivity.kt:2881)
    editorFragment?.onActivityResult(
    at org.wordpress.android.ui.posts.EditPostActivity.handleRequest(EditPostActivity.kt:2844)
    RequestCodes.MEDIA_SETTINGS -> handleMediaSettings(data)
    at org.wordpress.android.ui.posts.EditPostActivity.onActivityResult(EditPostActivity.kt:2802)
    handleRequest(requestCode, data)
...
(18 additional frame(s) were not displayed)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading AztecEditorFragment.onActivityResult and the calls from EditPostActivity.handleMediaSettings and handleRequest shown in the stack trace. Reproduce or trace the media-settings result path, then verify that it no longer raises the reported PARAGRAPH span boundary exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.