Skip to content

Update or install package hangs on processing state when Serial Monitor/Plotter is open #2562

Closed
@webspiderteam

Description

@webspiderteam

Describe the problem

IDE stucks in processes even it finished. Also when IDE first started downloading index files does same thing. You can see at screenshot below.
Image

I left IDE over night on this process and its still same.

Image
This is also stucks there.

To reproduce

I think it happens when heavy codes opened. On startup stucks on downloading and on installing or updating stucks again in heavy codes. Indexing or background actions to scan codes or Intelli sense could cause this issue.

Expected behavior

IDE should not hang.

Arduino IDE version

Version: 2.3.3 Date: 2024-09-25T09:41:18.242Z CLI Version: 1.0.4 Copyright © 2024 Arduino SA

Operating system

Windows

Operating system version

Windows 10

Additional context

Additional reports

See arduino/arduino-cli#2719 (comment)

Issue checklist

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

Activity

self-assigned this
on Nov 15, 2024
per1234

per1234 commented on Nov 15, 2024

@per1234
Contributor

Hi @webspiderteam.

Explanation

This is caused by a bug in the Arduino CLI tool that performs these actions for Arduino IDE under the hood. The bug has been reported there (arduino/arduino-cli#2719) and the Arduino CLI developers have already made a fix (arduino/arduino-cli#2728).

The reason Arduino IDE users still encounter this problem even though the bug has been fixed in Arduino CLI is that Arduino IDE is still using the version of Arduino CLI with the bug:

"arduino-cli": {
"version": "1.0.4"
},

The fix will be pulled into Arduino IDE once the developers bump the version of the Arduino CLI dependency to the one that has the bug fix.

Workaround

Serial Monitor

The fault will occur when you have the Serial Monitor* view open while performing certain actions in Arduino IDE. The workaround is to close the Serial Monitor view when you need to perform one of the actions that would otherwise hang due to the bug. You can do that by clicking the X icon on the "Serial Monitor" tab of the panel at the bottom of the Arduino IDE window:

image

You can open the Serial Monitor view as needed once the problematic action is completed.

Serial Plotter

The fault will also occur if you have the Serial Plotter open. As with Serial Monitor, the workaround is to close the Serial Plotter window before performing one of the actions that would otherwise hang due to the bug.

If an operation hangs due to you having triggered it with Serial Plotter open, you can unhang the operation by performing the following procedure:

  1. Close the "Serial Plotter" window.
  2. If the "Serial Monitor" view is not already open, select Tools > Serial Monitor from the Arduino IDE menus to open it.
    We must do an open/close cycle on Serial Monitor as a workaround for a bug in Serial Plotter
  3. Click the X icon on the "Serial Monitor" tab in the bottom panel of the Arduino IDE window to close the tab:
    image

You can open the Serial Plotter as needed once the problematic action is completed.

Conclusion

Even though it is technically off topic for this repository, since this bug has been quite impactful I'll leave this issue open to document the issue for Arduino IDE users who might not see the bug report in the arduino/arduino-cli repository's issue tracker.

It will also serve to track the task of bumping the Arduino CLI dependency.

changed the title [-]Update or install package stucks on proccessing state even it installed[/-] [+]Update or install package hangs on processing state when Serial Monitor/Plotter is open[/+] on Nov 15, 2024
removed their assignment
on Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @per1234@webspiderteam

      Issue actions

        Update or install package hangs on processing state when Serial Monitor/Plotter is open · Issue #2562 · arduino/arduino-ide