QTP 11 – Possible fix for QTP Crashing and Hanging Issues

by Joe Colantonio on December 17, 2012

Post image for QTP 11 – Possible fix for QTP Crashing and Hanging Issues

WTF!

Is your installation of QTP causing any of the following weird behavior:

  • Blue Screen of Death
  • QTP hangs when you try starting or closing it
  • QTP hangs when using text recognition methods
  • On a 64-bit OS the QTP report contains the error "driver cannot be loaded and needs to be updated for 64-bits"

If so before throwing your computer out the window, or sticking your HP voodoo doll with pins, try this quick fix first.

Possible reason for this behavior

Sometimes an older system driver pal_drv.sys, that was developed for old text recognition mechanism that is no longer supported, can cause these odd behaviors.

Possible fix

  • Open a command prompt (Start > Run > type "cmd" > "Ok")
  • Navigate to "/bin" directory (for example: "cd C:\Program Files\HP\QuickTest Professional")
  • Run the following command:nt_tr.exe -remove
  • Reboot the machine.

Give it a try

This doesn't always fix these odd issues, but it doesn't hurt to give it a try

{ 7 comments… read them below or add one }

Neenu January 15, 2013 at 4:20 am

Hi Joe,

I find your site very useful..Thank you for sharing your valuable knowledge.
I am working on QTP 11. When I run multiple scripts from HP ALM(QC) 11, the 1st script runs fine,2nd script status is ”Unable to open the testname> test”..from 3rd script, all has the below status “Unable to open the test in the testing tool”.
The execution log for script 2 is shown as “Unable to open the ” test.
Error from QuickTest Professional: Element not found..”. The execution log for all scripts frpm script 3 is shown as “Unable to open the test in the testing tool.
Error from QuickTest Professional: Cannot retrieve object..”

I can run these scripts 1 by 1 from QC successfully. This issue happens only when i try to run more than 1 script from QC. The most confusing part is that till last week, they were getting executed without any such issue and as far as I know nothing is updated in QC or QTP. I reinstalled the remote agent and QC/QTP add-ins. Still the issue persists.
Any light you could shed on this will be much appreciated.

Thanks, Neenu

Reply

Joe Colantonio January 16, 2013 at 10:42 pm

Neenu » Thanks Neenu! Not sure why this is happening – does this behavior happen for all lab machines?

Reply

Vineet January 31, 2013 at 11:42 am

HI Joe,
I am getting the error “Unable to open test in the testing tool.Error from QuickTest Professional: Cannot retrieve object..”
This error is associated with few scripts when i tried to run from qc rest of them is working fine. I tried on all the lab machines, still have the same problem.
Details are following:-
1. OS:- Windows XP/Vista/Windows7
2. QC:- Component Build

OTA Client 10.0.0.2154
User Interface 10.0.0.2154
WebGate Client 10.0.0.2154
Test Run Scheduler 10.0.0.2154
Execution Flow 10.0.0.2154
Site Administration Client 10.0.0.2154
HP Quality Center 10.00 Enterprise Edition
QTP:- QTP 11

We used to run the scripts from Remote desktop through citrix.

Hope you understand my issue. Please let me know if more clarification is required.

Thanks and Regards
Vineet

Reply

Joe Colantonio February 2, 2013 at 11:33 pm

Vineet » Hi Vineet not sure about this one sounds like a QTP QC connection issue – or all machines on same domain? I usually see the “Unable to open test in the testing tool” error when the QTP machine does not have the “Allow other HP products to run tests and componets” selected but if that was your issue you would not be able to run any tests on that machine.

Reply

Mike February 12, 2013 at 2:20 pm

Hi,

QTP was freezing for me when opening scripts in Windows 7 32-bit so I tried your suggested “nt_tr.exe -remove” command. Now, the I can’t get the menu bar back. Even if I right-click and select “Customize -> Toolbars -> Restore All”. I can’t even check-off the “Menu Bar” option.

Please help,
Thanks

Reply

Joe Colantonio February 12, 2013 at 8:32 pm

Mike » Have you tired doing a repair on your install?

Reply

Viswa March 15, 2013 at 1:42 pm

Hi Joe,

Thanks for all fixes and suggestion on QTP. I need your help to understand why QTP 10 is hanging when I save new script or edited script. It wouldn’t as for file path to save or change not saved. completely QTP paralyzed. May I ask you what can I do to fix this issue.
environment details
– Windows 7 prof 32 bit
– QTP 10
– IE 8

Reply

Leave a Comment

Previous post:

Next post: