65 System.AccessViolationException occurs when exporting very large diagrams with yFiles WPF. - yEd Q&A
Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

System.AccessViolationException occurs when exporting very large diagrams with yFiles WPF.

0 votes
We are using yFiles WPF to render and export diagrams.

When exporting small or medium-sized diagrams, the export works correctly.

However, when exporting very large diagrams, we encounter a

System.AccessViolationException (HResult: 0x80004003).

The issue appears during bitmap-based export (e.g., PNG).

In the failing cases, the resulting bitmap size exceeds approximately

700 million pixels.

There is no managed stack trace available for the exception.

The problem does not occur with smaller diagrams and seems to be related

to the size of the generated bitmap.

We suspect this may be caused by bitmap or rendering limitations

(e.g., GDI+/WPF limits on bitmap dimensions or memory usage).

Questions:

- Is there a documented or recommended upper limit for bitmap-based export in yFiles WPF?

- Are there recommended approaches for exporting very large diagrams

  (e.g., tiling, poster export, or vector-based export such as XPS/SVG)?

- Is this a known limitation or known issue in yFiles WPF?
closed with the note: Not a yEd question.
ago in Help by
closed ago by

1 Answer

0 votes

This forum is for yEd questions only. For questions regarding the yFiles WPF programming library, please contact yWorks support by mail or (preferably) through the yWorks customer center. (In the former case, please include your yWorks customer or evaluator ID in your mail.)

ago by [yWorks] (164k points)
Legal Disclosure | Privacy Policy
...