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

Crash on Hot Restart since 0.3.2 #858

Closed
Navil opened this issue Aug 19, 2022 · 3 comments
Closed

Crash on Hot Restart since 0.3.2 #858

Navil opened this issue Aug 19, 2022 · 3 comments
Assignees

Comments

@Navil
Copy link

Navil commented Aug 19, 2022

Since the upgrade to 0.3.2+beta I get the following crash when hot realoding while being logged in.

F/libc    ( 6603): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xbc in tid 6675 (1.ui), pid 6603 (com.example.app)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.190920.001/5891938:user/release-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2022-08-19 10:08:27-0300
pid: 6603, tid: 6675, name: 1.ui  >>> com.example.app <<<
uid: 10143
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xbc
Cause: null pointer dereference
    eax 000000bc  ebx e746cc34  ecx 000000bc  edx 00000000
    edi aa1a23fc  esi 00000000
    ebp b9e3b2c8  esp b9e3b290  eip e746272f
backtrace:
      #00 pc 0011b72f  /apex/com.android.runtime/lib/bionic/libc.so (pthread_mutex_lock+31) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
      #01 pc 00814eb0  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::mutex::lock()+32) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #02 pc 003ee9ac  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm::SyncManager::unregister_session(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&)+62) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #03 pc 003f75ac  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm::SyncSession::close(realm::util::CheckedUniqueLock)+222) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #04 pc 003f8342  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm::SyncSession::did_drop_external_reference()+160) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #05 pc 003fe25a  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm::SyncSession::ExternalReference::~ExternalReference()+36) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #06 pc 003fe19b  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::__shared_ptr_emplace<realm::SyncSession::ExternalReference, std::__ndk1::allocator<realm::SyncSession::ExternalReference>>::__on_zero_shared()+35) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #07 pc 00814c2f  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::__shared_weak_count::__release_shared()+47) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #08 pc 00337cdb  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::shared_ptr<realm::SyncSession>::~shared_ptr()+39) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #09 pc 003bc9ba  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm::_impl::RealmCoordinator::~RealmCoordinator()+272) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #10 pc 003c2943  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::__shared_ptr_emplace<realm::_impl::RealmCoordinator, std::__ndk1::allocator<realm::_impl::RealmCoordinator>>::__on_zero_shared()+35) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #11 pc 00814c2f  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::__shared_weak_count::__release_shared()+47) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #12 pc 00383c77  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::shared_ptr<realm::_impl::RealmCoordinator>::~shared_ptr()+39) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #13 pc 00383d7b  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm::Realm::~Realm()+213) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #14 pc 00389dd5  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::__shared_ptr_emplace<realm::Realm, std::__ndk1::allocator<realm::Realm>>::__on_zero_shared()+35) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #15 pc 00814c2f  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::__shared_weak_count::__release_shared()+47) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #16 pc 003115eb  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (std::__ndk1::shared_ptr<realm::Realm>::~shared_ptr()+39) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #17 pc 0034aeac  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm::Object::~Object()+44) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #18 pc 003145ae  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm_object::~realm_object()+36) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #19 pc 003292e6  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/librealm_dart.so (realm_release+36) (BuildId: 067d9eb0740dc4998816b76a4b8471de111f1c75)
      #20 pc 01afa2ce  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/libflutter.so (BuildId: 9197c52dd6a1ea4a517099f1a8691b35298cd1ba)
      #21 pc 01a59678  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/libflutter.so (BuildId: 9197c52dd6a1ea4a517099f1a8691b35298cd1ba)
      #22 pc 01a5b121  /data/app/com.example.app-DSmEZ8JwP7rwJHGdxrOkkw==/lib/x86/libflutter.so (BuildId: 9197c52dd6a1ea4a517099f1a8691b35298cd1ba)
      #23 pc 000a29ff  [anon:libc_malloc]
Lost connection to device.
Performing hot restart...  

Edit: I am refering to hot restart, not hot reload (used the wrong term in the issue - title is correct tho)

@nirinchev
Copy link
Member

Hey, thanks for the report! We've also started seeing this and I reported it as a Core bug here. We're going to investigate and come back to you when we have more information.

In the meantime, the following information will help us narrow down the problem:

  1. Do you get this on every hot reload or only occasionally?
  2. What version did you upgrade from and did you ever get it with the previous version of the dart SDK?

@Navil
Copy link
Author

Navil commented Aug 19, 2022

Hey, thanks for the report! We've also started seeing this and I reported it as a Core bug here. We're going to investigate and come back to you when we have more information.

In the meantime, the following information will help us narrow down the problem:

  1. Do you get this on every hot reload or only occasionally?
  2. What version did you upgrade from and did you ever get it with the previous version of the dart SDK?
  1. I get the crash every single time when I hot restart (while being logged in).
  2. I am using 0.3.2 now. Used 0.3.1 before and never experienced that issue.

I also just tested version 0.4.0 and the app crashed there constantly on hot restart too. Hot reload seems to work.

@Navil
Copy link
Author

Navil commented Oct 10, 2022

Works since 0.5.0+beta

@Navil Navil closed this as completed Oct 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants