Zhao_Xin
(Zhao Xin)
November 29, 2021, 10:40am
1
swift run
....
Working copy of GitHub - apple/swift-nio-extras: Useful code around SwiftNIO. resolved at 1.10.2
Creating working copy for GitHub - apple/swift-log: A Logging API for Swift
Working copy of GitHub - apple/swift-log: A Logging API for Swift resolved at 1.4.2
[1529/1559] Compiling Vapor Application+HTTP+Client.swift
error: fatalError
Any idea?
Ubuntu 20.04.
Just follow the official tutorial. https://docs.vapor.codes/4.0/hello-world/
0xTim
(Tim)
December 1, 2021, 4:23pm
2
What's the full output? It looks like a lot is cut off.
Additionally which version of Swift is this using and what's the environment like? The compiler requires a lot of memory so if you're compiling on a DO machine for instance that has <2GB RAM and no swap enabled the compiler can just die
2 Likes
Zhao_Xin
(Zhao Xin)
December 2, 2021, 2:13am
3
Yes. That was because lack of memory. The issue was fixed after I created a 1GB swap file.
opened 11:22AM - 13 Sep 21 UTC
closed 02:39PM - 13 Sep 21 UTC
bug
ubuntu 20.04 LTS
Swift version 5.4.2
vapor --version
framework: 4.48.4
toolb… ox: main (7575fe2)
====================
when I run the command: "Swift run"
==> output error:
Compiling Vapor Demangler. swift
error: fatalError
=========================
When run with "vapor run"
===> output error:
VaporToolbox/exec.swift:55: Fatal error: result 1
Illegal instruction (core dumped)
(Note: same source code, did build successfully in my Macos )
how to create a swapfile