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

What went wrong: Execution failed for task ':realm:configureCMakeDebug[arm64-v8a]'. #6850

Closed
SrinjoyBarman opened this issue Aug 19, 2024 · 10 comments
Assignees
Labels

Comments

@SrinjoyBarman
Copy link

How frequently does the bug occur?

Always

Description

What went wrong:
Execution failed for task ':realm:configureCMakeDebug[arm64-v8a]'.
[CXX1420]/node_modules/realm/binding/android/CMakeLists.txt debug|arm64-v8a : Could not read '/realm/binding/android/.cxx/Debug/4b4ho4y1/arm64-v8a/configure_fingerprint.bin': While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

latest - 12.13.0

What services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

react native 0.75.1

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Copy link

sync-by-unito bot commented Aug 19, 2024

➤ PM Bot commented:

Jira ticket: RJS-2890

@serhii-yalla
Copy link

The same error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':realm:buildCMakeDebug[arm64-v8a][realm-js-android-binding]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/android/.cxx/Debug/4u3k63y5/arm64-v8a'
  [1/6] Building CXX object CMakeFiles/realm-js-android-binding.dir/src/main/cpp/jni_utils.cpp.o
  [2/6] Building CXX object CMakeFiles/realm-js-android-binding.dir/src/main/cpp/platform.cpp.o
  [3/6] Building CXX object CMakeFiles/realm-js-android-binding.dir/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/jsi/react_scheduler.cpp.o
  FAILED: CMakeFiles/realm-js-android-binding.dir/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/jsi/react_scheduler.cpp.o 
  /Users/pprnd/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --sysroot=/Users/pprnd/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DREALM_APP_SERVICES=1 -DREALM_DEBUG=1 -DREALM_ENABLE_SYNC=1 -DREALM_HAVE_EPOLL=1 -Drealm_js_android_binding_EXPORTS -I/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/android/.. -I/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/android/../../binding/jsi -I/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/android/../../bindgen/src -I/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/android/../../bindgen/vendor/realm-core/bindgen/src -I/Users/pprnd/Documents/yalla_cashier/node_modules/react-native/ReactCommon/callinvoker -isystem /Users/pprnd/Documents/yalla_cashier/node_modules/realm/prebuilds/android/arm64-v8a/include -isystem /Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/android/.cxx/Debug/4u3k63y5/arm64-v8a/openssl/include -isystem /Users/pprnd/.gradle/caches/8.8/transforms/01d6119a8d36e0b6029d3bf994628a51/transformed/react-android-0.75.1-debug/prefab/modules/jsi/include -isystem /Users/pprnd/.gradle/caches/8.8/transforms/01d6119a8d36e0b6029d3bf994628a51/transformed/react-android-0.75.1-debug/prefab/modules/reactnativejni/include -isystem /Users/pprnd/.gradle/caches/8.8/transforms/01d6119a8d36e0b6029d3bf994628a51/transformed/react-android-0.75.1-debug/prefab/modules/turbomodulejsijni/include -isystem /Users/pprnd/.gradle/caches/8.8/transforms/2f2930249991e77f3723e14ca29648a4/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -O2 -std=c++20 -frtti -fexceptions -Wall -fstack-protector-all -fno-limit-debug-info  -fPIC -fvisibility=hidden -pthread -MD -MT CMakeFiles/realm-js-android-binding.dir/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/jsi/react_scheduler.cpp.o -MF CMakeFiles/realm-js-android-binding.dir/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/jsi/react_scheduler.cpp.o.d -o CMakeFiles/realm-js-android-binding.dir/Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/jsi/react_scheduler.cpp.o -c /Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/jsi/react_scheduler.cpp

@kneth
Copy link
Contributor

kneth commented Aug 19, 2024

It is likely related to #6850 which we are currently working on

@kraenhansen
Copy link
Member

kraenhansen commented Aug 21, 2024

Please clear any caches, try v12.13.1 and report back if this issue persists.

@kraenhansen kraenhansen added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Aug 21, 2024
@kraenhansen kraenhansen self-assigned this Aug 21, 2024
@avencat
Copy link

avencat commented Aug 21, 2024

Thanks @kraenhansen! The new version (12.13.1) fixes the issue! 🙂

@kraenhansen
Copy link
Member

@avencat note that even though this is a Gradle build failure, the underlying error is different from that of #6845. I'm waiting for @SrinjoyBarman to confirm the new release fix this issue too.

@lalithasj
Copy link

Hi,
I have the same problem with [email protected].

  • What went wrong:
    Execution failed for task ':realm:buildCMakeDebug[arm64-v8a][realm-js-android-binding]'.

java.nio.file.FileSystemException: E:\ReactNative\RealmMoviesApp\node_modules\realm\binding\android\build\intermediates\cxx\Debug\4f3s2yy4\obj\arm64-v8a\libreactnativejni.so: The process cannot access the file because it is being used by another process.

I appreciate any help in solving this issue. I am trying to do a Ream Movies app example.

@kraenhansen
Copy link
Member

@lalithasj this is a different error from the one @SrinjoyBarman posted above. Please create your own issue with steps outlining how to reliably reproduce it.

@lalithasj
Copy link

@kraenhansen thanks for your reply. After restarting everything, it's working.

@kraenhansen
Copy link
Member

Closing this as it seems the issue went away. @SrinjoyBarman please reopen if it persists.

@kraenhansen kraenhansen closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants