Skip to content

Crash when making a network request on Android: _MultiHandle deallocated with non-zero retain count #5203

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

Open
marcprux opened this issue Apr 19, 2025 · 1 comment

Comments

@marcprux
Copy link

2025-04-19 13:04:34.678  6468-6518  SwiftRuntime            com.mediquo.main                     A  Object 0xb400007ab8eaf830 of class _MultiHandle deallocated with non-zero retain count 2. This object's deinit, or something called from it, may have created a strong reference to self which outlived deinit, resulting in a dangling reference.
2025-04-19 13:04:34.680  6468-6518  libc                    com.mediquo.main                     A  Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6518 (DefaultDispatch), pid 6468 (om.mediquo.main)
---------------------------- PROCESS STARTED (6544) for package com.mediquo.main ----------------------------
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A  Cmdline: com.mediquo.main
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A  pid: 6468, tid: 6518, name: DefaultDispatch  >>> com.mediquo.main <<<
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A        #01 pc 000000000049263c  /data/app/~~E2lsFWzY9ZTrU3jHSsDJHA==/com.mediquo.main-kjVVjmLgYOyCzqsoRCrrWg==/base.apk!libswiftCore.so (offset 0x2ab8000) (swift::fatalErrorv(unsigned int, char const*, std::__va_list)+136) (BuildId: f673ad45c51559678b698fe2be1e9e17c5288139)
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A        #02 pc 00000000004926a4  /data/app/~~E2lsFWzY9ZTrU3jHSsDJHA==/com.mediquo.main-kjVVjmLgYOyCzqsoRCrrWg==/base.apk!libswiftCore.so (offset 0x2ab8000) (swift::fatalError(unsigned int, char const*, ...)+92) (BuildId: f673ad45c51559678b698fe2be1e9e17c5288139)
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A        #03 pc 0000000000498590  /data/app/~~E2lsFWzY9ZTrU3jHSsDJHA==/com.mediquo.main-kjVVjmLgYOyCzqsoRCrrWg==/base.apk!libswiftCore.so (offset 0x2ab8000) (swift_deallocClassInstance.cold.1+40) (BuildId: f673ad45c51559678b698fe2be1e9e17c5288139)
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A        #04 pc 0000000000497060  /data/app/~~E2lsFWzY9ZTrU3jHSsDJHA==/com.mediquo.main-kjVVjmLgYOyCzqsoRCrrWg==/base.apk!libswiftCore.so (offset 0x2ab8000) (swift_deallocClassInstance+84) (BuildId: f673ad45c51559678b698fe2be1e9e17c5288139)
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A        #05 pc 0000000000496ffc  /data/app/~~E2lsFWzY9ZTrU3jHSsDJHA==/com.mediquo.main-kjVVjmLgYOyCzqsoRCrrWg==/base.apk!libswiftCore.so (offset 0x2ab8000) (_swift_release_dealloc+24) (BuildId: f673ad45c51559678b698fe2be1e9e17c5288139)
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A        #06 pc 0000000000497c9c  /data/app/~~E2lsFWzY9ZTrU3jHSsDJHA==/com.mediquo.main-kjVVjmLgYOyCzqsoRCrrWg==/base.apk!libswiftCore.so (offset 0x2ab8000) (bool swift::RefCounts<swift::SideTableRefCountBits>::doDecrementSlow<(swift::PerformDeinit)1>(swift::SideTableRefCountBits, unsigned int)+172) (BuildId: f673ad45c51559678b698fe2be1e9e17c5288139)
2025-04-19 13:04:35.127  6542-6542  DEBUG                   crash_dump64                         A        #07 pc 00000000000dcfa8  /data/app/~~E2lsFWzY9ZTrU3jHSsDJHA==/com.mediquo.main-kjVVjmLgYOyCzqsoRCrrWg==/base.apk!libFoundationNetworking.so (offset 0x24c000) ($s20FoundationNetworking10URLSessionCfd+64) (BuildId: ee66ea73a79ea567a89e8e0909d187c9a0f67af2)
@marcprux
Copy link
Author

Possibly related: #4791 and swiftlang/swift-corelibs-libdispatch#609

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant