This bug report is about giving a repro scenario. I am not sure what in the window loop is causing the crash. I get the same behavior with my own app, but narrowing the repro down to the PureBasic docs example seems better than trying to copy/paste all my code.
My Repro
- Install 64-bit Linux Mint Tricia Cinnamon.
Download and extract PureBasic 5.72 Beta 2.
Run ./checkinstall.sh and then run the recommended "sudo apt-get" command.
--all of the above work flawlessly, super easy install on Linux.
Run ./register.sh
Run ./launch.sh
Search for and paste in the top example from OpenWindowedScreen and press F5 to run.