-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Starscream version 0.9.3 crashes on iPhone 5 and under #77
Comments
Further inspection reveals this happens consistently on large packets (e.g. 190k~ characters). We haven't witnessed any issue on small packets. |
This sounds like #52. I tested on an iPad 2 with the largest messages possible and it worked properly. What kind of server are you using? |
We use Jetty for the WebSocket server. The issue doesn't happen on all devices, we verified it on the iPod 5 and iPhone 4S/5. |
Interesting. Not sure what would be specific to those devices to cause an issue. I wonder if it is a bug in the Swift compiler. I don't have those devices to test with, but I will try and see if I can reproduce it change the build flags. |
First of all what I suggested in the first comment We had two devices with the same iOS version (I believe 8.1.2) - one failing one not. |
Agreed. The |
Hi Guys! |
@szuniverse I'm not aware of any fix to the issue. However, as I've outlined above, I've worked around the issue by disabling Swift code optimization for the Starscream framework. |
I haven't had any time to look into this. I have gotten a couple of reports with different parameters (works on these devices but not this one), but haven't gotten anything solid to test with yet. It is difficult to reproduce as it requires the same environment and devices as the report. Hopefully will come to an answer something soon, but as @asafhlp said, disabling code optimization is the best bet in the mean time. |
Thanks. If I set set the SWIFT_OPTIMIZATION_LEVEL = "-Onone" everything works fine for me |
The latest code in master might have resolved this. I had some protection that might help with these random crash issues. |
now that Swift 2 is out, might be worth a test to see if the SWIFT_OPTIMIZATION_LEVEL can be set back to normal. |
Any fix for this issue. This issue still happens on iPhone 5 and iPhone 5C |
@Kalluraya No, changing the SWIFT_OPTIMIZATION_LEVEL still seems to be the answer for 32 bit devices. |
The |
Version 0.9.1 used to work with the exact use case.
Possibly related to the change from using 'byteSwapped' to using 'bigEndian' on UInt64.
Can I help further?
The text was updated successfully, but these errors were encountered: