Indeed I was using the wrong ones :doh:. Thanks for pointing that out.
After I put the proper AI missiles, they do not appear on the planes (like Asgar mentioned above). The AI does act like it's pressing the attack (despite apparently without missiles), until the DCS crashes.
Logs and mission attached.
The mission is a simple one, with two AI, 300m in front of the player, on a course towards some ships, 30-35km away. dcs.zip viggen_antiship_test2.miz