overwolf.media.getScreenshotUrl causes 'timeout' error

I am getting reports of people that image recognition (so overwolf.media.getScreenshotUrl) is not working for them (where it has worked in heartharena v1, but it could be related to other things that changed, for example OS, hearthstone etc).

I posted the logs in #heartharena_channel on discord.

So I talked with the guy. We did some debugging together. He basically gets a “timeout” error on calling the media.getScreenshot (which is also visibile in the index.html log of the heartharena companion logs.

So we tried some stuff, I gave him the OPK for heartharena v1, and it instantly worked (we had to reboot overwolf ofcourse), then Overwolf automatically upgraded to Heartharena v2, and now it also worked there…

Anyway, this is the second time someone has reported this: https://www.reddit.com/r/ArenaHS/comments/q9abcg/alternative_draft_helpers_to_heartharena/

For him it also at some point was just “solved” though we nearly lost him…

But i can imagine people not giving it 5 different tries on various moments. So basically, what could cause a “timeout” error on overwolf.media.getScreenshot ?

Could this be a Windows 11 thing where it doesnt properly allow overwolf.media.getScreenshotUrl during the first tries?

We never had this issue before.

@heartharena, I understand that it’s not reproducible on your machine. But you mentioned that you were able to reproduce it with the user on his machine. Would you mind telling us the steps to reproduce it?
Anyway, we are trying to check it from our side.

Thanks

Not really, when it starts working , it starts working so it seems. He will report to me when it stops working though.

OK. Please update me if there are any updates… We will check the compatibility of this function with Win 11 and other ideas. Currently, I’m personally can’t reproduce it.

Thanks

Another person just came in for which it fails, here is a log for that window from my app:

2021-10-22 07:52:17,938 (INFO) ================== new session ==================
2021-10-22 07:52:17,939 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:52:17,940 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:52:42,969 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:52:42,973 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:53:02,999 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:53:03,000 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:53:24,014 (ERROR) </2.1.0.0/js/index.js> (:2) - similar request already exists
2021-10-22 07:53:24,020 (ERROR) </2.1.0.0/js/index.js> (:2) - similar request already exists
2021-10-22 07:53:39,015 (ERROR) </2.1.0.0/js/index.js> (:2) - similar request already exists
2021-10-22 07:53:39,019 (ERROR) </2.1.0.0/js/index.js> (:2) - An error occurred during black border detection similar request already exists
2021-10-22 07:53:39,031 (ERROR) </2.1.0.0/js/index.js> (:2) - similar request already exists
2021-10-22 07:53:39,036 (ERROR) </2.1.0.0/js/index.js> (:2) - similar request already exists
2021-10-22 07:53:39,048 (ERROR) </2.1.0.0/js/index.js> (:2) - similar request already exists
2021-10-22 07:53:39,051 (ERROR) </2.1.0.0/js/index.js> (:2) - similar request already exists
2021-10-22 07:54:03,212 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:54:03,216 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:54:03,218 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:54:03,220 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:54:03,223 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:54:03,225 (ERROR) </2.1.0.0/js/index.js> (:2) - An error occurred during black border detection Time out
2021-10-22 07:54:03,231 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out
2021-10-22 07:54:03,233 (ERROR) </2.1.0.0/js/index.js> (:2) - Time out

The ‘similar request already exists’ and ‘Time out’ errors are from the overwolf.media.getScreenshotUrl

It seems like its not related to windows 11 because 2 out of the 3 people are using windows 10.

I shared full logs of the above instance at #heartharena_channel with the name:
Overwolf_Log.zip
Hearthstone_Logs.zip

Hey @heartharena,

We fixed the issue on version 0.184, which is available on the Developers channel.`
I’m closing the issue. If there is any problem, please ping me, and I will fi

Thanks.