Skip to content

arduino-cli core install arduino:avr not working on low memory system #1568

@evanharwin

Description

@evanharwin

Bug Report

Current behavior

Trying to install arduino:avr support, as I belive this is neccessary for my Arduino UNO.

arduino-cli core install arduino:avr --verbose

Process is killed with out of memory error. Logs show it was on installation of arduino:[email protected]:

INFO[0000] Using config file: /home/pi/.arduino15/arduino-cli.yaml
INFO[0000] arduino-cli version 0.20.0
INFO[0000] Checking if CLI is Bundled into the IDE
INFO[0000] Adding libraries dir                          dir=/home/pi/Arduino/libraries location=user
INFO[0001] Checking signature                            index=/home/pi/.arduino15/package_index.json signatureFile=/home/pi/.arduino15/package_index.json.sig trusted=true
INFO[0001] Loading hardware from: /home/pi/.arduino15/packages
INFO[0001] Loading package builtin from: /home/pi/.arduino15/packages/builtin
INFO[0001] Checking existence of 'tools' path: /home/pi/.arduino15/packages/builtin/tools
INFO[0001] Loading tools from dir: /home/pi/.arduino15/packages/builtin/tools
INFO[0001] Loaded tool                                   tool="builtin:[email protected]"
INFO[0001] Loaded tool                                   tool="builtin:[email protected]"
INFO[0001] Loaded tool                                   tool="builtin:[email protected]"
INFO[0001] Loaded tool                                   tool="builtin:[email protected]"
INFO[0043] Executing `arduino-cli core install`
INFO[0043] Running from console, will run post-install by default
Downloading packages...
arduino:[email protected] downloaded
arduino:[email protected] downloaded
arduino:[email protected] downloaded
arduino:[email protected] downloaded
INFO[0139] Installing tool                               Tool="arduino:[email protected]"
Installing arduino:[email protected]...
INFO[2047] Tool installed                                Tool="arduino:[email protected]"
arduino:[email protected] installed
INFO[2047] Installing tool                               Tool="arduino:[email protected]"
Installing arduino:[email protected]...
Killed

And kernel logs show it was an out of memory error:

Out of memory: Killed process 729 (arduino-cli) total-vm:865672kB

Expected behavior

Installation to complete successfully.

Environment

  • CLI version (output of arduino-cli version): "arduino-cli Version: 0.20.0 Commit: 553c637 Date: 2021-11-23T14:35:08Z"
  • OS and platform: "Raspbian GNU/Linux 10 (buster)" on "Raspberry Pi Model B"

Metadata

Metadata

Assignees

Labels

status: waiting for informationMore information must be provided before work can proceedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions