mCRL2 icon indicating copy to clipboard operation
mCRL2 copied to clipboard

Ltsgraph and ltsview do not show an error when the OpenGL support is insufficient

Open markuzzz opened this issue 1 year ago • 2 comments

Recently during a training we discovered that ltsgraph and ltsview were not working properly on the machines of most of the participants. With ltsgraph they got a blank white window (even the normal UI elements did not load). With ltsview the main UI loaded but the state space was not visible.

The issue seemed to be that the laptops did not run a recent enough version of OpenGL. On one laptop we discovered that the supported OpenGL version was just 1.1. After updating the graphics driver the supported OpenGL version was 4.2 and both ltsgraph and ltsview were running fine.

The two tools should give a clear error message with the minimum required OpenGL version and prompting the user to update their graphics driver. According to @mlaveaux this functionality should already be there but apperantly it is not working.

By the way, the versions of mCRL2 we tried were the 2019 release version, the 2022 release version and the latest nighly build (yesterday).

markuzzz avatar Mar 23 '23 13:03 markuzzz

There is already code for checking the minimal supported OpenGL version in glwidget..cpp.

https://github.com/mCRL2org/mCRL2/blob/772beafbcdecd0b692fa5be9f4a57caa2f8d5169/tools/release/ltsgraph/glwidget.cpp#L288-L313

Although something happened to it since the last time I have worked on this. However, apparently this does not work, but I can also not test it in any way. Even my integrated graphics card supports at least OpenGL 3.3.

mlaveaux avatar Mar 27 '23 12:03 mlaveaux

I have made some changes to this version check. If anybody could try to see whether it works that would be nice.

mlaveaux avatar Jun 07 '23 11:06 mlaveaux