Hi!
I have a segmentation fault with the rev 2.24.3 but not with 2.23.18
The segmentation fault occurs when i use a delay() function.
I tried to use delayMicroseconds() function => segfault disappears
I tried to move de delay() function at a different place in the code => segfault stays
C:\Users\xxx\Documents\Arduino\libraries\U8g2\src\clib\u8g2_setup.c: In function 'u8g2_draw_l90_r0':
C:\Users\xxx\Documents\Arduino\libraries\U8g2\src\clib\u8g2_setup.c:303:1: internal compiler error: Segmentation fault
}
^
It's probably https://github.com/arduino/Arduino/issues/7949
This bug is specific to the 5.4.0-atmel3.6.1-arduino2 version of avr-gcc used by Arduino AVR Boards 1.6.22 and newer.
Due to a bug, this workaround doesn't work with Arduino IDE 1.8.6, but it will work with any other version of the Arduino IDE.
If you have File > Preferences > Check for updates on startup checked, the Arduino IDE may occasionally notify you that a new version of Arduino AVR Boards is available, you'll need to refrain from updating back to the new Arduino AVR Boards version, otherwise you'll be back to seeing the segmentation fault error again.
One of the Arduino developers recently worked on this and has provided a potential fix by updating avr-gcc to 7.3.0. There is a special beta testing hardware package you can install via the Arduino IDE's Boards Manager that has the fix:
Is the problem solved? Can we close this?
no further feedback... closing...
Most helpful comment
It's probably https://github.com/arduino/Arduino/issues/7949
This bug is specific to the 5.4.0-atmel3.6.1-arduino2 version of avr-gcc used by Arduino AVR Boards 1.6.22 and newer.
Here's the traditional workaround:
Due to a bug, this workaround doesn't work with Arduino IDE 1.8.6, but it will work with any other version of the Arduino IDE.
If you have File > Preferences > Check for updates on startup checked, the Arduino IDE may occasionally notify you that a new version of Arduino AVR Boards is available, you'll need to refrain from updating back to the new Arduino AVR Boards version, otherwise you'll be back to seeing the segmentation fault error again.
Alternate workaround:
One of the Arduino developers recently worked on this and has provided a potential fix by updating avr-gcc to 7.3.0. There is a special beta testing hardware package you can install via the Arduino IDE's Boards Manager that has the fix:
Previous: https://github.com/olikraus/u8g2/issues/701