My game has been crashing at around the year 2270. I've tried on several different games and it seems to be a problem with Gigastructural engineering and Privateers. Here is the last part of my crash log
[10:12:27][effect_impl.cpp:328]: Script Error: Invalid context switch [capital_scope] from Privateers [country], file: events/plague_events.txt line: 546, Scope:
type=country
id=83886167
random={ 0 1021972688 }
random_allowed=yes
[10:12:27][effect_impl.cpp:328]: Script Error: Invalid context switch [capital_scope] from Privateers [country], file: events/plague_events.txt line: 480, Scope:
type=country
id=83886167
random={ 0 760656069 }
random_allowed=yes
[10:12:27][effect_impl.cpp:328]: Script Error: Invalid context switch [capital_scope] from Privateers [country], file: events/plague_events.txt line: 513, Scope:
type=country
id=83886167
random={ 0 3540735126 }
random_allowed=yes
[10:12:29][trigger_impl.cpp:1174]: Script Error: Invalid context switch [target] from Arm Privateers [espionage_operation], file: events/nemesis_operations_events_2.txt line: 925, Scope:
type=espionage_operation
id=117440514
random={ 0 823267059 }
random_allowed=yes
from={
type=country
id=5
random={ 0 823267059 }
random_allowed=yes
saved_event_target={
type=country
id=5
name="target_country"
}
saved_event_target={
type=galactic_object
id=448
name="privateer_system"
}
saved_event_target={
type=planet
id=8884
name="privateer_home"
}
saved_event_target={
type=country
id=83886167
name="privateer_band"
}
}
[10:12:27][effect_impl.cpp:328]: Script Error: Invalid context switch [capital_scope] from Privateers [country], file: events/plague_events.txt line: 546, Scope:
type=country
id=83886167
random={ 0 1021972688 }
random_allowed=yes
[10:12:27][effect_impl.cpp:328]: Script Error: Invalid context switch [capital_scope] from Privateers [country], file: events/plague_events.txt line: 480, Scope:
type=country
id=83886167
random={ 0 760656069 }
random_allowed=yes
[10:12:27][effect_impl.cpp:328]: Script Error: Invalid context switch [capital_scope] from Privateers [country], file: events/plague_events.txt line: 513, Scope:
type=country
id=83886167
random={ 0 3540735126 }
random_allowed=yes
[10:12:29][trigger_impl.cpp:1174]: Script Error: Invalid context switch [target] from Arm Privateers [espionage_operation], file: events/nemesis_operations_events_2.txt line: 925, Scope:
type=espionage_operation
id=117440514
random={ 0 823267059 }
random_allowed=yes
from={
type=country
id=5
random={ 0 823267059 }
random_allowed=yes
saved_event_target={
type=country
id=5
name="target_country"
}
saved_event_target={
type=galactic_object
id=448
name="privateer_system"
}
saved_event_target={
type=planet
id=8884
name="privateer_home"
}
saved_event_target={
type=country
id=83886167
name="privateer_band"
}
}