Skip to content

'Simulate with Animation' not working inside Docker #3

@nickfaraco

Description

@nickfaraco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions