Skip to content

Bad File Descriptor crash SelectorEventLoop Xcode 14Β #104

@danielbowden

Description

@danielbowden

Hi, v4.1.4 resolved the memoryRebound fatal error on Xcode 14 / iOS 16 that we were seeing but there is also another issue in SelectorEventLoop.

Embassy/SelectorEventLoop.swift:88: Fatal error: 'try!' expression unexpectedly raised an error: Embassy.OSError.ioError(number: 9, message: "Bad file descriptor")
2022-10-28 01:08:39.731236+1100 XYZUITests-Runner[81238:5120563] Embassy/SelectorEventLoop.swift:88: Fatal error: 'try!' expression unexpectedly raised an error: Embassy.OSError.ioError(number: 9, message: "Bad file descriptor")

Screen Shot 2022-10-29 at 1 22 40 am

This looks like it was also raised in envoy/Ambassador#67 but I thought I'd add it here for more visibility.

We've tried cleaning up the event loop vars between tests, sharing a single instance of the server, and various other tweaks but no luck. Our use of Embassy is an almost identical setup to described here: https://envoy.engineering/embedded-web-server-for-ios-ui-testing-8ff3cef513df#.c2i5tx380

Any help or ideas would be appreciated.

Xcode 4.0.1
Embassy 4.1.4
macOS 12.6
Simulator iOS 16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions