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

AWS IOT AWSIoTMQTTClient crash #1586

Closed Wanxujie closed 3 years ago

Wanxujie commented 5 years ago

Describe the bug I am facing an issue cause with IoT open streams

libobjc.A.dylib objc_msgSend + 16
1 CoreFoundation __inputStreamCallbackFunc + 56
2 CoreFoundation __signalEventSync + 216
3 CoreFoundation __cfstream_solo_signalEventSync + 244
4 CoreFoundation __CFStreamSignalEvent + 308
5 CFNetwork SocketStream::dispatchSignalFromSocketCallbackUnlocked(SocketStreamSignalHolder*) + 64
6 CFNetwork SocketStream::socketCallback(CFSocket*, unsigned long, CFData const, void const) + 148
7 CFNetwork SocketStream::_SocketCallBack_stream(CFSocket*, unsigned long, CFData const, void const, void*) + 88
8 CoreFoundation ___CFSocketPerformV0 + 668
9 CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
10 CoreFoundation ___CFRunLoopDoSource0 + 88
11 CoreFoundation ___CFRunLoopDoSources0 + 176
12 CoreFoundation ___CFRunLoopRun + 1040
13 CoreFoundation CFRunLoopRunSpecific + 436
14 Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
15 AWSIoT -[AWSIoTMQTTClient openStreams:] + 996
16 Foundation _NSThreadstart__ + 1040
17 libsystem_pthread.dylib __pthread_body + 128
18 libsystem_pthread.dylib _pthread_start + 48

To Reproduce Steps to reproduce the behavior:

  1. App connects WiFi(internet) to connect IoT
  2. App changes the WiFi to a device's AccessPoint (not internet)
  3. App setup a TCP socket to the device in AccessPoint
  4. device's AccessPoint breakdown and App auto reconnect the WiFi (internet)
  5. IoT will auto be changed to disconnect、reconnect、error or other states in SDK
  6. It will sometimes be crashed in AWSIoTMQTTClient openStreams

Which AWS service(s) are affected? AWS IoT

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

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

Environment(please complete the following information):

Device Information (please complete the following information):

Additional context Add any other context about the problem here.

minbi commented 5 years ago

Hi @Wanxujie ,

Thanks for bringing this to our attention.

@desokroshan Can you see if you have any context on this issue?

Wanxujie commented 5 years ago

@minbi Is anyone help here?

steelzeh commented 5 years ago

@cbommas Our customers are experiencing this issue aswell. Screenshot 2019-07-23 at 15 29 38

Happening on the latest release.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open for 14 days with no activity. Please, provide an update or it will be automatically closed in 7 days.

github-actions[bot] commented 3 years ago

This issue is being automatically closed due to inactivity. If you believe it was closed by mistake, provide an update and re-open it.