Snapp-X / snapp_installer

command-line tool that simplifies the installation and development of Flutter applications on your Raspberry Pi. This Bash script automates the process of setting up the Flutter environment, installs essential files and dependencies, and offers additional features like running your Flutter apps in kiosk mode.
MIT License
44 stars 4 forks source link

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

Open rostopira opened 7 months ago

rostopira commented 7 months ago

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
payam-zahedi commented 7 months ago

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
TolyaDenisenko commented 5 months ago

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

marilantagliari commented 4 months ago

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 (serge@raspberrypi.com) (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 ...

Kiosk Mode: x11

✓ | Auto login is enabled in your device ✘ | Kiosk mode is enabled ✘ | Kiosk mode packages | xset xdotool ...

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