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
  aiServo.write(servo_wr.aileron_deg+SERVO_CENTER_DEG);

 aiServo.writeMicroseconds((float)servo_wr.aileron_deg*MAX_SERVO_DEFLECTION_PWM/MAX_SERVO_DEFLECTION_DEG+SERVO_CENTER_PWM);
  
}

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.