Welcome Guest Search | Active Topics | Sign In | Register

webView.GetHtml() may cause the page to freeze Options
Christian Porzio
Posted: Thursday, March 22, 2018 6:25:00 PM
Rank: Advanced Member
Groups: Member

Joined: 10/4/2016
Posts: 104
Hi,

It appears that if you move the window (dragging in it back and forth with the mouse on the desktop) and invoke at the same time webView.GetHtml() within the webContainer of that moving window, then the window freezes. Actually the whole desktop freezes. However simply doing ALT Tab will get you out of this state.

This is really not a major issue for us. Getting the HTML source this way is not even the right way to obtain it for most of the page, just wanted to bring this to your attention just in case this may reveal a more fundamental issue.

Regards
eo_support
Posted: Friday, March 23, 2018 3:42:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Thank's an interesting scenario. Thanks for bringing this to our attention. We will look into it and see what we can find.
Juha
Posted: Tuesday, March 27, 2018 7:15:08 AM
Rank: Newbie
Groups: Member

Joined: 8/8/2017
Posts: 7
I have a freeze problem with WPF application when WebControl is dynamically added into MainWindow and the control/webview starts to load and same time i start to move MainWindow the whole Windows Desktop freezes and can be un-freezed for example by pressing CTRL-ALT-Del.

I don't use the GetHTML() and have not been able to reproduce this with the sample application. This is probably some special case that triggers this (deadlock?) and so this is just information if you happen to found out something what could cause that GetHTML problem so i can also test if it helps with my issue.
eo_support
Posted: Tuesday, March 27, 2018 8:30:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

This has to do with a blocking message loop that we use --- this loop is being used by all synchronous calls to the browser engine. GetHTML and WebView initialization are just two of them. We will look into this and see if we can avoid the lock up in this case.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.