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

Realm file decryption failed #1450

Closed
oleliabo opened this issue Sep 14, 2021 · 3 comments
Closed

Realm file decryption failed #1450

oleliabo opened this issue Sep 14, 2021 · 3 comments
Labels
More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community

Comments

@oleliabo
Copy link

oleliabo commented Sep 14, 2021

Describe the bug
Get exception in Realm studio window when opening encrypted realm file.

To Reproduce
Steps to reproduce the behavior:

  1. Open file
  2. Enter key
  3. See error

Expected behavior
Open datadase or error dialog.

Screenshots
Attached.

Versions:

  • OS: Mac
  • Studio Versjon 5.0.3 (5.0.3.19)

Additional context

Unable to open a realm at path '/Users/xxx/Library/Developer/CoreSimulator/Devices/nnn/data/Containers/Data/Application/mmm/Documents/default.realm': Realm file decryption failed Path:Exception backtrace:
0 .io.realm.realm-studio.CVlf2x 0x0000000115be5191 _ZN5realm15InvalidDatabaseC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ + 49
1 .io.realm.realm-studio.CVlf2x 0x0000000115baf7c0 _ZN5realm9SlabAlloc11attach_fileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERNS0_6ConfigE + 3392
2 .io.realm.realm-studio.CVlf2x 0x0000000115be761c _ZN5realm2DB7do_openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbbNS_9DBOptionsE + 3692
3 .io.realm.realm-studio.CVlf2x 0x0000000115bea6c3 _ZN5realm2DB4openERNS_11ReplicationENS_9DBOptionsE + 243
4 .io.realm.realm-studio.CVlf2x 0x0000000115beef56 _ZN5realm2DB6createERNS_11ReplicationENS_9DBOptionsE + 342
5 .io.realm.realm-studio.CVlf2x 0x0000000115836735 _ZN5realm5_impl16RealmCoordinator7open_dbEv + 1277
6 .io.realm.realm-studio.CVlf2x 0x00000001158357a0 _ZN5realm5_impl16RealmCoordinator12do_get_realmENS_5Realm6ConfigERNSt3__110shared_ptrIS2_EENS_4util8OptionalINS_9VersionIDEEERNS8_17CheckedUniqueLockE + 62
7 .io.realm.realm-studio.CVlf2x 0x000000011583562c _ZN5realm5_impl16RealmCoordinator9get_realmENS_5Realm6ConfigENS_4util8OptionalINS_9VersionIDEEE + 202
8 .io.realm.realm-studio.CVlf2x 0x000000011581f1c0 _ZN5realm5Realm16get_shared_realmENS0_6ConfigE + 128
9 .io.realm.realm-studio.CVlf2x 0x00000001157186b2 _ZN5realm2js10RealmClassINS_4node5TypesEE19create_shared_realmEN4Napi3EnvENS_5Realm6ConfigEbONSt3__13mapINS9_12basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEENSA_ISG_NS0_9ProtectedINS5_5ValueEEENS9_4lessISG_EENSE_INS9_4pairIKSG_SJ_EEEEEESL_NSE_INSM_ISN_SQ_EEEEEEONSA_ISG_NSH_INS5_8FunctionEEESL_NSE_INSM_ISN_SW_EEEEEE + 234
10 .io.realm.realm-studio.CVlf2x 0x0000000115716e89 _ZN5realm2js10RealmClassINS_4node5TypesEE11constructorEN4Napi3EnvENS5_6ObjectERNS0_9ArgumentsIS3_EE + 331
11 .io.realm.realm-studio.CVlf2x 0x000000011571365b _ZN5realm4node10ObjectWrapINS_2js10RealmClassINS0_5TypesEEEE20constructor_callbackERKN4Napi12CallbackInfoE + 135
12 .io.realm.realm-studio.CVlf2x 0x0000000115715e58 _ZN5realm4node13WrappedObjectINS_2js10RealmClassINS0_5TypesEEEEC2ERKN4Napi12CallbackInfoE + 128
13 .io.realm.realm-studio.CVlf2x 0x0000000115715d2d _ZZN4Napi10ObjectWrapIN5realm4node13WrappedObjectINS1_2js10RealmClassINS2_5TypesEEEEEE26ConstructorCallbackWrapperEP10napi_env__P20napi_callback_info__ENKUlvE_clEv + 67
14 .io.realm.realm-studio.CVlf2x 0x0000000115715aa3 _ZN4Napi10ObjectWrapIN5realm4node13WrappedObjectINS1_2js10RealmClassINS2_5TypesEEEEEE26ConstructorCallbackWrapperEP10napi_env__P20napi_callback_info__ + 71
15 Electron Framework 0x000000010af7c63a napi_create_function + 858
16 Electron Framework 0x000000010642ecec _ZN2v88internal9Accessors12MakeAccessorEPNS0_7IsolateENS0_6HandleINS0_4NameEEEPFvNS_5LocalINS_4NameEEERKNS_20PropertyCallbackInfoINS_5ValueEEEEPFvS9_NS7_ISB_EERKNSA_INS_7BooleanEEEE + 16844
17 Electron Framework 0x000000010642deb8 _ZN2v88internal9Accessors12MakeAccessorEPNS0_7IsolateENS0_6HandleINS0_4NameEEEPFvNS_5LocalINS_4NameEEERKNS_20PropertyCallbackInfoINS_5ValueEEEEPFvS9_NS7_ISB_EERKNSA_INS_7BooleanEEEE + 13208
18 Electron Framework 0x000000010642d79f _ZN2v88internal9Accessors12MakeAccessorEPNS0_7IsolateENS0_6HandleINS0_4NameEEEPFvNS_5LocalINS_4NameEEERKNS_20PropertyCallbackInfoINS_5ValueEEEEPFvS9_NS7_ISB_EERKNSA_INS_7BooleanEEEE + 11391
19 El
![realm-studio-screenshot](https://user-images.githubusercontent.com/38428667/133287042-6b9bcfc6-88e1-42ed-8c16-8f8861502a4d.jpg)
ectron Framework 0x0000000106e30b59 _ZN2v88internal20SetupIsolateDelegate9SetupHeapEPNS0_4HeapE + 501145.
@kneth
Copy link
Member

kneth commented Sep 15, 2021

@oleliabo Which SDK and which version did you use to create the Realm file?

Realm Studio v5.0.3 can only read files created by SDK versions < 10, and for encrypted Realms, Studio might fail ungracefully if the file format is too new.

@oleliabo
Copy link
Author

Which SDK and which version did you use to create the Realm file?

I used realm-js 10.x so I guess that explains it then.

@sync-by-unito sync-by-unito bot added the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label Sep 15, 2021
@kneth
Copy link
Member

kneth commented Sep 16, 2021

Yes, please install MongoDB Realm Studio version 11. I close the issue but don't hesitate to reopen if using a recent version doesn't solve it.

@kneth kneth closed this as completed Sep 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community
Projects
None yet
Development

No branches or pull requests

2 participants