swift-nio: Version 2.60.0 causing app to crash when launched on iOS 15.5 simulator
Expected behavior
When running our iOS app on an iOS 15.5 simulator with the swift-nio package version 2.60.0
, our app launches and runs as expected.
Actual behavior
When running on a iOS 15.5 simulator while using swift-nio 2.60.0, the app launches and then immediately crashes with Thread 1: signal SIGABRT
When run on a iOS 16.4 simulator the app runs as expected.
Workaround
Downgrade to swift-nio version 2.59.0
and the app runs fine on iOS 15.5 simulators.
System & version information
OS System - MacOS 13.6 (22G120) Processer type - Attempted on both Intel and Apple-silicon Xcode - 14.3.1 (14E300c) Xcode simulators - iPhone 12 | iOS 15.5 & iOS 16.4
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 2
- Comments: 26 (14 by maintainers)
Commits related to this issue
- Back out new typed HTTP protocol upgrader # Motivation We got reports in https://github.com/apple/swift-nio/issues/2574 that our new typed HTTP upgrader are hitting a Swift compiler bug which manifes... — committed to FranzBusch/swift-nio by FranzBusch 8 months ago
- Back out new typed HTTP protocol upgrader (#2579) # Motivation We got reports in https://github.com/apple/swift-nio/issues/2574 that our new typed HTTP upgrader are hitting a Swift compiler bug whic... — committed to apple/swift-nio by FranzBusch 8 months ago
We just released a new version that backs out the new API: https://github.com/apple/swift-nio/releases/tag/2.61.0. Please confirm that this fixes the crash
Same problem on macOS 12.3
I just hit this, and my crash was on device. Rolling back to 2.59.0 fixed the issue for me as well.
@dnadoba this has a stack trace
but it seems to be crashing in dyld. @MatthewTHFisher this seems unrelated to SwiftNIO, it’s crashing in dyld before your binary could be loaded. Can you try again? Maybe with a clean build?