You will need to edit the run configuration and uncheck the box that says "Run on external console," then it will run just fine. Currently, there is no external console application inside the flatpak container, so it is not possible to run on the external console.