Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build process behaves strangely #1023

Closed
3 tasks done
logowe opened this issue Jun 6, 2022 · 4 comments
Closed
3 tasks done

Build process behaves strangely #1023

logowe opened this issue Jun 6, 2022 · 4 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@logowe
Copy link

logowe commented Jun 6, 2022

Describe the problem

Just to put it strait, the IDE builds and uploads executable code.
Hence this report shouldn't be placed here?

I experience strange behavour when building:

  1. A new session is started and the build is initiated: Works as expected.

  2. The build is initiated a second time in this session. Some or no changes are done in the source code:
    a) Seems like the whole process now is done twice:
    b) In the middle of the process (after finishing the first time?) the message pops up "Upload done" and the target system executes the program.
    c) Then it still takes about the same time to finish the build process. At the end the upload is displayed by showing the % progress. The target system does not start a second time.
    d) The program version the target system executes at 2.b) instant complies to the source code.

  3. If I close the IDE after 2. b) (while it still pretends to build) and start a new session, then start the build process it executes like 1.. All object files are in the cache from the previous session. After the linking, the upload is displayed by showing the % progress and the target system starts to execute the program.

  4. Repeatetly building in the same session takes progressively longer time to finish.
    I experience up to factor 10 after about 20 builds.
    This makes me close the IDE and start a new session to get back to normal build performance.

To reproduce

  1. Load some project consistiong of at least 5000 C++ code lines.
  2. Build it repeatetly and observe whats happening.

Expected behavior

The build process allways works the same way with the same performance.
At the end of the build process the target system is flashed and starts to execute the program.

Arduino IDE version

2.0.0 r6

Operating system

Windows

Operating system version

10

Additional context

Espressif Board Manager ESP32 V.2.0.3.
DFROBOT Fire Beetle Board-ESP32 (V4.0)

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
@logowe logowe added the type: imperfection Perceived defect in any part of project label Jun 6, 2022
@logowe logowe changed the title Build process behaves strange Build process behaves strangely Jun 6, 2022
@per1234 per1234 self-assigned this Jun 7, 2022
@per1234
Copy link
Contributor

per1234 commented Jun 7, 2022

Hi @logowe. Thanks for your report.

Please select File > Preferences... from the Arduino IDE menus and then tell me what are the states of the checkboxes next to the following settings:

  • Show verbose output during > ☐ compile
  • Show verbose output during > ☐ upload

@per1234 per1234 added topic: code Related to content of the project itself status: waiting for information More information must be provided before work can proceed labels Jun 7, 2022
@logowe
Copy link
Author

logowe commented Jun 7, 2022

Ohh ... is this relevant?
See the screen shot, please
ArfuinoIDE-File-Preferences
.

@logowe logowe closed this as completed Jun 7, 2022
@per1234
Copy link
Contributor

per1234 commented Jun 7, 2022

Thanks. Yes, it is relevant. There is a known bug with the throughput of the output panel.

This gives a false impression that the compilation and upload processes are going very slowly. The truth is that those processes have completed long before the output finishes trickling through the horrible bottleneck somewhere in the system.


It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, but if you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 added conclusion: duplicate Has already been submitted and removed status: waiting for information More information must be provided before work can proceed labels Jun 7, 2022
@logowe
Copy link
Author

logowe commented Jun 7, 2022

Yes I agree to close this issue.
I saw the other 2 issues but did not recognise them to be linked.
In the meantime I will work with these 2 options disabled.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants