snapp_installer icon indicating copy to clipboard operation
snapp_installer copied to clipboard

Can't install, stuck on "Got dependencies."

Open rostopira opened this issue 1 year ago • 5 comments

I've tried everything already, everytime getting stuck on it and then process get's killed or system frezees.

*****************************************
********* Check Flutter Channel *********
*****************************************
Checking Flutter channel

Downloading Linux arm64 Dart SDK from Flutter engine e76c956498841e1ab458577d3892003e553e4f3c...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  212M  100  212M    0     0  7609k      0  0:00:28  0:00:28 --:--:-- 8615k
Building flutter tool...
Resolving dependencies... (10.6s)
Got dependencies.
/home/rostopira/sdk/flutter/bin/internal/shared.sh: line 183:  3421 Killed                  "$DART" --verbosity=error --disable-dart-dev $FLUTTER_TOOL_ARGS --snapshot="$SNAPSHOT_PATH" --snapshot-kind="app-jit" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" --no-enable-mirrors "$SCRIPT_PATH" > /dev/null

rostopira avatar Apr 06 '24 10:04 rostopira

Thanks, @rostopira, for opening this issue

I think it's related to the flutter as you can see the file path is located in the flutter SDK.

But, let's try to find the issue toughener.

Can you give me more information about your environment

host machine (your pc):

  1. flutter doctor -v
  2. flutter version

remote machine (raspberry pi):

  1. information about the os - version and otherthings
  2. run flutter --version and doctor
  3. check do you have any other flutter sdk on other location

payam-zahedi avatar Apr 17 '24 15:04 payam-zahedi

Hello, raspberry pi stuck in Got dependecies. RaspbPi 3b+. /home/anatoly/sdk/flutter/bin/internal/shared.sh: line 183: 35298 Killed "$DART" --verbosity=error --disable-dart-dev $FLUTTER_TOOL_ARGS --snapshot="$SNAPSHOT_PATH" --snapshot-kind="app-jit" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" --no-enable-mirrors "$SCRIPT_PATH" > /dev/null

TolyaDenisenko avatar May 27 '24 05:05 TolyaDenisenko

HOST ENVIRONMENT: air-de-marilan:displaynetunoapp marilantagliari$ flutter --version Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 761747bfc5 (5 weeks ago) • 2024-06-05 22:15:13 +0200 Engine • revision edd8546116 Tools • Dart 3.4.3 • DevTools 2.34.3

air-de-marilan:displaynetunoapp marilantagliari$ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.2, on macOS 14.0 23A344 darwin-arm64, locale pt-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.83.1) [✓] Connected device (6 available)
[✓] Network resources

• No issues found! air-de-marilan:displaynetunoapp marilantagliari$ flutter doctor -v [✓] Flutter (Channel stable, 3.22.2, on macOS 14.0 23A344 darwin-arm64, locale pt-BR) • Flutter version 3.22.2 on channel stable at /Users/marilantagliari/fvm/versions/3.22.2 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (5 weeks ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at /Users/marilantagliari/Library/Android/sdk • Platform android-34, build-tools 33.0.1 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15F31d • CocoaPods version 1.15.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.83.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.90.0

REMOTE MACHINE: Raspberry 4b - Raspbian netunotrack@netunotrack:~ $ dmesg [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 6.6.31+rpt-rpi-v8 ([email protected]) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29)

netunotrack@netunotrack:~ $ flutter doctor -v Building flutter tool... Resolving dependencies... (23.5s) Downloading packages... Got dependencies.

its not possible to get flutter doctor because freeze or kill after got dependencies.

/home/netunotrack/sdk/flutter/bin/internal/shared.sh: line 183: 1797 Killed "$DART" --verbosity=error --disable-dart-dev $FLUTTER_TOOL_ARGS --snapshot="$SNAPSHOT_PATH" --snapshot-kind="app-jit" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" --no-enable-mirrors "$SCRIPT_PATH" > /dev/null

netunotrack@netunotrack:~ $ snapp_installer doctor


************ Doctor summary: ************


Installation:

✓ | Linux Dependency packages | curl git unzip ... * ✓ curl is installed * ✓ git is installed * ✓ unzip is installed * ✓ xz-utils is installed * ✓ zip is installed * ✓ libglu1-mesa is installed ✓ | Flutter folder is located in /home/netunotrack/sdk/flutter. ✓ | Flutter command is available in the PATH. ✓ | Flutter command is defined in .bashrc file. ✓ | Linux development packages | clang cmake ninja-build ... * ✓ clang is installed * ✓ cmake is installed * ✓ ninja-build is installed * ✓ pkg-config is installed * ✓ libgtk-3-dev is installed * ✓ liblzma-dev is installed

Kiosk Mode: x11

✓ | Auto login is enabled in your device ✘ | Kiosk mode is enabled ✘ | Kiosk mode packages | xset xdotool ... * ✓ x11-xserver-utils is installed * ✘ xdotool is missing

DMESG log: [ 345.611500] [ 1822] 1000 1822 2026 448 45056 0 0 bash [ 345.611509] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=dart:flutter_to,pid=1797,uid=1000 [ 345.611585] Out of memory: Killed process 1797 (dart:flutter_to) total-vm:1524432kB, anon-rss:807416kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:2304kB oom_score_adj:0

marilantagliari avatar Jul 12 '24 03:07 marilantagliari

I had the same problem when upgrading to flutter 3.29.0

snapp_installer install -v 3.29.0 -f

Downloading Linux arm64 Dart SDK from Flutter engine 010c8a806bccad64ab9972286b85dd24ca98441f... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 205M 100 205M 0 0 3611k 0 0:00:58 0:00:58 --:--:-- 3857k Building flutter tool... Resolving dependencies... (24.0s) Downloading packages... Got dependencies. /home/pi/sdk/flutter/bin/internal/shared.sh: line 186: 21009 Killed "$DART" --verbosity=error $FLUTTER_TOOL_ARGS --snapshot="$SNAPSHOT_PATH" --snapshot-kind="app-jit" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" --no-enable-mirrors "$SCRIPT_PATH" > /dev/null

emersonsiega avatar Feb 26 '25 12:02 emersonsiega

Update: I find out that this was happening due to insufficient RAM. I set up a swapfile with 1GB to solve this.

# shows existing swapfiles. In my case there was one: /var/swap with 200MB
swapon --show

# Turn off temporarily
sudo swapoff /var/swap

# Allocate 1GB to it
sudo fallocate -l 1G /var/swap

# Give the right permissions
sudo chmod 600 /var/swap

# Reformat the swipefile
sudo mkswap /var/swap

# Reactivate it
sudo swapon /var/swap

# Verify the New Swap Size
free -h

emersonsiega avatar Feb 26 '25 14:02 emersonsiega