Skip to content

[BUG] - Windows access error when plotting with PyVista in GitHub Actions #115

@dodu94

Description

@dodu94

Describe the bug
Only when plotting with pyvista on Windows GitHub action, the following error is observed:

Windows fatal exception: access violation

...

Current thread 0x00001fe8 (most recent call first):
  File "C:\Miniconda\envs\test\lib\site-packages\pyvista\plotting\plotter.py", line 1988 in render
  File "C:\Miniconda\envs\test\lib\site-packages\pyvista\plotting\plotter.py", line 6075 in screenshot
  File "C:\Miniconda\envs\test\lib\site-packages\f4enix\output\plotter.py", line 431 in plot_slices
  File "D:\a\F4Enix\F4Enix\tests\plotter_test.py", line 81 in test_plot_slices

For the moment I was forced to skip the offending tests when in windows (they are still tested in the linux workflow).
The skipped tests can be found in meshtal_test.py and in test_notebooks.py.

To Reproduce
Unfortunately I did not find a way to reproduce this if not on the GitHub actions. It is probably something related to the headless display.

Expected behavior
The tests should run without any issues as per the linux version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions