Skip to content

docs: test gallery examples #5839

docs: test gallery examples

docs: test gallery examples #5839

Triggered via pull request April 8, 2026 14:24
Status Success
Total duration 1m 8s
Artifacts

codeql.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
test_graphics_export.test_graphics_export_image[PNG]: tests/embedding/test_graphics_export.py#L58
System.Exception: Image export failed because an offscreen graphics context could not be created. at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.pvImageExportErrorCheck (Ansys.Common.Interop.Gfx.DSGfxExportImageErrorCode errorCode) [0x00093] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.ExportViewportImage (System.Int32 viewportIndex, System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat formatImage, Ansys.Mechanical.Graphics.GraphicsImageExportSettings settings) [0x00051] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.ExportImage (System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat formatImage, Ansys.Mechanical.Graphics.GraphicsImageExportSettings settings) [0x0001b] in <e311e04374134bc2bc8d98e47b083706>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d7fb1f6d797c45b8b5731891eeab9a70>:0
test_graphics_export.test_graphics_export_image[JPG]: tests/embedding/test_graphics_export.py#L58
System.Exception: Image export failed because an offscreen graphics context could not be created. at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.pvImageExportErrorCheck (Ansys.Common.Interop.Gfx.DSGfxExportImageErrorCode errorCode) [0x00093] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.ExportViewportImage (System.Int32 viewportIndex, System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat formatImage, Ansys.Mechanical.Graphics.GraphicsImageExportSettings settings) [0x00051] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.ExportImage (System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat formatImage, Ansys.Mechanical.Graphics.GraphicsImageExportSettings settings) [0x0001b] in <e311e04374134bc2bc8d98e47b083706>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d7fb1f6d797c45b8b5731891eeab9a70>:0
test_graphics_export.test_graphics_export_image[BMP]: tests/embedding/test_graphics_export.py#L58
System.Exception: Image export failed because an offscreen graphics context could not be created. at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.pvImageExportErrorCheck (Ansys.Common.Interop.Gfx.DSGfxExportImageErrorCode errorCode) [0x00093] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.ExportViewportImage (System.Int32 viewportIndex, System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat formatImage, Ansys.Mechanical.Graphics.GraphicsImageExportSettings settings) [0x00051] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper.ExportImage (System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat formatImage, Ansys.Mechanical.Graphics.GraphicsImageExportSettings settings) [0x0001b] in <e311e04374134bc2bc8d98e47b083706>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d7fb1f6d797c45b8b5731891eeab9a70>:0
test_graphics_export.test_graphics_export_animation[GIF]: tests/embedding/test_graphics_export.py#L79
System.Exception: Animation export failed due to not being able to create a rendering context at Ansys.ACT.Mechanical.Utilities.GraphicsHelpers.ExportVideoOrGIF (Ansys.Common.Interop.Gfx.IDSGraphics dsGraphics, Ansys.ACT.Automation.Mechanical.DataModelObject target, System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x00126] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Automation.Mechanical.Results.Result.ExportAnimation (System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x0000a] in <e311e04374134bc2bc8d98e47b083706>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d7fb1f6d797c45b8b5731891eeab9a70>:0
test_graphics_export.test_graphics_export_animation[AVI]: tests/embedding/test_graphics_export.py#L79
System.Exception: Animation export failed due to not being able to create a rendering context at Ansys.ACT.Mechanical.Utilities.GraphicsHelpers.ExportVideoOrGIF (Ansys.Common.Interop.Gfx.IDSGraphics dsGraphics, Ansys.ACT.Automation.Mechanical.DataModelObject target, System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x00126] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Automation.Mechanical.Results.Result.ExportAnimation (System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x0000a] in <e311e04374134bc2bc8d98e47b083706>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d7fb1f6d797c45b8b5731891eeab9a70>:0
test_graphics_export.test_graphics_export_animation[MP4]: tests/embedding/test_graphics_export.py#L79
System.Exception: Animation export failed due to not being able to create a rendering context at Ansys.ACT.Mechanical.Utilities.GraphicsHelpers.ExportVideoOrGIF (Ansys.Common.Interop.Gfx.IDSGraphics dsGraphics, Ansys.ACT.Automation.Mechanical.DataModelObject target, System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x00126] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Automation.Mechanical.Results.Result.ExportAnimation (System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x0000a] in <e311e04374134bc2bc8d98e47b083706>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d7fb1f6d797c45b8b5731891eeab9a70>:0
test_graphics_export.test_graphics_export_animation[WMV]: tests/embedding/test_graphics_export.py#L79
System.Exception: Animation export failed due to not being able to create a rendering context at Ansys.ACT.Mechanical.Utilities.GraphicsHelpers.ExportVideoOrGIF (Ansys.Common.Interop.Gfx.IDSGraphics dsGraphics, Ansys.ACT.Automation.Mechanical.DataModelObject target, System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x00126] in <e311e04374134bc2bc8d98e47b083706>:0 at Ansys.ACT.Automation.Mechanical.Results.Result.ExportAnimation (System.String filePath, Ansys.Mechanical.DataModel.Enums.GraphicsAnimationExportFormat format, Ansys.Mechanical.Graphics.AnimationExportSettings settings) [0x0000a] in <e311e04374134bc2bc8d98e47b083706>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d7fb1f6d797c45b8b5731891eeab9a70>:0
Analyze (python)
Starting April 2026, the CodeQL Action will skip computing file coverage information on pull requests to improve analysis performance. File coverage information will still be computed on non-PR analyses. To opt out of this change, set the `CODEQL_ACTION_FILE_COVERAGE_ON_PRS` environment variable to `true`. Alternatively, create a custom repository property with the name `github-codeql-file-coverage-on-prs` and the type "True/false", then set this property to `true` in the repository's settings.