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

encryption related crash on ios device #7252

Closed
amondnet opened this issue Jan 12, 2024 · 3 comments · Fixed by #7535
Closed

encryption related crash on ios device #7252

amondnet opened this issue Jan 12, 2024 · 3 comments · Fixed by #7535
Assignees

Comments

@amondnet
Copy link

amondnet commented Jan 12, 2024

SDK and version

SDK: �flutter
Version: 1.6.1

Observations

  • How frequent do the crash occur? always
  • Does it happen in production or during dev/test? dev/test
  • Can the crash be reproduced by you? yes
  • Can you provide instructions for how we can reproduce it?

Crash log / stacktrace

/Users/runner/work/realm-dart/realm-dart/src/realm-core/src/realm/util/encrypted_file_mapping.cpp:1028: [realm-core-13.24.0] Assertion failed: new_size % (1ULL << m_page_shift) == 0
<backtrace not supported on this platform>
!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose2024-01-11 18:32:26.934833+0900 Runner[7905:2699530] /Users/runner/work/realm-dart/realm-dart/src/realm-core/src/realm/util/encrypted_file_mapping.cpp:1028: [realm-core-13.24.0] Assertion failed: new_size % (1ULL << m_page_shift) == 0
<backtrace not supported on this platform>
!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose
* thread #10, name = 'io.flutter.1.ui', stop reason = signal SIGABRT
    frame #0: 0x00000001bb367bbc libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x1bb367bbc <+8>:  b.lo   0x1bb367bd8               ; <+36>
    0x1bb367bc0 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1bb367bc4 <+16>: mov    x29, sp
    0x1bb367bc8 <+20>: bl     0x1bb36360c               ; cerror_nocancel
Target 0: (Runner) stopped.#### Steps & Code to Reproduce

It didn't crash until last week. Since I updated the realm bundled yesterday, it crashes only on ios device. android, ios simulator does not have the problem.

  1. if we are not using encryption, there is no problem.
  2. file size is 48603136 byte
@amondnet
Copy link
Author

#7080

@nielsenko
Copy link
Contributor

Hi @amondnet. We will release fix in next version. We have a few more things to wrap up first, but it should be soon.

@nicola-cab
Copy link
Member

this is a dup of #7322

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants