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

SIGABRT: Assertion failed: (object->ctx_ == ctx_ && "Don't try to clone an object backed by a different Runtime") #5862

Closed
sentry-io bot opened this issue Jun 14, 2023 · 3 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jun 14, 2023

Sentry Issue: JETPACK-IOS-D8

SIGABRT: Assertion failed: (object->ctx_ == ctx_ && "Don't try to clone an object backed by a different Runtime"), function cloneObject, file JSCRuntime.cpp, line 619.
 > cloneObject > JSCRuntime.cpp > object->ctx_ == ctx_ && "Don't try to clone an object backed by a different Runtime"
  File "JSCRuntime.cpp", line 617, in facebook::jsc::JSCRuntime::cloneObject
  File "JSCRuntime.cpp", line 617, in facebook::jsc::JSCRuntime::cloneObject
  File "jsi.h", line 1005, in facebook::jsi::Value::Value
  File "jsi-inl.h", line 40, in facebook::jsi::detail::toValue<T>
  File "jsi-inl.h", line 117, in facebook::jsi::Object::setProperty<T>
...
(115 additional frame(s) were not displayed)

How to reproduce it

  1. Navigate to the post list screen.
  2. Create a new empty post via tapping the FAB then "Blog post."
  3. Await for the title to receive focus and keyboard to begin displaying.
  4. Close the post around the time when the title focus occurs to (presumably) disrupt keyboard-related animations.
  5. Repeat steps 2-4 until the app crashes. Note that a crash occurs quite infrequently.
@fluiddot fluiddot changed the title SIGABRT: Assertion failed: (object->ctx_ == ctx_ && "Don't try to clone an object backed by a different Ru... SIGABRT: Assertion failed: (object->ctx_ == ctx_ && "Don't try to clone an object backed by a different Runtime") Jun 14, 2023
@dcalhoun
Copy link
Member

dcalhoun commented Jun 14, 2023

I was able to reproduce this crash (TestFlight report, Sentry issue) using an iPhone SE running iOS 16.5 and Jetpack 22.6.0.0 with the following steps:

  1. Navigate to the post list screen.
  2. Create a new empty post via tapping the FAB then "Blog post."
  3. Await for the title to receive focus and keyboard to begin displaying.
  4. Close the post around the time when the title focus occurs to (presumably) disrupt keyboard-related animations.
  5. Repeat steps 2-4 until the app crashes. Note that a crash occurs quite infrequently.

@derekblank
Copy link
Contributor

derekblank commented Jun 15, 2023

I wasn't able to reproduce this after following the steps above for 50+ repetitions, both .com and self-hosted sites. iPhone SE, iOS 16.3.1 and iOS 16.5, Jetpack 22.6.0.0.

From WordPress/gutenberg#41686:

Upgrading to Reanimated 2.6.0 might solve the issue. Another possible culprit might be our version of the React Navigation library, which uses Reanimated and might produce a conflict between using v1 and v2 of Reanimated.

This is plausible. A React Navigation upgrade may help. Gutenberg Mobile currently implements react-navigation/[email protected], and the latest is 6.4.8. A comparison of the Reanimated versions each of those implements:

react-navigation/[email protected] (current) -> [email protected]
react-navigation/[email protected] (latest) -> [email protected]

@fluiddot
Copy link
Contributor

Version 23.0 has been released already for a week and no events have been reported related to this crash 🎊. Hence we can consider it as solved.

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

3 participants