GithubHelp home page GithubHelp logo

Comments (6)

yaglo avatar yaglo commented on July 17, 2024 5

After some digging I've found that it's the <Never> that is expected to be a Codable for _ActorRef<Never> and _ResolveContext<Never> is causing the issue.

If you add extension Never: Codable {} anywhere in DistributedCluster, the problem goes away on macOS 13 (13.6.2 in my case).

My guess is that even though SE-0396 was implemented in Swift 5.9, the runtime on macOS 13 doesn't have it, so it leads to undefined behaviour and the program crashing.

from swift-distributed-actors.

akbashev avatar akbashev commented on July 17, 2024

Note that I'm not getting any crashes on Xcode 14 + latest Swift 5.9 dev snapshot.
So could be problem on Swift side and already fixed. 🤔

from swift-distributed-actors.

ktoso avatar ktoso commented on July 17, 2024

Thanks I'll see if I can track that down - we fixed a missing lock around there, maybe I missed something

from swift-distributed-actors.

akbashev avatar akbashev commented on July 17, 2024

Just FYI, checked latest Xcode 15b7 15A5229h and error is still there.

from swift-distributed-actors.

akbashev avatar akbashev commented on July 17, 2024

Hm, not sure how to test it now as all of my devices been updated to macOS 14 🥲
Will keep it for a while and then can be closed I think...

from swift-distributed-actors.

yaglo avatar yaglo commented on July 17, 2024

Getting the same error when running from the command line but not when running from Xcode.

from swift-distributed-actors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.