Jump to content

Detect if Engine can start on a system, that may not meet the minimum requirements.


photo

Recommended Posts

Our app can be used with *vglrun* on a remote Linux desktop system, but if the users forget it, or if they try to use our app on a system that is not properly configured (OpenGL 4.5 drivers and/or vglrun not installed), we crash in Unigine::Engine::init(). For instance, we received this output:

Quote

Xlib:  extension "GLX" missing on display ":50.0".
Xlib:  extension "GLX" missing on display ":50.0".
Received signal SIGSEGV, invalid memory reference
Aborted (core dumped)

This is somewhat OK, because it's a mistake on the side of the customer, but we would like to improve this. We would like to warn our users in advance that they do not have the required capabilities and gracefully exit.
I could not find anything in the API to check if the engine can start, or how to prevent the crash.

Did I miss something?

The alternative is that we try to create a (temporary) OpenGL context ourselves, before we initialize Unigine. Is there a better way?

Edited by gr7.76
Link to comment
  • gr7.76 changed the title to Detect if Engine can start on a system, that may not meet the minimum requirements.

gr7.76

Indeed, there is no method available in API to check if the engine can be inited or not, so you need to write a small wrapper on your side that will do this checks before actual engine run. Creating OpenGL context may be a good starting point for that task.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...