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

'Simulate with Animation' not working inside Docker #3

Open
nickfaraco opened this issue May 8, 2023 · 0 comments
Open

'Simulate with Animation' not working inside Docker #3

nickfaraco opened this issue May 8, 2023 · 0 comments

Comments

@nickfaraco
Copy link

As per the title, models can't be animated when running OMEdit inside a Docker container. In particular, the problem seems to be linked to Qt. The model compiles just fine and is correctly simulated, but visual artefacts appear in the UI and the following messages are output to the console when the animation should start.

QOpenGLWidget: Failed to create context
QOpenGLWidget: Failed to create context
QOpenGLWidget: Failed to create context
QOpenGLWidget: Failed to create context
QOpenGLWidget: Failed to create context
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setRenderHint: Painter must be active to set rendering hints
Error: OpenGL version test failed, requires valid graphics context.
QPainter::end: Painter not active, aborted
qt.qpa.backingstore: composeAndFlush: QOpenGLContext creation failed

Not even an empty animation window can be open from the Plotting section (even though in this case no warnings are output).
I've checked both version 1.20.0 and the newest version 1.21.0 on a MacbookPro (running MacOS Ventura on a silicon processor). The error can be fully reproduced, e.g., trying to run the RobotR3 model within the Modelica standard library.

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

1 participant