gr7.76 Posted March 21, 2023 Share Posted March 21, 2023 (edited) 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 March 21, 2023 by gr7.76 Link to comment
silent Posted March 22, 2023 Share Posted March 22, 2023 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts