Skip to content

[GB-Android] Tapping on a picture block does trigger an error #8838

@daniloercoli

Description

@daniloercoli

If you add a picture to a new post, and then tap on it an IllegalViewOperationException error is triggered. Stack trace reported below.
After that the UI doesn't give you the ability of getting out of the post with the Back button. You need to use the menu and publish or save as draft the post.

This issue doesn't happen all the time, and it seems that on new posts it does happen more frequently.

Steps to repro:

  • Start GB on a new post
  • Add an Image block to it
  • Tap on the picture (not the caption)
  • Boom!

(if the error doesn't happen, keep trying).

D/ViewRootImpl@cad90e[EditPostActivity]: ViewPostIme pointer 1
E/unknown:ReactNative: Exception in native call
    com.facebook.react.uimanager.IllegalViewOperationException: Unable to execute operation dispatchViewManagerCommand on view with tag: 997, since the view does not exists
        at com.facebook.react.uimanager.UIImplementation.assertViewExists(UIImplementation.java:919)
        at com.facebook.react.uimanager.UIImplementation.dispatchViewManagerCommand(UIImplementation.java:798)
        at com.facebook.react.uimanager.UIManagerModule.dispatchCommand(UIManagerModule.java:637)
        at com.facebook.react.uimanager.UIManagerModule.dispatchViewManagerCommand(UIManagerModule.java:632)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:789)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
        at android.os.Looper.loop(Looper.java:164)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
        at java.lang.Thread.run(Thread.java:764)

Metadata

Metadata

Assignees

No one assigned

    Labels

    GutenbergEditing and display of Gutenberg blocks.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions