Skip to content

Strange problem with Microsoft.Graphics.Canvas.Geometry.CanvasPathBuilder #948

@ibelchamber

Description

@ibelchamber

Hi,
We have a very large and complex solution which does quite a lot of bitmap handling and graphics display etc. One of the things we do is to display on a win2d canvas a number of shapes including polygons. We are suffering occasionally and completely randomly, pauses in our application of about 8 seconds, then things start running again. It I hit break when this pause happens, we are always at the same line:

Using pb As New Microsoft.Graphics.Canvas.Geometry.CanvasPathBuilder(args.DrawingSession.Device)

Often while everything is stuck, we usually see an error showing in the output window every 2 seconds:

EventSource Error: ERROR: Exception during EventCounter cpu-usage metricProvider callback: Attempted to divide by zero

The dispatcher also gets stuck during the pause.

There seems to be little information about this error.

Generally, if we try to reduce how much drawing is going on, we see a reduction in the frequency of the problem, but I cannot find any particular trigger.

Are there any possible explanations for this or does anyone know a bit more about this error and where it might be coming from?

Thanks.

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