https://github.com/Soviet5lo/SlashTHEM/blob/develop/src/artifact.c#L2022
If you do a create portal invoke in the black market like 15-20 times without saving between them it will fill the window slots and the game will panic (it breaks before the window gets destroyed, just call destroy_nhwindow(tmpwin); before breaking)
Apparently this is present in Slash'em and UnNethack as well still so don't feel bad.
https://github.com/Soviet5lo/SlashTHEM/blob/develop/src/artifact.c#L2022 If you do a create portal invoke in the black market like 15-20 times without saving between them it will fill the window slots and the game will panic (it breaks before the window gets destroyed, just call destroy_nhwindow(tmpwin); before breaking)
Apparently this is present in Slash'em and UnNethack as well still so don't feel bad.