Okay I've done some more testing and here are my results.

1) Princesses can still try to marry a general in a city without the game crashing.

2) The game did not crash when I clicked on a village that had no buildings in it (villages don't even have walls). I have not determined whether the crash is due to the presence of walls or the presence of any building in the settlement.