You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When printing from WebView application crashes in Forms9Patch.UWP in file Label_Renderer.cs in routine GetDesiredSize because heightConstraint is infinite or NaN as reported by the debugger.
public override SizeRequest GetDesiredSize(double widthConstraint, double heightConstraint)
This is not detected by the if statement, and the application crashes after successfully printing the document.
It is Failed successfully error!
Workaround
It could not be resolved using the Nuget library, but an exception can be caught using source files. The If statement in the routine should be put in try...catch, so zero is returned (return new SizeRequest(Size.Zero);) in case of the exception.
The text was updated successfully, but these errors were encountered:
ulbin
changed the title
Printing in UWP results in crash[Bug]
[Bug] Printing in UWP results in crash
Jun 28, 2023
Description of the error
When printing from WebView application crashes in Forms9Patch.UWP in file Label_Renderer.cs in routine GetDesiredSize because heightConstraint is infinite or NaN as reported by the debugger.
This is not detected by the if statement, and the application crashes after successfully printing the document.
It is Failed successfully error!
Workaround
It could not be resolved using the Nuget library, but an exception can be caught using source files. The If statement in the routine should be put in try...catch, so zero is returned (return new SizeRequest(Size.Zero);) in case of the exception.
The text was updated successfully, but these errors were encountered: