Page 1 of 1

Failed to instrument Qt process

Posted: Wed Mar 11, 2015 8:23 am
by odklizec
Hi,

I'm getting below error while running the tests on my dev. machine...
Failed to instrument Qt process. Please make sure you have enough privileges to access the process and a supported version of Qt.
(This message is only shown once per report.)
It appears at start of all tests, regardless of tested technology. Simply, it shows before first UI-based action, even if there is no QT technology used at all.

I guess the problem is somewhat related to the fact that I'm using admin account, but limited with some domain group policies. All tests seem run fine, there is just this warning displayed at start of each test. I'm not getting such error on my virtual machine, which is not in domain.

Any idea what to do to eliminate this warning? It's not harmful, it's just annoying to see it in report ;) Is there anything our domain admins can do about this (e.g. putting Ranorex to some kind of white list)? Thanks in advance.

Edit: using Ranorex 5.2.3

Re: Failed to instrument Qt process

Posted: Thu Mar 12, 2015 2:55 pm
by krstcs
Are you running VirtualBox or any other Qt-based software at the same time as the test?

This would explain why the VM doesn't get the warning. It isn't running an instance of VirtualBox itself.

Re: Failed to instrument Qt process

Posted: Thu Mar 12, 2015 3:26 pm
by odklizec
Hi krstcs,

Thanks for your input. Running instance of VirtualBox was indeed the cause of this error! I think I will have to live with that warning ;)

Re: Failed to instrument Qt process

Posted: Thu Mar 12, 2015 3:58 pm
by krstcs
My understanding from the thread the Ceige started is that there is a bug in Ranorex related to this and that this should not be happening, at least in Ceige's case. Markus said they are working on a fix for this issue and that it should be in the bug patch (5.3.1, I assume) sometime shortly. Maybe it will help with this issue as well.

However, I have seen it with VirtualBox for a while, so it may not help. That was how I guessed it was VBox for you as well. :D

Re: Failed to instrument Qt process

Posted: Thu Mar 12, 2015 4:09 pm
by Support Team
Hi krstcs and odklizec,

The fix will just solve the issue Ciege mentioned, since Ranorex tries to identify Ranorex Studio, which is not "allowed".
This warning is about QT and as you krstcs already mentioned because of a running QT application.
When you want to get rid of this warning you can put it on the "ignore list". Just select do not show again when the technology limitation warning is shown in Spy.

Regards,
Markus

Re: Failed to instrument Qt process

Posted: Fri Mar 13, 2015 8:02 am
by odklizec
Hi Markus,

Thanks for the tip! I did not know there is a possibility to put it to the ignore list. This option is somewhat hidden ;) Is it then disabled per application or for all QT apps? And where is this option stored (just in case someone accidentally enables it)?

Edit:
OK, it seems to be a global option for all QT apps. So once enabled, warning is suppressed for all QT apps. I found below entry in RanorexConfig5.xml

Code: Select all

	<tools.ignoredtechnologylimitations>
		QtWindow;
	</tools.ignoredtechnologylimitations>

Re: Failed to instrument Qt process

Posted: Thu May 12, 2016 10:27 am
by roxter
Hello!
Where can I define this global option. Can not locate the mentionend config file in my installation of version 6.0.0 ?

Re: Failed to instrument Qt process

Posted: Thu May 12, 2016 12:07 pm
by odklizec
Hi,

The Rx6 config file is now called RanorexConfig6.xml and it can be found at C:\Users\yourname\AppDataRoaming