aws-amplify / aws-sdk-ios

AWS SDK for iOS. For more information, see our web site:
https://aws-amplify.github.io/docs
Other
1.68k stars 885 forks source link

iOS crash in APP enterbackground and close MQTT #3625

Closed winfast closed 3 years ago

winfast commented 3 years ago

Describe the bug A clear and concise description of what the bug is. Please be as detailed as possible and help us help you.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Observed Behavior

Expected Behavior A clear and concise description of what you expected to happen.

Stack Trace Please provide a stack trace if applicable e.g. a crash is occurring.

Code Snippet Please provide a snippet of the code causing the issue or how you are using the service that has the bug.

Unique Configuration If you are reporting an issue with a unique configuration or where configuration can make a difference in code execution (i.e. Cognito) please provide your configuration. Please make sure to obfuscate sensitive information from the configuration before posting.

**Areas of the SDK you are using (AWSCore, AWSIOT)

Screenshots If applicable, add screenshots to help explain your problem.

Environment(please complete the following information):

Device Information (please complete the following information):

Additional context Add any other context about the problem here like your specific use case.

Relevant Console Output In some cases, it might be helpful to add any logs from your console that better help you tell the story of this issue. You can easily enable logging in your app by putting the following code in your app delegate.


<img width="1220" alt="截屏2021-06-05 下午4 56 30" src="https://user-images.githubusercontent.com/7712917/120886143-04198800-c61f-11eb-94b2-e31f04627548.png">

#11 Thread
AWSIoT.  -[AWSIoTMQTTClient cleanUpToDecoderStream] + 108

AWSIoT   -[AWSIoTMQTTClient webSocket:didCloseWithCode:reason:wasClean:] + 204

AWSIoT  __41-[AWSSRWebSocket safeHandleEvent:stream:]_block_invoke_2 + 148

libdispatch.dylib  __dispatch_call_block_and_release + 32

libsystem_pthread.dylib
__pthread_wqthread + 216
royjit commented 3 years ago

Closing this as duplicate, please add more details to this thread - https://github.com/aws-amplify/aws-sdk-ios/issues/3303