When using deferrals and AdaptiveCards Action.submit with any content will crash the server. The behavior can only reproduced using C# on Windows,
The following code was used to produce the crash:
[EventHandler("playerConnecting")]
private async void OnPlayerConnecting([FromSource] Player player, string playerName, dynamic setKickReason, dynamic deferrals)
{
deferrals.defer();
await Delay(0);
var json = "{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"ExtraLarge\",\"weight\":\"Bolder\",\"text\":\"Server password?!\"},{\"type\":\"TextBlock\",\"text\":\"That's right, motherfucker! You have to enter a goddamn PASSWORD to connect to this server...\",\"wrap\":true},{\"type\":\"Input.Text\",\"id\":\"password\",\"title\":\"\",\"placeholder\":\"better enter one now\"},{\"type\":\"Image\",\"url\":\"http://images.amcnetworks.com/ifccenter.com/wp-content/uploads/2019/04/pulpfic_1280.jpg\",\"altText\":\"\"},{\"type\":\"ActionSet\",\"actions\":[{\"type\":\"Action.Submit\",\"title\":\"Sure...\"},{\"type\":\"Action.ShowCard\",\"title\":\"YOU WISH!!!!!!\",\"card\":{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"Image\",\"url\":\"https://i.imgur.com/YjMR0E6.jpg\",\"altText\":\"\"}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\"}}]}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"version\":\"1.0\"}";
deferrals.presentCard(json, new Action<dynamic, string>((data, rawData) =>
{
}));
}
This was tested using the newest Windows server build 1808 also tried an random older build(1416) just to be sure this wasn’t a new thing.
I was not able to reproduce the crash using LUA (Did not try JavaScript)
Full dump can be found her: https://dropmefiles.com/4JR5E