react-native-community / releases

React Native releases
https://github.com/facebook/react-native/
1.5k stars 407 forks source link

0.62.x RC Discussion #157

Closed kelset closed 4 years ago

kelset commented 4 years ago

EDIT by @alloy:

The current version is v0.62.0-rc.5 and appears to be the golden one ✨

TODOs:

alloy commented 4 years ago

FYI In an effort to keep a good overview of things that need to be resolved for the next RC or final release; I’m going through all the open comments in this thread and hide all those that are out-of-date, about issues that were not introduced in v0.62.0 nor have a landed fix, or are otherwise not actionable.

mysport12 commented 4 years ago

This issue has appeared whilst testing the new RC facebook/react-native#28098

https://github.com/facebook/react-native/pull/27618 seems to be the culprit. I too am seeing issues with modals on both iOS 13 and iOS 12 as described in the comments

jacobp100 commented 4 years ago

RE @mysport12

Do we need to cherry pick these commits -

https://github.com/facebook/react-native/commit/ed11a12a7c831225d2725855e95bde1f93ea16b3 https://github.com/facebook/react-native/commit/66f89e2e3651cf518b2fbc134a7a09cbce94a140

mysport12 commented 4 years ago

@jacobp100 Yes, that is what I am thinking. I don't think we need to pick https://github.com/facebook/react-native/commit/66f89e2e3651cf518b2fbc134a7a09cbce94a140 though since the original commit https://github.com/facebook/react-native/commit/7e8a18840fec9b51e2599809cf18830bc719d3f7 doesn't appear to be in 0.62.0-rc2

kelset commented 4 years ago

Thanks @mysport12 and @jacobp100 for your investigation, we'll make sure to cherry pick those reverts πŸ‘ (or revert the original commit locally, depending on what's easier) really appreciated the help πŸ™‡β€β™‚οΈ

jacobp100 commented 4 years ago

Ah sorry - I think the revert commit was meant to be https://github.com/facebook/react-native/commit/ed11a12a7c831225d2725855e95bde1f93ea16b3 . I think we do have the original commit in the RC (see https://github.com/react-native-community/releases/issues/157#issuecomment-583124811)

owinter86 commented 4 years ago

Can we cherry pick this https://github.com/facebook/react-native/commit/6adba409e6256fd2dcc27a4272edcedae89927af as it fixes the autofocus glitch you see when using react-native screens and closes issue https://github.com/software-mansion/react-native-screens/issues/236

alloy commented 4 years ago

@mysport12 @jacobp100 Am I correct in summarising the back and forth that in the next RC we only need to pick https://github.com/facebook/react-native/commit/ed11a12a7c831225d2725855e95bde1f93ea16b3?

alloy commented 4 years ago

Regarding the issue with (new) Android apps not launching from CLI, need to bump the CLI package to v4.1.1, which contains this revert.

alloy commented 4 years ago

CLI issue that affects new watch mode and Flipper new reload/open dev menu buttons: react-native-community/cli#984 (both being shipped in 0.62).

@lucasbento It was unclear to me what action to take on this, can you elaborate?

alloy commented 4 years ago

v0.62.0-rc.3 was just released with all suggested changes picked πŸŽ‰

grabbou commented 4 years ago

No action needed from the CLI perspective, FWIW we will ship all the patches as, well... patch releases.

We just need to make sure CLI is stable before RN hits stable so that everyone gets the latest and we have an opportunity to bump it to the latest too.

Let's sync before we're about to do so.

kelset commented 4 years ago

Just FYI: we are aware that with RC3 you may be hitting some Android-side crashes, we are investigating it πŸ’ͺ

grabbou commented 4 years ago

I have confirmed Android works w/o issues on my machine.

Installing APK 'app-debug.apk' on 'Pixel_2_API_27(AVD) - 8.1.0' for app:debug

owinter86 commented 4 years ago

@grabbou what about release version? I can successfully install and run android debug builds, but get this error when trying to do release version.

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/REDACTED-9ssMp3TR_vtsbrqlt0Vtxw==: Package /data/app/REDACTED-9ssMp3TR_vtsbrqlt0Vtxw==/base.apk code is missing

grabbou commented 4 years ago

Same without issues. Might be something specific to your environment.

owinter86 commented 4 years ago

Ok thanks, I will take a look. Seems like I can build fine with Hermes enabled (debug and release), but disabled, I get that error for release builds. I will go over the upgrade diff again.

owinter86 commented 4 years ago

@grabbou invalidating caches seemed to do the trick, I have no issues on my end, can mark my comments as resolved.

hsjoberg commented 4 years ago

@grabbou which issue were you referring to? Android still crashes for me with the same error that I posted above. Debug or release doesn't matter. If I compile in Android Studio first as was suggested it works sometimes, but I cannot get it consistently to work, only maybe 1 in 10 times.

It works fine if I just return null without any element, but as soon as I add say a <Text>, it crashes. From the log I see a lot of:

02-14 00:55:32.039 6005 6051 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager

etc, so perhaps it is related to everything not being loaded correctly.

jgreen210 commented 4 years ago

For 0.62.0-rc.3, with the hermes engine enabled, fetch() leaks memory via the java Blobs holding the request bodies, causing an OutOfMemoryError if download enough data to fill up the java heap. This was fixed a while back with JavaScriptCore.

https://github.com/facebook/hermes/issues/164#issuecomment-591431693

mgcrea commented 4 years ago

@mgcrea AFAIK the FB team is going to cherry pick a few more Flipper-related commits/bugfixes before next RC, so hopefully in next it will be solved! Thanks for reporting anyway :)

Originally posted by @kelset in https://github.com/react-native-community/releases/issues/145#issuecomment-572559668

I'm still encountering https://github.com/facebook/react-native/issues/27845 / https://github.com/facebook/flipper/issues/834 (just created in case this was not tracked) with the latest rc.3, any update on whether this might be fixed before the release?

Thanks!

TheSavior commented 4 years ago

The Upgrade Helper results look much better for RC3 than it did for RC2. Nice work!

It looks like there are still a couple things that [stand out to me in this diff](upgrade helper for 0.61.5...0.62.0-rc.3).

safaiyeh commented 4 years ago

@TheSavior for the addition @passy mentioned something here: https://github.com/facebook/react-native/pull/28052#discussion_r378879042

This PR would remove the dependency from the app side but still part of ReactAndroid

vongohren commented 4 years ago

How can I know if this PR: https://github.com/facebook/react-native/pull/27523 will make it into this release? I have 0.61.5 now and im experiencing this

pvinis commented 4 years ago

In the latest diffs from 61 to 62, we still have the xcscheme files removed, when they shouldn't. I'm trying to figure out how to revert this. If anyone has some idea, please help. For now I just assume that it happened somewhere around the time the shareddata for xcode was added to the gitignore.

pvinis commented 4 years ago

Found it 3e4c5c09c37866ac3a711921a37136a392c618be. I'm making a PR to add them back in.

pvinis commented 4 years ago

Made the PR pointing to master, and I think it should be cherry-picked before the final 62.0. Here is is: https://github.com/facebook/react-native/pull/28198

mjmasn commented 4 years ago

Seeing a crash on startup with Hermes on Android after upgrading our app from 0.61.5 to 0.62.0-rc3. Switched back to JSC temporarily and it runs fine.

libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9336 (mqt_js), pid 9217
Full Crash log ``` 02-28 12:58:28.423 9217 9336 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9336 (mqt_js), pid 9217 (REDACTED.debug) 02-28 12:58:28.479 9363 9363 E crash_dump64: unknown process state: t 02-28 12:58:28.530 9363 9363 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 02-28 12:58:28.530 9363 9363 F DEBUG : Build fingerprint: 'samsung/star2ltexx/star2lte:10/QP1A.190711.020/G965FXXU7DTB4:user/release-keys' 02-28 12:58:28.530 9363 9363 F DEBUG : Revision: '26' 02-28 12:58:28.530 9363 9363 F DEBUG : ABI: 'arm64' 02-28 12:58:28.531 9363 9363 F DEBUG : Timestamp: 2020-02-28 12:58:28+0000 02-28 12:58:28.531 9363 9363 F DEBUG : pid: 9217, tid: 9336, name: mqt_js >>> REDACTED.debug <<< 02-28 12:58:28.531 9363 9363 F DEBUG : uid: 10626 02-28 12:58:28.531 9363 9363 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- 02-28 12:58:28.531 9363 9363 F DEBUG : x0 0000000000000000 x1 0000000000002478 x2 0000000000000006 x3 00000072f9409e50 02-28 12:58:28.531 9363 9363 F DEBUG : x4 fefeff041f3c9b0a x5 fefeff041f3c9b0a x6 fefeff041f3c9b0a x7 7f7f7f7f7f7fff7f 02-28 12:58:28.531 9363 9363 F DEBUG : x8 00000000000000f0 x9 000000738ab165e0 x10 0000000000000000 x11 0000000000000001 02-28 12:58:28.531 9363 9363 F DEBUG : x12 0000000000000001 x13 0000000000000000 x14 ffffffffffffffff x15 0000000000000001 02-28 12:58:28.531 9363 9363 F DEBUG : x16 000000738abe48c0 x17 000000738abc1870 x18 00000072a6b02000 x19 00000000000000ac 02-28 12:58:28.531 9363 9363 F DEBUG : x20 0000000000002401 x21 00000000000000b2 x22 0000000000002478 x23 00000000ffffffff 02-28 12:58:28.531 9363 9363 F DEBUG : x24 0000000000000000 x25 00000072f940f020 x26 00000072559e3800 x27 00000072f91fdaf8 02-28 12:58:28.531 9363 9363 F DEBUG : x28 00000072fca9dcc7 x29 00000072f9409f00 02-28 12:58:28.531 9363 9363 F DEBUG : sp 00000072f9409e30 lr 000000738ab75330 pc 000000738ab75360 02-28 12:58:28.615 9363 9363 F DEBUG : 02-28 12:58:28.615 9363 9363 F DEBUG : backtrace: 02-28 12:58:28.616 9363 9363 F DEBUG : #00 pc 0000000000083360 /apex/com.android.runtime/lib64/bionic/libc.so (abort+176) (BuildId: 220051b49364b1c2da3adf10c30832cc) 02-28 12:58:28.616 9363 9363 F DEBUG : #01 pc 00000000000b8124 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libc++_shared.so (BuildId: a9c0aad7747976d255d9ea273f6f4c5003901317) 02-28 12:58:28.616 9363 9363 F DEBUG : #02 pc 00000000000b43d4 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libc++_shared.so (__gxx_personality_v0+364) (BuildId: a9c0aad7747976d255d9ea273f6f4c5003901317) 02-28 12:58:28.616 9363 9363 F DEBUG : #03 pc 000000000003a9c0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.616 9363 9363 F DEBUG : #04 pc 000000000003aec8 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (_Unwind_Resume+116) (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.616 9363 9363 F DEBUG : #05 pc 00000000000271c0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (facebook::react::JSIExecutor::nativeCallSyncHook(facebook::jsi::Value const*, unsigned long)+620) (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.616 9363 9363 F DEBUG : #06 pc 0000000000020614 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (std::__ndk1::__function::__func, facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*&&, unsigned long&&)+68) (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.616 9363 9363 F DEBUG : #07 pc 0000000000030238 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #08 pc 000000000004ca10 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #09 pc 000000000004faf0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #10 pc 0000000000051ca4 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #11 pc 000000000003c3fc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #12 pc 00000000000d0dcc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #13 pc 000000000004ca10 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #14 pc 000000000004faf0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #15 pc 0000000000051ca4 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #16 pc 000000000003c3fc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #17 pc 00000000000d0dcc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #18 pc 000000000004ca10 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #19 pc 000000000004faf0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #20 pc 0000000000051ca4 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #21 pc 000000000003c3fc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #22 pc 00000000000d0dcc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.616 9363 9363 F DEBUG : #23 pc 000000000004ca10 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #24 pc 000000000004faf0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #25 pc 0000000000051ca4 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #26 pc 000000000003d578 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #27 pc 000000000004ca6c /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #28 pc 000000000004faf0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #29 pc 0000000000051ca4 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #30 pc 000000000003c3fc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #31 pc 00000000000d0dcc /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #32 pc 000000000004ca10 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #33 pc 000000000004faf0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #34 pc 0000000000051ca4 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #35 pc 000000000003d578 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #36 pc 0000000000029530 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+568) (BuildId: 93c3494bebd1a17aeb95356b04bda6ebcb109898) 02-28 12:58:28.617 9363 9363 F DEBUG : #37 pc 00000000000284ec /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (_ZNK8facebook3jsi8Function4callIJRKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_NS0_5ValueEEEESC_RNS0_7RuntimeEDpOT_+240) (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.617 9363 9363 F DEBUG : #38 pc 0000000000028348 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.617 9363 9363 F DEBUG : #39 pc 0000000000023498 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (_ZNSt6__ndk128__invoke_void_return_wrapperIvE6__callIJRPFvRKNS_8functionIFvvEEENS3_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEES7_SF_EEEvDpOT_+116) (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.617 9363 9363 F DEBUG : #40 pc 0000000000025d28 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libhermes-executor-release.so (facebook::react::JSIExecutor::callFunction(std::__ndk1::basic_string, std::__ndk1::allocator> const&, std::__ndk1::basic_string, std::__ndk1::allocator> const&, folly::dynamic const&)+1156) (BuildId: 51e486bef48f88825b5ba40f87243fdddee5d962) 02-28 12:58:28.617 9363 9363 F DEBUG : #41 pc 00000000000a2e64 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libreactnativejni.so (BuildId: 5acb6989042b4f537f47afb9cd476495e57b4dd8) 02-28 12:58:28.617 9363 9363 F DEBUG : #42 pc 00000000000a445c /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libreactnativejni.so (BuildId: 5acb6989042b4f537f47afb9cd476495e57b4dd8) 02-28 12:58:28.617 9363 9363 F DEBUG : #43 pc 00000000000698c0 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libreactnativejni.so (BuildId: 5acb6989042b4f537f47afb9cd476495e57b4dd8) 02-28 12:58:28.617 9363 9363 F DEBUG : #44 pc 000000000005a72c /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail13MethodWrapperIMNS_5react15JNativeRunnableEFvvEXadL_ZNS4_3runEvEES4_vJEE8dispatchENS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIS4_NS3_8RunnableEE8JavaPartESB_vE11_javaobjectEEE+32) (BuildId: 5acb6989042b4f537f47afb9cd476495e57b4dd8) 02-28 12:58:28.617 9363 9363 F DEBUG : #45 pc 000000000005a6a8 /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassINS_5react15JNativeRunnableENS6_8RunnableEE8JavaPartES8_vE11_javaobjectEEEEXadL_ZNS1_13MethodWrapperIMS7_FvvEXadL_ZNS7_3runEvEES7_vJEE8dispatchESE_EESD_vJEE4callEP7_JNIEnvP8_jobject+52) (BuildId: 5acb6989042b4f537f47afb9cd476495e57b4dd8) 02-28 12:58:28.617 9363 9363 F DEBUG : #46 pc 0000000000140350 /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.617 9363 9363 F DEBUG : #47 pc 00000000020314f4 /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68) 02-28 12:58:28.617 9363 9363 F DEBUG : #48 pc 0000000002033620 /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64) 02-28 12:58:28.617 9363 9363 F DEBUG : #49 pc 0000000000137334 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.617 9363 9363 F DEBUG : #50 pc 00000000001460ac /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.617 9363 9363 F DEBUG : #51 pc 00000000002e3be8 /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #52 pc 00000000002dec74 /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+900) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #53 pc 00000000005a3444 /apex/com.android.runtime/lib64/libart.so (MterpInvokeSuper+1532) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #54 pc 0000000000131894 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_super+20) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #55 pc 0000000000356b58 [anon:dalvik-classes.dex extracted in memory from /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage) 02-28 12:58:28.618 9363 9363 F DEBUG : #56 pc 00000000002b4518 /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14549768435847923494+240) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #57 pc 0000000000593c38 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1024) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #58 pc 0000000000140468 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #59 pc 000000000201f3bc /memfd:/jit-cache (deleted) (android.os.Looper.loop+1372) 02-28 12:58:28.618 9363 9363 F DEBUG : #60 pc 00000000001375b8 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #61 pc 00000000001460cc /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #62 pc 00000000002e3be8 /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #63 pc 00000000002dec74 /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+900) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #64 pc 00000000005a5340 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+368) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #65 pc 0000000000131994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #66 pc 0000000000356ce6 [anon:dalvik-classes.dex extracted in memory from /data/app/REDACTED.debug-BGeE5U6w3bu5wdNPQvwUPQ==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run+74) 02-28 12:58:28.618 9363 9363 F DEBUG : #67 pc 00000000005a429c /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1740) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #68 pc 0000000000131a14 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #69 pc 00000000000ea9e4 /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8) 02-28 12:58:28.618 9363 9363 F DEBUG : #70 pc 00000000002b4518 /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14549768435847923494+240) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #71 pc 0000000000593c38 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1024) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #72 pc 0000000000140468 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #73 pc 0000000000137334 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #74 pc 00000000001460ac /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.618 9363 9363 F DEBUG : #75 pc 00000000004b2aa0 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.619 9363 9363 F DEBUG : #76 pc 00000000004b3b50 /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.619 9363 9363 F DEBUG : #77 pc 00000000004f4600 /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: b7fba7af91c6cc32f4385f2b28ec83cb) 02-28 12:58:28.619 9363 9363 F DEBUG : #78 pc 00000000000e3b14 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 220051b49364b1c2da3adf10c30832cc) 02-28 12:58:28.619 9363 9363 F DEBUG : #79 pc 0000000000085330 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 220051b49364b1c2da3adf10c30832cc) ```
robertying commented 4 years ago

Seeing a crash on startup with Hermes on Android after upgrading our app from 0.61.5 to 0.62.0-rc3. Switched back to JSC temporarily and it runs fine.

libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9336 (mqt_js), pid 9217

Full Crash log

Same here.

I am using react-native-navigation and I filed an issue to Hermes the other day: https://github.com/facebook/hermes/issues/189. But then I found out it only crashes in debug. Maybe you could try to build in release to see if that works for you too.

mjmasn commented 4 years ago

@robertying interesting. We're not using react-native-navigation so I guess it's something in common between that and the packages we're using...

I will try a release build in a minute :+1:

hsjoberg commented 4 years ago

It looks similar to my crash issue. It's probably not related to react-native-navigation (I'm using react-navigation), what happens if you just render null or empty fragment (<></>)? For me it won't crash anymore but as soon as I add one real element (say <Text>), it crashes.
Check my post here https://github.com/react-native-community/releases/issues/157#issuecomment-586032669

alloy commented 4 years ago

@mjmasn @robertying Can you try if this patch fixes the issue? https://github.com/facebook/react-native/commit/e4194a20a7 /cc @willholen

mjmasn commented 4 years ago

@robertying yep release build with Hermes runs fine :+1:

@hsjoberg it would seem like a different bug to yours as the debug build is working fine in JSC for me. Your stacktrace looks slightly different too.

