realm / realm-core

Core database component for the Realm Mobile Database SDKs
https://realm.io
Apache License 2.0
1.01k stars 152 forks source link

encrypted_file_mapping.cpp:591: [realm-core-13.26.0] Assertion failed: is_not(e, Writable) #7330

Open ax88 opened 5 months ago

ax88 commented 5 months ago

SDK and version

SDK : RealmsJS Version: 3.6.5 to 12.6.0

Observations

Crash log / stacktrace

/Users/runner/work/realm-js/realm-js/packages/realm/bindgen/vendor/realm-core/src/realm/util/encrypted_file_mapping.cpp:591: [realm-core-13.26.0] Assertion failed: is_not(e, Writable) 0 lanote 0x0000000104b865f4 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28 1 lanote 0x0000000104b86570 _ZN5realm4util19terminate_with_infoEPKcS2_lS2_OSt16initializer_listINS0_9PrintableEE + 404 2 lanote 0x0000000104b863dc _ZN5realm4util19terminate_with_infoEPKcS2_lS2_OSt16initializer_listINS0_9PrintableEE + 0 3 lanote 0x0000000104b69e08 _ZN5realm4util20EncryptedFileMappingD2Ev + 308 4 lanote 0x0000000104b73a00 _ZN5realm4util12_GLOBALN_114remove_mappingEPvm + 384 5 lanote 0x0000000104b713d8 _ZN5realm4util4File7MapBase5unmapEv + 56 6 lanote 0x0000000104a43520 _ZNSt316vectorINS_10unique_ptrIN5realm14WriteWindowMgr9MapWindowENS_14default_deleteIS4_EEEENS_9allocatorIS7_EEED2B6v15006Ev + 56 7 lanote 0x0000000104a3e7cc _ZN5realm11GroupWriterD2Ev + 108 8 lanote 0x0000000104a1c678 _ZN5realm2DB16low_level_commitEyRNS_11TransactionEb + 1384 9 lanote 0x0000000104a1c070 _ZN5realm2DB9do_commitERNS_11TransactionEb + 252 10 lanote 0x0000000104b525c8 _ZN5realm11Transaction27commit_and_continue_as_readEb + 72 11 lanote 0x00000001047dbcec _ZN5realm5_impl16RealmCoordinator12commit_writeERNS_5RealmEb + 100 12 lanote 0x0000000104839244 _ZN5realm5Realm18commit_transactionEv + 140 13 lanote 0x00000001047433c8 _ZN5realm2js3JSI12_GLOBALN_124Realm_commit_transactionERN8facebook3jsi7RuntimeERKNS4_5ValueEPS8_m + 72 14 lanote 0x000000010584d1a4 _ZNKSt3110function12value_funcIFN8facebook3jsi5ValueERNS3_7RuntimeERKS4_PS7_mEEclB7v160006ES6_S8_OS9_Om + 112 15 lanote 0x000000010584cbc0 _ZNKSt318functionIFN8facebook3jsi5ValueERNS2_7RuntimeERKS3_PS6_mEEclES5_S7_S8_m + 72 16 lanote 0x000000010584c3bc _ZZN8facebook3jsc10JSCRuntime30createFunctionFromHostFunctionERKNS_3jsi10PropNameIDEjNSt318functionIFNS2_5ValueERNS2_7RuntimeERKS8_PSB_mEEEEN20HostFunctionMetadata4callEPK15OpaqueJSContextP13OpaqueJSValueSL_mPKPKSKPSN

Steps & Code to Reproduce

It happened randomly

ironage commented 2 weeks ago

This has likely been fixed by https://github.com/realm/realm-core/pull/7698 please try a version that includes core >= v14.10.0