Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Building angular.dart inside of google's dart docker container crashes #1773

Closed
metalmatze opened this issue Aug 8, 2017 · 3 comments
Closed

Comments

@metalmatze
Copy link

Hey,
I'm trying to build my UI within the google/dart docker container. I use to drone/drone to schedule the builds, but in the end it's a simple docker container.

I'm not sure if the digitalocean machine with 1GB of memory is just not enough? I don't really expect that to be to less.

+ pub get
...
Changed 68 dependencies!
Precompiling dependencies...
Loading source assets...
Loading angular2/transform/codegen and dart_to_js_script_rewriter transformers...
Failed to compile a snapshot to .pub/transformers/transformers.snapshot:
../../runtime/vm/os_thread_linux.cc: 284: error: pthread error: 16 (Device or resource busy)
Aborting re-entrant request for stack trace.
Precompiled angular2, angular_test, dart_style, dart_to_js_script_rewriter and intl.
Precompiling executables...
Loading source assets...
Loading angular2/transform/codegen transformers...

  Command: /usr/lib/dart/bin/dart --snapshot=./.pub/bin/test/test.dart.snapshot http://localhost:36686/test.dart
�
  Command: /usr/lib/dart/bin/dart --snapshot=./.pub/bin/angular_test/angular_test.dart.snapshot http://localhost:34702/angular_test.dart
+ pub build
Loading source assets...
Loading angular2/transform/codegen, test/pub_serve and dart_to_js_script_rewriter transformers...
Failed to compile a snapshot to .pub/transformers/transformers.snapshot:
../../runtime/vm/os_thread_linux.cc: 284: error: pthread error: 16 (Device or resource busy)
Aborting re-entrant request for stack trace.
Loading angular2 and angular2/transform/reflection_remover transformers...
Building angular_app...
[Info from Dart2JS]:
Compiling angular_app|web/main.dart...
../../third_party/tcmalloc/gperftools/src/central_freelist.cc:333] tcmalloc: allocation failed 139264 
../../runtime/vm/zone.cc: 51: error: Out of memory.
Dumping native stack trace for thread 103
  [0x0000000000b6dd87] dart::Profiler::DumpStackTrace(bool)
  [0x0000000000b6dd87] dart::Profiler::DumpStackTrace(bool)
  [0x0000000000847726] dart::DynamicAssertionHelper::Fail(char const*, ...)
  [0x0000000000c13635] dart::Zone::AllocateLargeSegment(long)
  [0x00000000009a59cc] dart::FlowGraphTypePropagator::FlowGraphTypePropagator(dart::FlowGraph*)
  [0x00000000009a534e] dart::FlowGraphTypePropagator::Propagate(dart::FlowGraph*)
  [0x0000000000989a91] Unknown symbol
  [0x000000000099539f] Unknown symbol
  [0x000000000099111d] Unknown symbol
  [0x0000000000990d58] dart::FlowGraphInliner::Inline()
  [0x00000000008d6e58] dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)
  [0x00000000008d81ce] Unknown symbol
  [0x00000000008d8fe6] dart::Compiler::CompileOptimizedFunction(dart::Thread*, dart::Function const&, long)
  [0x00000000008da8b6] dart::BackgroundCompiler::Run()
  [0x0000000000c07cad] dart::ThreadPool::Worker::Loop()
  [0x0000000000c07b5a] dart::ThreadPool::Worker::Main(unsigned long)
  [0x0000000000ab8619] Unknown symbol
-- End of DumpStackTrace
Killed

Thanks!

@zoechi
Copy link
Contributor

zoechi commented Aug 10, 2017

This repository is about Angular 1
Angular 2/3/4 are in github.com/dart-lang/angular
I don't see how this out of memory error is related to Angular anyway.
You just need to assign more memory to the Docker runtime.
Have you tried to run it locally instead of on Drone?

@metalmatze
Copy link
Author

Yes, I have tried running it locally and there it works just fine...
Moving to dart-lang/sdk#28549 too.

@zoechi
Copy link
Contributor

zoechi commented Sep 10, 2017

You saw the simple workaround in dart-lang/sdk#28549 to overwrite the exit code to prevent the docker build from stopping?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants