Coder Social home page Coder Social logo

Comments (5)

HeySreelal avatar HeySreelal commented on May 26, 2024

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.

bkonyi avatar bkonyi commented on May 26, 2024

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.

HeySreelal avatar HeySreelal commented on May 26, 2024

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.

bkonyi avatar bkonyi commented on May 26, 2024

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.

HeySreelal avatar HeySreelal commented on May 26, 2024

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)

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.