I am making LovyanGFX + LVGL project for ESP32 based touchscreen.
I compile and fix and copile and so on...
Then suddenly excution in ESP32 crashes. But this happens sometimes. The problem is that every older version version of my project that are 100% functional also start to crash.
Everyting where I use LovyanGFX crash. Obviously Arduino corrupted LovyanGFX libraries or something else.
I have tried to clear everyhting under users/myname/appdata related to arduino. Re-installed arduino 2.3.6.
Nothing helps.
It is also unclear why compilation takes almoost 5 minutes with Ryzen 9 7900, 32GB RAM and 990 Pro SSD. Notable is that arduin compiler while compiling has continous internet traffic even thougj libraries has been loaded earlier.
If you think that that is the case, download a copy of the library from github and compare it with the one that is installed; make sure that you compare the same versions.
I will be surprised if you find that Arduino corrupted the libraries.
You're using an ESP32; @sonofcy already pointed out the different versions of the ESP32 board package. I would like to add that you might also be using a different version of the LovyanGFX library as well as of other libraries.
Are you certain it is truly communicating over the Internet? There are several distinct components of the Arduino IDE application, which must communicate with each other. They do this via TCP/IP communication. But this happens purely internally to the machine, via "localhost".
So it is expected that you will see network traffic during a compilation, as the compilation output is streamed from the Arduino CLI helper tool to the frontend of the Arduino IDE application via localhost. However, it is not expected that a compilation will result in any network traffic over the Internet.
Of course some of Arduino IDE's features do make use of the Internet, for example:
Notifications of availability of an update to a newer version of Arduino IDE
Downloading the new version of the IDE when you use the auto-update feature.
I have tried 2 identical boards and one onether for which I have series of LovyanGFX project versions.
All of the project versions worked nicely this morning and then bang!! and none of them works. Compiling goes still without any issues.
Only libraries installed are LovyanGFX, LVGL and ArduinoJson. nothing else.
For board Arduino AVR boards which is default, I think. And esp32 by Espressif.
Board uses ESP32 S3 Wroom-1.
Only error is : Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Code runs until calling LovyanGFX xyz.begin()
I underline everything worked perfectly weeks and the suddenly, not.
=> and after remove LovyanGFX from Arduino and copying same version (latest) from git. No improvement. Same fault still.
ptillisch, you were right about that traffic was local but still, 20MB/s is quite much. I wonder why is that. Anyways compilation takes several minues even though CPU is pretty fast. Any ways this slowness is just minor thing.
Yes, power is not problem.
Please note that this crashing problem popped up suddenly just like something corrupted somewhere.
Every code works if not using LovyanGFX. If trying, then instant crash.
I am suspecting that Arduino has corrupted something but it seems not to be the library source code and not the arduino itself There could be some sort of linking problem but again, why it popped up and why every older program also with LovyanGFX does crash if compiled and loaded.
So, som sort of cache or internal configuration problem might be reason.
Arduino is just spreading the configuration and ... evrything here and there, so cleaning manually everything so that it cannot find anything corrupted is pretty impossible, at least for me.
I found reason with chatgpt help. Arduino did change settings without any warning. LovyanGFX uses PSRAM for as frame buffer. In Tools menu the PSRAM:xxx was set to disabled.
Now when thinking, Arduino probably updated boards to 3.2.1. While doing that it also messed /cleared) some settings for the projects. This should never happen !!!!
I see this as bug in Arduino.
Finally, it was sort of corruption and Arduino did it itself... case closed.