-
Notifications
You must be signed in to change notification settings - Fork 19
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 after initializing Tuya SDK #40
Comments
Post the contents of podfile.lock |
Thanks! |
There is no problem with the version of CocoaAsyncSocket. |
It always crashes when there is a paired device. |
Can provide me with a complete Console logs ? I have no idea now. |
Hi maybe you can make simple variation with only pod tuya init? |
It works when running in a different wifi than the device and it also works in the simulator. I will attach more detailed logs shortly, thank you. |
These are Xcode console logs with [[TuyaSmartSDK sharedInstance] setDebugMode:YES]; are these the logs you need? how can I provide you with more detailed logs? Tuya-Error-EXC_BAD_ACCESS-GCDAsyncSocket-doReadData-2.txt Thanks |
Crash happens in CocoaAsyncSocket. |
These are GCDAsyncSocket logs before crashing
We solved this issue by changing line 5264 from GCDAsyncSocket.m as shown below
all the humidifier controls seem to be working can you confirm if this is OK? thank you! |
Do you integrate GCDAsyncSocket via pod?Or manual integration? |
We integrate pod "TuyaSmartHomeKit" (GCDAsyncSocket is a Tuya SDK dependency), then we unlock CocoaAsyncSocket in Xcode so we can modify the line that crashes. Is it OK? Thanks |
I haven't encountered any crash in the source code of GCDAsyncSocket in development. |
Hello,
Our app is crashing after initializing Tuya SDK (perhaps from a background thread)
How can we solve it?
Thanks in advance
The text was updated successfully, but these errors were encountered: