weixin_39801613
weixin_39801613
2020-12-05 00:00

Crash: Assertion failed ref != 0

Can anyone tell me how to proceed?

This is the crashlog


2020-09-23 15:10:23.316 10220-10331/com.binarymolecule.heracles.hydra.dev E/REALM: ../src/realm/alloc_slab.cpp:522: [realm-core-6.0.26] Assertion failed: ref != 0 with (ref, get_file_path_for_assertions()) =  [0, "/data/user/0/com.binarymolecule.heracles.hydra.dev/files/default.realm"]
    <backtrace not supported on this platform>!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help.io.

    --------- beginning of crash
2020-09-23 15:10:23.316 10220-10331/com.binarymolecule.heracles.hydra.dev A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 10331 (mqt_js), pid 10220 (acles.hydra.dev)
2020-09-23 15:10:23.362 10360-10360/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2020-09-23 15:10:23.362 921-921/? I/tombstoned: received crash request for pid 10331
2020-09-23 15:10:23.363 10360-10360/? I/crash_dump64: performing dump of process 10220 (target tid = 10331)
2020-09-23 15:10:23.368 10360-10360/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-09-23 15:10:23.368 10360-10360/? A/DEBUG: Build fingerprint: 'google/flame/flame:11/RP1A.200720.009/6720564:user/release-keys'
2020-09-23 15:10:23.368 10360-10360/? A/DEBUG: Revision: 'MP1.0'
2020-09-23 15:10:23.368 10360-10360/? A/DEBUG: ABI: 'arm64'
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG: Timestamp: 2020-09-23 15:10:23+0200
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG: pid: 10220, tid: 10331, name: mqt_js  >>> com.binarymolecule.heracles.hydra.dev <<<
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG: uid: 10346
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x0  0000000000000000  x1  000000000000285b  x2  0000000000000006  x3  0000006d67c42340
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x4  fefeff6bdcd5089f  x5  fefeff6bdcd5089f  x6  fefeff6bdcd5089f  x7  7f7f7f7fffff7fff
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x8  00000000000000f0  x9  d4c52f2ede9bed34  x10 0000000000000000  x11 ffffffc0fffffbdf
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x12 0000000000000001  x13 0000000000000172  x14 0012a7ed0dfef1cc  x15 000000000105d4ca
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x16 0000007009b8dc80  x17 0000007009b6f3b0  x18 00000000ca62c1d6  x19 00000000000027ec
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x20 000000000000285b  x21 00000000ffffffff  x22 0000006d6850dfcf  x23 000000000000020a
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x24 0000006d6850df88  x25 0000006d67c47000  x26 0000000000000001  x27 0000006d67c47000
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     x28 0000000000000001  x29 0000006d67c423c0
2020-09-23 15:10:23.369 10360-10360/? A/DEBUG:     lr  0000007009b22e20  sp  0000006d67c42320  pc  0000007009b22e4c  pst 0000000000000000
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG: backtrace:
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #00 pc 000000000004de4c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 03452a4a418e14ff93948f26561eace6)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #01 pc 00000000006f33cc  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #02 pc 00000000006f34bc  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #03 pc 00000000006f35e0  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #04 pc 0000000000665d78  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #05 pc 0000000000665c3c  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #06 pc 000000000067ef78  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #07 pc 0000000000613608  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #08 pc 00000000006a9074  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #09 pc 00000000006a8e98  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #10 pc 00000000006f6c40  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #11 pc 00000000006697ac  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #12 pc 00000000006ae504  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #13 pc 00000000006acf64  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #14 pc 00000000001c8d9c  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #15 pc 00000000001c7e60  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #16 pc 000000000028f7b8  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #17 pc 00000000002377f0  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/librealmreact.so (BuildId: 69a362b8bc4e16c1f05c2cacc9db451b9efa48d7)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #18 pc 00000000000b3b3c  /data/app/~~AoB3grmPzY6RdEN7K_wuvQ==/com.binarymolecule.heracles.hydra.dev-EWhw9ZYSTFa_Bd3tTLuiGQ==/lib/arm64/libjsc.so (long JSC::APICallbackFunction::call<:jscallbackfunction>(JSC::ExecState*)+340)
2020-09-23 15:10:23.471 10360-10360/? A/DEBUG:       #19 pc 0000000000000028  <6ced885000>
2020-09-23 15:10:23.731 921-921/? E/tombstoned: Tombstone written to: /data/tombstones/tombstone_16
6ced885000></:jscallbackfunction></backtrace>

Working on a react native application. I had several realm upgrades in the past without problems. - 5.0.3 - 6.0.2 - 6.0.4

After the upgrade to 6.0.4 all seemed to work but maybe i did not pay great attention. Today i noticed a weird database behavior. Updating an object did succeed, but reading the same object back did not give the expected data back. So i uninstalled the dev application and now am facing this crash on app start. This Happens on a Pixel4 with Andorid 11 as well as in emulator with API Level 22

Upgrading to 6.1.2 does not help

My package.json excerpt


  "dependencies": {
    "/rich-text-react-renderer": "^14.1.1",
    "/rich-text-types": "^14.1.1",
    "/core": "^10.0.28",
    "/native": "^10.0.27",
    "/vector-icons": "~10.2.0",
    "-native-community/async-storage": "^1.11.0",
    "-native-community/audio-toolkit": "^2.0.3",
    "-native-community/datetimepicker": "^3.0.2",
    "-native-community/masked-view": "0.1.10",
    "-native-community/slider": "^3.0.3",
    "-navigation/bottom-tabs": "^5.8.0",
    "-navigation/native": "^5.7.3",
    "-navigation/stack": "^5.9.0",
    "-navigation/web": "~1.0.0-alpha.9",
    "/i18n-js": "^3.0.3",
    "appcenter": "^3.1.1",
    "appcenter-crashes": "^3.1.1",
    "contentful": "^7.14.6",
    "date-fns": "^2.15.0",
    "emotion-theming": "^10.0.27",
    "eslint-config-prettier": "^6.11.0",
    "eslint-plugin-prettier": "^3.1.4",
    "eslint-plugin-react": "^7.20.5",
    "expo": "~38.0.10",
    "expo-asset": "~8.1.7",
    "expo-constants": "~9.1.1",
    "expo-file-system": "~9.0.1",
    "expo-font": "~8.2.1",
    "expo-localization": "^8.2.1",
    "expo-network": "^2.2.1",
    "expo-web-browser": "~8.3.1",
    "i18n-js": "^3.7.1",
    "intl": "^1.2.5",
    "lodash": "^4.17.19",
    "react": "~16.13.1",
    "react-dom": "~16.13.1",
    "react-hook-form": "^6.3.0",
    "react-native": "~0.63.2",
    "react-native-gesture-handler": "^1.7.0",
    "react-native-orientation-locker": "^1.2.0",
    "react-native-paper": "^4.0.1",
    "react-native-reanimated": "~1.10.1",
    "react-native-safe-area-context": "3.1.1",
    "react-native-screens": "2.9.0",
    "react-native-unimodules": "^0.10.1",
    "react-native-video": "^4.4.5",
    "react-native-web": "~0.13.5",
    "react-redux": "^7.2.1",
    "react-use": "^15.3.3",
    "realm": "6.1.2",
    "rxjs": "^6.6.2"
  },
  "devDependencies": {
    "/core": "^7.11.0",
    "-library/jest-native": "^3.2.0",
    "/jest": "^26.0.7",
    "/react": "^16.9.44",
    "/react-native": "^0.63.4",
    "/react-test-renderer": "^16.9.2",
    "-eslint/eslint-plugin": "^3.7.1",
    "-eslint/parser": "^3.7.1",
    "assert": "^2.0.0",
    "aws-sdk": "^2.725.0",
    "babel-jest": "~26.1.0",
    "babel-plugin-module-resolver": "^4.0.0",
    "babel-preset-expo": "~8.2.3",
    "eslint": "^7.6.0",
    "eslint-import-resolver-typescript": "^2.2.0",
    "eslint-plugin-import": "^2.22.0",
    "eslint-plugin-react-hooks": "^4.0.8",
    "full-icu": "^1.3.1",
    "http": "^0.0.1-security",
    "jest": "~26.1.0",
    "jest-expo": "~38.0.2",
    "jetifier": "~1.6.6",
    "metro-react-native-babel-preset": "~0.61.0",
    "prettier": "^2.0.5",
    "react-native-testing-library": "^2.1.1",
    "react-test-renderer": "~16.13.1",
    "ts-node": "^8.10.2",
    "typescript": "^3.8.2"
  },

该提问来源于开源项目:realm/realm-core

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39801613 weixin_39801613 5月前

    ~~This seem to only affect the debug build. I am still able to produce a functional release build of my application.~~

    Not any more, after cleaning android/build folder

    I am stuck at this point.

    点赞 评论 复制链接分享
  • weixin_39733821 weixin_39733821 5月前

    Please retry with core 6.1.3, it might be fixed. This will be included in next realm-js release.

    Note to self: this is a call to free() with a null-ref.

    点赞 评论 复制链接分享
  • weixin_39733821 weixin_39733821 5月前

    Any updates? Do you still see this bug with the most recent version?

    点赞 评论 复制链接分享
  • weixin_39801613 weixin_39801613 5月前

    i can not tell right now. Had to switch to another database solution.

    点赞 评论 复制链接分享

相关推荐