I have a "game" that listens to http request on a port and than builds a 3d model based on the request, takes a screenshot of it and responds to that request with a picture of the model. In desktop mode it runs fine, but desktop mode is kinda unstable and i need to have the game running all the time, so i figured my best bet would be to run system in text mode, but the game always crashes when i try to run it in batchmode. I tried a "headless mode" build, it runs, but it responds with a gray picture and than crashes, so im guessing that graphics are disabled in headless mode. Game is build on Unity 2017.2 and im running Debian 10, my graphics card is radeon HD 3870 with open source amd driver. Do i need to install additional things? Build on newer version of Unity? Any help would be much appreciated.