Closed RossComputerGuy closed 1 month ago
Summary: The user is experiencing a crash when building Flutter on an Ampere Altra system with a 64k page size. The issue appears to be related to Dart's inability to handle large page sizes, resulting in a failure to map the snapshot file.
//cc @rmacnak-google
This was fixed in https://dart-review.googlesource.com/c/sdk/+/368525.
Please try Flutter 3.24 or later.
When building Flutter on my Ampere Altra running NixOS and using a 64k page size, I get this scary abort:
When I build Flutter applications, I get no errors and no messages to the terminal at all. This seems like Dart isn't set up to handle a 64k page size which my system uses for better compiling performance. Meanwhile, Flutter and Dart compile easily on my MBP running NixOS which is using a 16k page size. In this case, I was building/using Flutter 3.22.0 but it seems every version of Flutter in Nixpkgs has this problem. It's best we get this issue fixed as more hardware which utilizes ARM may be running large page sizes (beyond 4k or even 16k).
To reproduce, use
CONFIG_ARM64_64K_PAGES
in the kernel config and try building Flutter or try building any Flutter applications.