emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.59k stars 418 forks source link

CocoaMQTT.swift line 2147483647 @objc CocoaMQTT.__ivar_destroyer #427

Closed tunnaakshit closed 2 years ago

tunnaakshit commented 2 years ago

App is crashing for iOS 15 and 14 version

crash logs: Crashed: com.apple.root.default-qos 0 libobjc.A.dylib 0x2430 objc_release + 16 1 CocoaMQTT 0x70c0 @objc CocoaMQTT.ivar_destroyer + 4429246656 (CocoaMQTT.swift:4429246656) 2 libobjc.A.dylib 0x6f10 object_cxxDestructFromClass(objc_object, objc_class) + 112 3 libobjc.A.dylib 0x3f08 objc_destructInstance + 88 4 libobjc.A.dylib 0xcdbc _objc_rootDealloc + 52 5 CocoaMQTT 0x7068 CocoaMQTT.__deallocating_deinit + 251 (CocoaMQTT.swift:251) 6 CocoaMQTT 0x7090 @objc CocoaMQTT.deallocating_deinit + 4429246608 (:4429246608) 7 Dapp 0x2bcc4 MqttService.initialiseClient() + 41 (MqttService.swift:41) 8 Dapp 0x2badc closure #1 in MqttService.setupEnvironment() + 26 (MqttService.swift:26) 9 Dapp 0x2da48 closure #2 in MqttService.getDevicePlatformConfig(completionBlock:) + 158 (MqttService.swift:158) 10 Dapp 0x6f958 thunk for @escaping @callee_guaranteed () -> () + 4373936472 (:4373936472) 11 libdispatch.dylib 0x63194 _dispatch_call_block_and_release + 24 12 libdispatch.dylib 0x64198 _dispatch_client_callout + 16 13 libdispatch.dylib 0x3b3bc _dispatch_queue_override_invoke + 712 14 libdispatch.dylib 0x482e0 _dispatch_root_queue_drain + 328 15 libdispatch.dylib 0x48abc _dispatch_worker_thread2 + 160 16 libsystem_pthread.dylib 0x4e48 _pthread_wqthread + 224 17 libsystem_pthread.dylib 0x49f0 start_wqthread + 8

Kindly check Thanks

leeway1208 commented 2 years ago

Hi ,Which tag or release do you use?

JaylinYu commented 2 years ago

Could you provide us with more detailed information?

  1. What action caused the crash.
  2. Which version of CocoaMQTT are you using.
tunnaakshit commented 2 years ago

Hi The crash happened during the initialisation of the client. We were using version 1.1.3 Now we have upgraded it to version 2.0.2 Will check in the next release if the crash got resolved or not.

Thanks Akshit Sharma

On Mon, Dec 13, 2021 at 12:51 PM JaylinYu @.***> wrote:

Could you provide us with more detailed information?

  1. What action caused the crash.
  2. Which version of CocoaMQTT are you using.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emqx/CocoaMQTT/issues/427#issuecomment-992177173, or unsubscribe https://github.com/notifications/unsubscribe-auth/APHEWJWKCRV5GZKW4EBJF23UQWNGFANCNFSM5J5HIV2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

leeway1208 commented 2 years ago

@tunnaakshit If you have the problem in the newest version, please let us know.😄😄

tunnaakshit commented 2 years ago

Will do, thanks!

On Fri, Dec 17, 2021 at 11:20 AM leeway @.***> wrote:

@tunnaakshit https://github.com/tunnaakshit If you have the problem in the newest version, please let us know.😄😄

— Reply to this email directly, view it on GitHub https://github.com/emqx/CocoaMQTT/issues/427#issuecomment-996456177, or unsubscribe https://github.com/notifications/unsubscribe-auth/APHEWJW6EB47DVCRGKV5O3DURLFRPANCNFSM5J5HIV2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>