I keep running into this problem where the IDE hangs during a compile and never completes. The IDE needs to be terminated ignorer to recover.
Thanks
Kurt
I keep running into this problem where the IDE hangs during a compile and never completes. The IDE needs to be terminated ignorer to recover.
Thanks
Kurt
Hi @ispybadguys. I'm going to ask you to post some additional information that might help us to identify the problem.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
Please do this:
<CODE/>
icon on the post composer toolbar.```
) to your reply to make sure the error messages are correctly formatted.In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt
file and then attach that file to a reply here:
.txt
format..txt
file you saved.Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
Sorry it quit doing this.
I'm glad it is working now. thanks for taking the time to post an update.
Regards,
Per
Here is the hang. It always hangs at this point in the compile.
hang.txt (3.5 MB)
Please try this:
☑
compilation.Now try compiling your sketch again, just as you did before. Does the compilation still hang?
The reason behind this experiment is there is a known bug in Arduino IDE 2.1.0 that causes the compilation to hang sometimes when the compilation process produces a lot of output. If that is the cause of the hang you are experiencing, it should no longer occur after you reduce the quantity of output.
Thanks. That may have done it. I need a little more testing to be sure.
Kurt
OK, great. So if that bug was the cause of the hang then the good news is that the Arduino developers already fixed the bug. That fix was made after the time of the Arduino IDE 2.1.0 release, so Arduino IDE users are still affected by it, but it will definitely no longer be a problem when the next release of Arduino IDE comes out.
Until then, you can use the workaround of reducing the amount of compilation output. I went to the extreme with my instructions by turning off both the compiler warnings and the verbose output. I personally don't find the verbose compilation output to be valuable except when I'm troubleshooting a problem in Arduino IDE itself (not with my sketch) so I recommend leaving that setting off. But compiler warnings are very useful. So you might consider turning those back on in the preferences (e.g., changing the "Compiler warnings" preference from "None" to "All") and see whether having the verbose output alone turned off will be sufficient to avoid the hang.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.