Skip to content

Last lines of compilation output are not printedΒ #1073

Closed
@per1234

Description

@per1234

Describe the problem

πŸ› The last lines of compilation output are not shown in Output panel

To reproduce

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Uncheck the box next to Show verbose output during > β˜‘ compile.
    β“˜ The issue occurs with the verbose output as well. This is done only to produce more simple output for the demo.
  3. Click the OK button.
  4. Select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus.
    β“˜ The issue is not specific to this board. A board selection is specified only to ensure the output described here in the demo will be consistent with that seen by those who are reproducing it.
  5. Select Sketch > Verify/Compile from the Arduino IDE menus.
  6. Wait for the compilation process to finish.
  7. If the issue does not occur, repeat the process from step 5 until it does occur.

πŸ› The memory usage output is not shown:


--------------------------
Compilation complete.

The output should be:

Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

--------------------------
Compilation complete.

Expected behavior

All lines of compilation output

Arduino IDE version

2.0.0-rc7-snapshot-94ceefd

Operating system

Windows, Linux

Operating system version

Windows 10, Ubuntu 20.04

Additional context

I bisected the issue to 4c62431 (does not occur when using the build for a804766).


The number of missing lines varies. This is easier to observe with verbose compilation output enabled. Sometimes the line showing the avr-size command that would be expected immediately before the memory usage lines is printed:

[...]

"C:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.elf" "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.hex"

"C:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.elf"

--------------------------
Compilation complete.

Other times it is not:

[...]

"C:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.elf" "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.hex"


--------------------------
Compilation complete.

More rarely, one or two of the memory usage lines are shown.


Originally reported at https://forum.arduino.cc/t/memory-usage-display-after-compile/1003909

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions