Image capture fails and hung when capture 1200x1200 image

Ranorex Spy, Recorder, and Studio.
mcravi
Posts: 7
Joined: Thu Feb 05, 2015 9:04 am

Image capture fails and hung when capture 1200x1200 image

Post by mcravi » Thu Feb 05, 2015 9:22 am

Hello All,

I am using Renorex 5.2 and observed the following issue when capture the image using image based recording option.

I need to validate the image which is of size 1200x1200. Tried image validation using Image based Recording option and observed Renorex studio hung and requires restart. Image capture works fine for small images like button icon, dialog.

How we can capture the image of larger in size?

Thanks in advance

Regards
Ravi.C

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Image capture fails and hung when capture 1200x1200 image

Post by Support Team » Fri Feb 06, 2015 1:34 pm

Hello Ravi,

Thank you for reporting an issue, but unfortunately I cannot reproduce the issue on my machine.
I tried to do an image validation on an image with the size 4608x2592, but had no issues.
Did you get any error messages?
Please make sure that the latest Ranorex version is installed on your machine (Rnaorex 5.2.2).
You can also enable the internal logging feature in Ranorex Studio as shown in the image below. The setting can be enabled in the global settings dialog.
InternalTracing.jpg
InternalTracing.jpg (114.53 KiB) Viewed 828 times
The logfile will be created in the project folder of you solution.

Regards,
Bernhard
.
Image

mcravi
Posts: 7
Joined: Thu Feb 05, 2015 9:04 am

Re: Image capture fails and hung when capture 1200x1200 image

Post by mcravi » Wed Feb 11, 2015 3:19 am

Thank you Bernhard.

I have updated the system with 5.2.2. version and enabled the trace.
Can I have the log file extension and the location its create?

Thanks in advance

Thanks & Regards
Ravi.C

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Image capture fails and hung when capture 1200x1200 image

Post by Support Team » Thu Feb 12, 2015 5:40 pm

Hi Ravi,

the location should be the same as the location where the RanorexStudio.exe executable is.
If this doesn't work please follow the steps which Markus described in the post: http://www.ranorex.com/forum/thread-abo ... tml#p28450

Please also copy the file into the "C:\Program Files (x86)\Ranorex 5.2\RanorexStudio\bin" directory and start Ranorex Studio as administrator using the RanorexStudio.exe file which is located in the same folder.

Regards,
Bernhard
.
Image

mcravi
Posts: 7
Joined: Thu Feb 05, 2015 9:04 am

Re: Image capture fails and hung when capture 1200x1200 image

Post by mcravi » Mon Feb 16, 2015 12:05 pm

Hello Bernhard,

Please find the following attachments
1. "Renorex - Image compare issue.pdf" file explains my observation
2. Since I have not noticed the log files in a specified location, also attaching Renorex project solution file "CompareImages.zip", for your reference

Thanks & Regards
Ravi.C
CompareImages.zip
Project files
(769.59 KiB) Downloaded 70 times
CompareImages.zip
Project files
(769.59 KiB) Downloaded 70 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Image capture fails and hung when capture 1200x1200 image

Post by Support Team » Tue Feb 17, 2015 1:29 pm

Hi Ravi,

Thank you for providing your files. Unfortunately it seems there was a mistake while uploading, both files are the same. May I ask you to upload “Ranorex – Image compare issue.pdf” again?
Thank you.

Regarding the log file
Please ensure that Ranorex Studio is started with Administrator Privileges. Otherwise, there will be no log file created.

Regards,
Markus (S)
.
Image

mcravi
Posts: 7
Joined: Thu Feb 05, 2015 9:04 am

Re: Image capture fails and hung when capture 1200x1200 image

Post by mcravi » Thu Feb 19, 2015 7:11 am

Sorry for inconvenience

Yes, now I am able to generate a log file.

Scenario:
1. Started Ranorex as a administrator
2. Started Image based recording, by selecting Validate option.
3. Mouse clicked on the image area which I want to capture. Observed no image captured and ranorex is not responded further. I stopped recording using "Shift+Esc" option.
4. Started another recording, but I could not able to move the mouse further. Stopped Recording.
5. Requires Ranorex application restart to work on further recording.

Attachment: Log file

Thanks & Regards
Ravi.C
Attachments
RanorexStudio.7z
Ranorex log file
(29.8 KiB) Downloaded 53 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Image capture fails and hung when capture 1200x1200 image

Post by Support Team » Fri Feb 20, 2015 2:46 pm

Hi Ravi,

Thank you for providing the log file. I’ll analyze it in more detail on my machine and get back to you as soon as I found the source of the problem.

Additionally:
May I ask you to upload the mentioned "Renorex - Image compare issue.pdf"
Thank you.

Regards,
Markus (S)
.
Image

mcravi
Posts: 7
Joined: Thu Feb 05, 2015 9:04 am

Re: Image capture fails and hung when capture 1200x1200 image

Post by mcravi » Tue Feb 24, 2015 5:58 am

Hello Markus,

Herewith I am attaching the test scenario of the issue observed.

Please do the needful and provide your recommendation to overcome this issue at the earliest possible.

Thanks & Regards
Ravi.C
Attachments
Renorex - Image compare issue.zip
Issue Scenario
(86.51 KiB) Downloaded 61 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Image capture fails and hung when capture 1200x1200 image

Post by Support Team » Wed Feb 25, 2015 4:38 pm

Hi Ravi,
Thank you again for uploading the file.

Unfortunately, the Log file contains several FATAL errors
(System.AccessViolationException: Attempted to read or write protected memory)
May I ask you to contact me by email ([email protected])?
I’d like to analyze the issue directly with you.

Thank you.
Regards,

Markus (S)
.
Image