Skip to content

WebBrowser crashes on UWP #1854

Description

@shannah

In the Kitchen Sink demo, the web browser crashes the application. The crash occurs when generating the peer image.

I have narrowed it down to this line:

await ((WebView)element).CapturePreviewToStreamAsync(stream);

https://github.com/codenameone/CodenameOne/blob/master/Ports/UWP/VSProjectTemplate/UWPApp/src/com/codename1/impl/SilverlightPeer.cs#L135

And it appears to happen because the webview visibility is set to Collapsed. Setting it to visible fixes the issue, however, for some reason, I still don't see any web view content in the kitchen sink demo. So requires further investigation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions