Concurrent Screenshot bug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Concurrent Screenshot bug

Eran Shahar
Hi all,

I found a bug which I believe to be severe.

When you request concurrently from selenium, to take a screenshot of different screens (different url navigated), same screenshot returns from both urls instead of 2 unique screenshots.

This code reproduce the issue: https://github.com/eranshahar/selenium-bug

It sends concurrently 20 screenshots requests for 20 different urls and validate the output it's 20 unique screenshot. It runs in a loop until bug occurrence.

The bug reproduces on versions 3.6.0 and above, including latest version.

Expected Behaviour - 20 different unique screenshots
Actual Behaviour - 2 duplicate screenshots and 18 others unique

I would love to hear your thoughts on this.

Thanks,

Eran




--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2f8754a5-e5ee-4bc3-aaa9-601b827838ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Concurrent Screenshot bug

⇜Krishnan Mahadevan⇝

Eran,

 

Just re-iterating what I stated as a comment on your bug.

 

Can you please retry against the selenium standalone’s latest release version 3.13 selenium grid setup and see if you can reproduce the problem ?

 

Docker selenium shouldn’t be any different from the standalone instance running, except for the containerized abstraction.

 

I was able to run for 18 iterations after which my Mac crashed, but the test didn’t fail with the error you have added (and I didn’t see the JVM exit as well).

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

From: <[hidden email]> on behalf of Eran Shahar <[hidden email]>
Reply-To: <[hidden email]>
Date: Sunday, July 1, 2018 at 7:38 PM
To: Selenium Users <[hidden email]>
Subject: [selenium-users] Concurrent Screenshot bug

 

Hi all,

 

I found a bug which I believe to be severe.

 

When you request concurrently from selenium, to take a screenshot of different screens (different url navigated), same screenshot returns from both urls instead of 2 unique screenshots.

 

This code reproduce the issue: https://github.com/eranshahar/selenium-bug

 

It sends concurrently 20 screenshots requests for 20 different urls and validate the output it's 20 unique screenshot. It runs in a loop until bug occurrence.

 

The bug reproduces on versions 3.6.0 and above, including latest version.

 

Expected Behaviour - 20 different unique screenshots

Actual Behaviour - 2 duplicate screenshots and 18 others unique

 

I would love to hear your thoughts on this.

 

Thanks,

 

Eran

 

 

 

 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2f8754a5-e5ee-4bc3-aaa9-601b827838ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/34501014-D1F0-47D6-A757-AF9CC096ED50%40gmail.com.
For more options, visit https://groups.google.com/d/optout.