@alloy can't make any promises as it's my last day on the job :laughing: I'll see what I can do though!

hsjoberg commented 4 years ago

@mjmasn I'll take a look again, I don't remember if mine crashed on JSC. I wrote that it didn't work in JSC either but maybe I made a mistake.

mjmasn commented 4 years ago

@alloy we're in luck, I was actually already set up for building RN from source :) Yep that patch LGTM :tada:

vongohren commented 4 years ago

@safaiyeh my comment was flooded here, can maybe @mjmasn answere this: https://github.com/react-native-community/releases/issues/157#issuecomment-592047355

mjmasn commented 4 years ago

@vongohren I'm nothing to do with Facebook / RN but the commit for that PR is https://github.com/facebook/react-native/commit/233fdfc014bb4b919c7624c90e5dac614479076f (see https://github.com/facebook/react-native/pull/27523#issuecomment-571799903)

It doesn't look like it's in this release branch though, no*. Maybe @alloy can cherry-pick it for you :pray:

* compare to e.g. https://github.com/facebook/react-native/commit/3b3c95b0170e60983eb6e89b910d100d08eee141 where it shows the release tags at the bottom of the blue commit message section

vongohren commented 4 years ago

@mjmasn ah okay, sorry, it was a random at for the most active here. But thank you very much for checking up and looking at it. Much appreciated πŸŽ‰πŸ… Yeah it is a very strange bug and something that has been merged, so if ut can be cherry picked, @alloy that would be great! Maybe @safaiyeh has some more inputs on this.

hsjoberg commented 4 years ago

Can you try if this patch fixes the issue? facebook/react-native@e4194a2

I can confirm that facebook/react-native@e4194a2 works as well. :tada:

willholen commented 4 years ago

I have synced up with @mhorowitz, and would like to propose the following two picks:

Critical (and I see @hsjoberg already mentioned it above):

Important:


There's also a nice-to-have issue that you can decide on:


An unresolved issue that may deserve a mention somewhere:

mjmasn commented 4 years ago

Not really a critical issue for release but this cli issue may affect existing apps with different package id suffixes per flavour/build type so I thought it'd be worth mentioning here.

https://github.com/react-native-community/cli/issues/1028

robertying commented 4 years ago

I have synced up with @mhorowitz, and would like to propose the following two picks:

Critical (and I see @hsjoberg already mentioned it above):

  • facebook/react-native@e4194a2

    • If not picked: enableHermes: true will cause AwesomeProject to crash on load in debug mode (tested on both my emulator and physical device)
    • If picked: AwesomeProject will load successfully
    • Alternative workaround: None

Important:

  • facebook/react-native@b8621f5

    • If not picked: JS debuggers will fail to attach to Hermes-based apps
    • If picked: JS debuggers can see and attach to Hermes-based apps to debug JavaScript
    • Alternative workaround: adding exclude "**/libhermes-executor-release.so" every time you want to debug Hermes, and removing it again every time you want to run the app in release mode

There's also a nice-to-have issue that you can decide on:

  • facebook/react-native@65d3167

    • If not picked: any errors loading JSC will result in an error message about Hermes, even if Hermes is not enabled
    • If picked: When JSC fails to load, JSC load errors are surfaced to the user
    • Alternative workaround: Explaining this on each relevant GitHub issue

