internal compiler error: Segmentation fault

what should i do about this?

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\libraries\Servo\src\avr\Servo.cpp: In member function ‘writeMicroseconds’:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\libraries\Servo\src\avr\Servo.cpp:294:1: internal compiler error: Segmentation fault

void servoWriteAll()
  // this has a compiler bug


the line aiServo.write crashes the compiler but aiServo.writeMicroseconds is ok, i’ve used aiServo.write in other places in the program and its fine.

i have a workaround but worrying that its broken

Downgrade board manager (not ide) to version 1.6.21

tools -> board -> boards manager

It's a known bug

that fixed it, thanks

WOW THANKYOU SO MUCH! I have searched for 3 hours trying to fix this error and was ready to re-install windows. Cheers!

The two impacted versions of the AVR board package are 1.6.22 and 1.6.23 - by now you should also be able to update to latest version to solve this issue.