Bug [2806188] Nesting Toolbar Menus causes Vassal to freeze

Hi Rodney,

Do you have time to look at this one? It is your code and you may have some insight into what is going wrong. I’ve spent a couple of hours on it and am not getting very far.

The symptom of Vassal freezing is just a side effect of deeply nested Toolbar menus not rebuilding properly. If you build a series of nested Toolbar menus, no submenu appears for the items on the second level down. If you pick one of these items, Swing hangs trying to run non-existent items.

As far as I can see, there is some sort of race condition caused by the scheduling of the buildMenu() method by scheduleBuildMenu(). The menu structure appears to build itself correctly, then proceeds to unbuild itself in an orderly fashion until finally, only the top-level is built, with it’s submenu of 2nd level items and nothing else.

Thanks,
Brent.