Comments (5)
Also, when I tried to run dart compile
the following error occurred:
root@veyilserver:~/veyilapi# dart compile exe bin/veyilapi.dart
Error: AOT compilation failed
Generating AOT kernel dill failed!
from sdk.
I'm not sure what's causing this failure, especially since I can't reproduce, but it seems like this is something we've encountered before given the comment at this line in pub.
A total shot in the dark, can you try removing .dart_tool
in your project and try again? Running dart compile
with --verbose
might also give us some more information to work with.
@sigurdm, do you have any idea as to what could be going on here?
from sdk.
I've tried discussing this issue on the Dart Community Discord server and from the suggestions, I've ran the dmesg
command which contained this seemingly interesting log:
Out of memory: Killed process 1200 (dart:frontend_s) total-vm:782652kB, anon-rss:219836kB, file-rss:2304kB, shmem-rss:0kB, UID:0 pgtables:728kB oom_score_adj:0
I was running the sever on a low end machine from Digital Ocean (the $4 droplet with 512 MB memory). So, it kind of made sense.
And to your suggestion, yes, dart compile exe bin/veyilapi.dart --verbose
did work for no good reason, while dart compile
and dart run
still failed with the same errors I've mentioned earlier.
Thanks for the suggestion :)
from sdk.
I was running the sever on a low end machine from Digital Ocean (the $4 droplet with 512 MB memory). So, it kind of made sense.
Oh that's interesting! Since this is an error we've encountered on our build infrastructure, there's a good chance this is related to an OOM error.
from sdk.
Hope that's a lead...
The addition of the --verbose
flag does the trick somehow. I'm curious why it doesn't work without this flag. If this is a OOM related error, with and without the verbose flag will have the same effect right? Or am I missing something? Thanks :)
from sdk.
Related Issues (20)
- Analyzer crashing while processing macro usage HOT 9
- [cfe] Enum named `_` issue
- [CP] Fix `dart run` missing fast path when using Flutter HOT 2
- pkg:json - Support for enums
- pkg:json - Support for dynamic values
- Macros: Declaring a constructor on a generic class with an `implements` breaks generation
- [dart2wasm] Better debugging support HOT 3
- Macros: Expose to `FormalParameter` whether a field is `final` or not. HOT 3
- [Wildcard Variables] VM Debugging Support
- Augmentation libraries: Augmented constructor initializers appear to be ignored.
- DART_VM_OPTIONS for self-executables not working! HOT 6
- Macros: expose `isConst` on `ConstructorDeclaration`
- Enum members do not show up in IDE documentation HOT 1
- Generic function can't be passed as an argument HOT 2
- VM crash in `dart_vm_initializer.cc` from HTTP exception. HOT 1
- dart fix --apply generates duplicate entries for debugFillProperties
- `Convert to async function body` refactoring should handle `FutureOr` return types
- Analysis Server crash
- Analyzer Feedback from IntelliJ
- SocketException: Connection reset by peer (OS Error: Connection reset by peer) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.