Welcome Guest Search | Active Topics | Sign In | Register

WebBrowser capture issue in Winforms Options
Jodel
Posted: Thursday, February 20, 2020 4:30:32 PM
Rank: Newbie
Groups: Member

Joined: 2/20/2020
Posts: 9
Hello,

We have implemented session recording in our project, so every second we take a capture of the WebView. However, if we drag the form while doing a capture it results in a complete freeze of the pc. The only way to get back mouse control is to do an alt-tab. I tried creating a new project with only a WebBrowser and the capture timer, in case there was an interaction problem with another of our functionalities, but I still get the same result. Is there any way you can help me with that ?

Thanks !
eo_support
Posted: Thursday, February 20, 2020 4:33:05 PM
Rank: Administration
Groups: Administration

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

Which version of our DLLs do you use? Have you tried our latest build to see if the problem still occurs? We did fix some issues related to WebView freeze during dragging but that's not with capture.

Thanks!
Jodel
Posted: Thursday, February 20, 2020 4:35:55 PM
Rank: Newbie
Groups: Member

Joined: 2/20/2020
Posts: 9
I'm using the latest stable (20.0.53)
eo_support
Posted: Thursday, February 20, 2020 4:40:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
In that case can you try to create a test project and send the test project to us? See here for more information on how to send test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Once we have that we will debug it here and see what we can find.

Thanks!
Jodel
Posted: Thursday, February 20, 2020 5:14:44 PM
Rank: Newbie
Groups: Member

Joined: 2/20/2020
Posts: 9
Alright I sent it through your contact page. Thanks for the quick support !
eo_support
Posted: Monday, February 24, 2020 4:56:03 PM
Rank: Administration
Groups: Administration

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

We have looked into the sample application you sent to us. The root of the problem is an re-entry issue. While WebView.Capture is waiting for the browser engine to respond, it keeps pumping windows message, if during this period another timer is triggered, it would call Capture again before the previous Capture call returns. This process can continue and eventually causes numerous nesting Capture calls without returning.

We will change the code on our end to avoid such re-entering scenario. In the mean time, the easiest way for you to avoid this problem with the current build is add a flag such as:

Code: C#
private bool m_bInTimer;

private void TimerTick(object sender, EventArgs e)
{
    if (m_bInTimer)
        return;

    try
    {
        m_bInTimer = true;

        this.GetThumbnail();
    }
    finally
    {
        m_bInTimer = false;
    }
}


This would avoid another GetThumbnail is called before the previous one returns.

Please let us know if this works for you.

Thanks!
Jodel
Posted: Tuesday, February 25, 2020 10:11:37 AM
Rank: Newbie
Groups: Member

Joined: 2/20/2020
Posts: 9
Hello,

Unfortunately this doesn't seem to work on my end. The issue is only happening when dragging the window, so adding a flag doesn't do much in that case, unless I'm missing something.

Regards
eo_support
Posted: Monday, March 16, 2020 4:16:37 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that would prevent such re-entering on our end. Please download the new build from our download page and let us know if it resolves the issue for you.

Thanks!
Jodel
Posted: Tuesday, March 17, 2020 11:41:48 AM
Rank: Newbie
Groups: Member

Joined: 2/20/2020
Posts: 9
Hello,

The issue is indeed resolved. Thanks for the quick support !
eo_support
Posted: Tuesday, March 17, 2020 2:55:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Great. Thanks for confirming the fix!


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.