An unresolved issue that may deserve a mention somewhere:

  • Since the last Gradle upgrade, react.gradle is unable to remove unused executors and support libraries ( facebook/react-native:react.gradle@64720ab#L304 )

    • This means that apps using JSC based APKs are 600kb larger than necessary per arch in release mode, which can be can be remedied with a manual exclude "**/libhermes*.so" in packagingOptions
    • Hermes based APKs are 600kb larger than necessary. This can be remedied with exclude "**/libhermes-executor-debug.so", exclude "**/libhermes-inspector.so", exclude "**/libjsc.so" . Unfortunately, this change will also break debug builds, and I’m not aware of a workaround that works in both cases.

I'm also seeing a regression that Android bundle (Google Play) version will crash on startup, which used to be a SoLoader issue. But I'm suspecting it has something to do with the issues above.

TheSavior commented 4 years ago

This commit fixes the missing xcscheme files. Let’s get this picked in: https://github.com/facebook/react-native/commit/a715decd2d3bcdab9537f3246c8398ad9869e94e

ovy9086 commented 4 years ago

Not really a critical issue for release but this cli issue may affect existing apps with different package id suffixes per flavour/build type so I thought it'd be worth mentioning here.

react-native-community/cli#1028

Feel critical to me 😐 are there any possible solutions right now? I’m pretty sure there are a lot of users out there using this

mjmasn commented 4 years ago

@ovy9086 AFAIK it just prevents react-native run-android from opening the app automatically after install. You can still open the app manually.

ArrayZoneYour commented 4 years ago
QUOTED COMMENT

> I have synced up with @mhorowitz, and would like to propose the following two picks: > > Critical (and I see @hsjoberg already mentioned it above): > > * [facebook/react-native@e4194a2](https://github.com/facebook/react-native/commit/e4194a20a7a8ba2bfe3f76f9fec38c04687bdf1e) > > * If not picked: `enableHermes: true` will cause AwesomeProject to crash on load in debug mode (tested on both my emulator and physical device) > * If picked: AwesomeProject will load successfully > * Alternative workaround: None > > Important: > > * [facebook/react-native@b8621f5](https://github.com/facebook/react-native/commit/b8621f5d303442ab78dc5d745cfc86a941d4737c) > > * If not picked: JS debuggers will fail to attach to Hermes-based apps > * If picked: JS debuggers can see and attach to Hermes-based apps to debug JavaScript > * Alternative workaround: adding exclude "**/libhermes-executor-release.so" every time you want to debug Hermes, and removing it again every time you want to run the app in release mode > > There's also a nice-to-have issue that you can decide on: > > * [facebook/react-native@65d3167](https://github.com/facebook/react-native/commit/65d3167a802b2ca04d4f05ff972c2d51765f1e0d) > > * If not picked: any errors loading JSC will result in an error message about Hermes, even if Hermes is not enabled > * If picked: When JSC fails to load, JSC load errors are surfaced to the user > * Alternative workaround: Explaining this on each relevant GitHub issue > > An unresolved issue that may deserve a mention somewhere: > > * Since the last Gradle upgrade, react.gradle is unable to remove unused executors and support libraries ( https://github.com/facebook/react-native/blob/64720ab14a68fba7ae5ac3100499365e3c84ba85/react.gradle#L304 ) > > * This means that apps using JSC based APKs are 600kb larger than necessary per arch in release mode, which can be can be remedied with a manual `exclude "**/libhermes*.so"` in `packagingOptions` > * Hermes based APKs are 600kb larger than necessary. This can be remedied with `exclude "**/libhermes-executor-debug.so", exclude "**/libhermes-inspector.so", exclude "**/libjsc.so"` . Unfortunately, this change will also break debug builds, and I’m not aware of a workaround that works in both cases.

I am using the workaround below for your last issue on 0.61, maybe it also works on your case

android/app/build.gradle

def taskName = getGradle().getStartParameter().getTaskRequests().toString()

packagingOptions {
    // For Hermes, delete all the libjsc* files
    exclude "**/libjsc*.so"
    if (taskName.contains("Debug")) {
      // Release libs take precedence and must be removed
      // to allow debugging
      exclude '**/libhermes-executor-release.so'
    } else {
      // Reduce size by deleting the debugger/inspector
      exclude '**/libhermes-inspector.so'
      exclude '**/libhermes-executor-debug.so'
    }
}

(edited by @kelset to collapse the quoted comment)

mweststrate commented 4 years ago

Fixed issue in 0.62.0-rc.3 where the iOS default template depends on a too old version of FlipperKit for iOS + react-native-flipper. Original PR: https://github.com/facebook/react-native/pull/28225, landing atm in D20249666

Edit: landed in https://github.com/facebook/react-native/commit/fbb94a30bc4ef667c9baadf55ca05d91a0be46fc

gorhom commented 4 years ago

added dark mode support for RCTPerfMonitor

https://github.com/facebook/react-native/commit/576ddfb3a84a5461679959f0d3f229a000dcea8d

alloy commented 4 years ago

CLI update https://github.com/facebook/react-native/commit/e1de7a5e654f4cb1c08405f58c811a9f0074bb5c

timkuilman commented 4 years ago

flipper

I was just creating a release build with the latest rc and I noticed that it took quite a long time. It is processing Flipper and I'm wondering whether that is really necessary for a production build.

The getting started guide for Flipper mentions how to differentiate for Android between debug and production builds.