The two xf:triggers do the same xf:insert into the nodeset using an xf:dispatch with a @while condition.
The xf:trigger (2) that triggers an xf:insert and an xf:message[@level="modal"] after each insert causes the CPU to go to 100% usage in task manager. The xf:message is never displayed.
xf:trigger 1 works correctly.
Note using a xf:message[@level="ephemeral"] does not cause the 100% CPU problem but the xf:message is still never shown.