Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hobbits-runner shouldn't need a display? #151

Open
jakecrowley opened this issue Jul 5, 2022 · 3 comments
Open

hobbits-runner shouldn't need a display? #151

jakecrowley opened this issue Jul 5, 2022 · 3 comments

Comments

@jakecrowley
Copy link

I have limited knowledge of Qt so I'm not sure if this is even possible with the way hobbits-runner is implemented currently, but it for some reason still needs a display to run, even though it is a purely CLI tool. When trying to run it over SSH i get the error in the screenshot below.

hobbits-runner

@hello-adam
Copy link
Member

it looks like the CI tests solve this by passing the argument -platform offscreen:

'-platform', 'offscreen'

I definitely botched some of the build configurations and dependencies - it's possible that the runner still depends on the GUI parts of Qt because parts of hobbits are tightly coupled to Qt widgets.

@ferdnyc
Copy link

ferdnyc commented Jul 6, 2022

Running with -platform minimal may also serve, if the code doesn't actually try to show() any widgets (or can cope with those attempts failing).

-platform offscreen still requires that the system have an OpenGL-compatible GPU attached, IIRC. -platform minimal is OK with having no display hardware at all (assuming the code is also OK with that).

@jakecrowley
Copy link
Author

Thank you for the help, both -platform offscreen and -platform minimal work in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants