onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
242 stars 28 forks source link

Stack overflow while running dcli_install #109

Closed relf108 closed 3 years ago

relf108 commented 4 years ago

Describe the bug A stack overflow exception is thrown when attempting to run ./dcli_install after doing a wget

Logs ./dcli_install
Hang on a tick whilst we install DCli 0.21.0

Installing Dart export PATH=$PATH:/usr/lib/dart/bin | sudo tee -a /root/.bashrc export PATH=$PATH :/root/.pub-cache/bin | sudo tee -a /root/.bashrc You will need to restart your shell for dart to be available Unhandled exception: Stack Overflow

0 _schedulePriorityAsyncCallback (dart:async/schedule_microtask.dart)

1 _rootHandleUncaughtError (dart:async/zone.dart)

2 _RootZone.handleUncaughtError (dart:async/zone.dart)

3 _RootZone.runUnaryGuarded (dart:async/zone.dart)

4 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart)

5 _BufferingStreamSubscription._add (dart:async/stream_impl.dart)

6 _StreamController._add (dart:async/stream_controller.dart)

7 _StreamController.add (dart:async/stream_controller.dart)

8 _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart)

9 Timer._createTimer. (dart:async-patch/timer_patch.dart)

10 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:0)

11 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart)

12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart)

13 _waitForEvent (dart:cli-patch/cli_patch.dart)

14 waitFor (dart:cli/wait_for.dart)

15 waitForEx (package:dcli/src/util/wait_for_ex.dart:0)

16 _Echo.echo (package:dcli/src/functions/echo.dart)

17 echo (package:dcli/src/functions/echo.dart)

18 Terminal.clearLine (package:dcli/src/util/terminal.dart)

19 DartSdk._showProgress (package:dcli/src/script/dart_sdk.dart)

20 _Fetch._sendProgressEvent (package:dcli/src/functions/fetch.dart)

21 _Fetch.download.. (package:dcli/src/functions/fetch.dart:0)

22 _RootZone.runUnary (dart:async/zone.dart)

23 _FutureListener.handleValue (dart:async/future_impl.dart)

24 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:0)

25 Future._propagateToListeners (dart:async/future_impl.dart)

26 Future._completeWithValue (dart:async/future_impl.dart)

27 Future._asyncCompleteWithValue. (dart:async/future_impl.dart)

28 _microtaskLoop (dart:async/schedule_microtask.dart)

29 _startMicrotaskLoop (dart:async/schedule_microtask.dart:0)

30 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart)

31 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart)

32 _waitForEvent (dart:cli-patch/cli_patch.dart)

33 waitFor (dart:cli/wait_for.dart)

34 waitForEx (package:dcli/src/util/wait_for_ex.dart:0)

35 _Echo.echo (package:dcli/src/functions/echo.dart)

... ...

7555 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart)

7556 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart)

7557 _waitForEvent (dart:cli-patch/cli_patch.dart)

7558 waitFor (dart:cli/wait_for.dart)

7559 waitForEx (package:dcli/src/util/wait_for_ex.dart:0)

7560 _Echo.echo (package:dcli/src/functions/echo.dart)

7561 echo (package:dcli/src/functions/echo.dart)

7562 Terminal.clearLine (package:dcli/src/util/terminal.dart)

7563 DartSdk._showProgress (package:dcli/src/script/dart_sdk.dart)

7564 _Fetch._sendProgressEvent (package:dcli/src/functions/fetch.dart)

7565 _Fetch.download.. (package:dcli/src/functions/fetch.dart:0)

7566 _RootZone.runUnary (dart:async/zone.dart)

7567 _FutureListener.handleValue (dart:async/future_impl.dart)

7568 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:0)

7569 Future._propagateToListeners (dart:async/future_impl.dart)

7570 Future._completeWithValue (dart:async/future_impl.dart)

7571 Future._asyncCompleteWithValue. (dart:async/future_impl.dart)

7572 _microtaskLoop (dart:async/schedule_microtask.dart)

7573 _startMicrotaskLoop (dart:async/schedule_microtask.dart:0)

7574 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart)

7575 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart)

7576 _waitForEvent (dart:cli-patch/cli_patch.dart)

7577 waitFor (dart:cli/wait_for.dart)

7578 waitForEx (package:dcli/src/util/wait_for_ex.dart:0)

7579 _Fetch.fetch (package:dcli/src/functions/fetch.dart)

7580 fetch (package:dcli/src/functions/fetch.dart)

7581 DartSdk._fetchDartSdk (package:dcli/src/script/dart_sdk.dart)

7582 DartSdk.installFromArchive (package:dcli/src/script/dart_sdk.dart)

7583 LinuxDCliInstaller.install (package:dcli/src/installers/linux_installer.dart)

7584 PosixMixin.install (package:dcli/src/shell/posix_mixin.dart)

7585 InstallCommand.run (package:dcli/src/script/commands/install.dart)

7586 CommandLineRunner.process (package:dcli/src/script/command_line_runner.dart)

7587 EntryPoint._parseCmdLine (package:dcli/src/script/entry_point.dart:0)

7588 EntryPoint.process (package:dcli/src/script/entry_point.dart)

7589 DCliInstall.run (file:///home/bsutton/git/dcli/bin/dcli_install.dart)

7590 main (file:///home/bsutton/git/dcli/bin/dcli_install.dart)

7591 _startIsolate. (dart:isolate-patch/isolate_patch.dart)

7592 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart)

Additional context The command was run from a manjaro virtual machine. 64gb ssd, 1 core, 1gb mem.

bsutton commented 3 years ago

resolved. This was a bug in the fetch command which is fixed in 0.39