- Dart SDK Version (
dart --version): 2.2.0
- Whether you are using Windows, MacOSX, or Linux (if applicable): MacOSX and Linux
I’ve been using dart server for a few months now and really enjoying it, and have recently rolled it out into production for a project with a relatively small user base. For the most part, things are going smoothly! However, I think I’ve hit what may be a rough edge at the intersection of isolates + “shared” HttpServer functionality (think “cluster” functionality from node.js). The shortest way to put it is as follows: when one isolate (running one of multiple “shared” HttpServer instances) exits, a SEPARATE and seemingly RANDOM other isolate (also running a “shared” HttpServer instance on the same port) dies. With
--enable-asserts, it’s possible to see that that other isolate is asserting on
I’ve created a stripped down repository containing the minimum code necessary for repro: https://github.com/emeyex/dart-iso-server-crash-repro.
I’m not sure if this should be multiple issues, or if that assert failure is the root of the hard crash as well. Please let me know if I can provide any more info.