A tip submitted by LearnQTP reader Ajay Mohan.
pal_drv.sys is the system driver that may be the culprit for your frequent QTP crash issues. This driver was developed for text recognition mechanism that QTP doesn’t support now. To solve the QTP crash problem, you need to uninstall this driver and here is how:
- Go To command prompt. [Start > Run > Type cmd]
- Change directory to C:\Program Files\HP\QuickTest Professional\bin using the command
cd C:\Program Files\HP\QuickTest Professional\bin - Type in nt_tr.exe –remove as shown in the image below.
- You will see a message box stating Text recognition has been uninstalled.
- Reboot machine. It should work without reboot as well but just in case.
- Try opening QTP, it should no longer crash now.
Did this solve your QTP crash issue? Let us know in the comment section below.
If you too want to share your QTP related tips, contact us.
Related:
Thank You Ajay.
Have you downloaded the FREE Optimizing QTP eBook yet? Get It Now!
If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.
Related posts:




27 comments ↓
Hi,
Ok ,but could you tell me for what QTP version has a problem.right now i am working on QTP 10.00 version.after instalation of cumulative patch, i does not face any problems (QTP 10.00).
Regard
Could you elaborate on why this driver is a culprit for QTP crashes? I understand that the driver was developed for currently unused functionality, yet this does not explain how this driver is a culprit for crashing.
@Dev: No problem then. Do the above steps only if you face a crash.
@Mike: Acc. to Ajay, the uninstall of this driver solved his team members QTP crashing issues. I “ll try to get Ajay to answer your question on how he nailed this particular driver.
That would be great. We all seem to have QTP crash from time to time and many know reregister, etc.. It would be excellent to actually start understanding WHY QTP crashes. Understanding how it was arrived at that it was this driver may very well be much more valuable than just knowing to remove the driver. Great find by the way.
I followed the instructions above only instead of uninstalling the exe the MsgBox came back saying that “Text recognition has been installed.” not UnInstalled.
Also the file was in the folder path (C:\Program Files\Mercury Interactive\QuickTest Professional\bin).
My QTP crashes way too often.
Hi ,
I tried above solution but no luck
,but I have another solution for QTP crash..I tried creating a new profile and its working fine(no need to uninstall QTP)..I think QTP 10 has a high dependency on profile.If profile gets corrupted ,it appeares like QTP has got crashed ..if we create a new profile it will work fine..Did this solve your QTP crash issue? Kindly let me know in this forum.
@Mike: Yes for QTP 9.2 and below, file will be in that path. The path in the post above will be applicable for 9.5 and above. It looks like, for you the driver was not installed in the first place. If you repeat these steps you can see the required message. If this didn’t help you, try to repair the QTP installation and as a last resort, may be you can contact HP support or re-install OS on your system.
Thanks Arun for the tip.
@Mike : Could you try creating new profile?
Hi Ajay / Ankur
I have a different problem with QTP. My QTP 10, hangs and then 99% of the Menu Items go missing. I mean, the main menu File or View would be there, but when I open the same, none or just few items are displayed.
To solve this, I go to the regedit and rename the existing Mercury folder (example; MercuryOLD). Next I open QTP againa nd all the menu items are back again.
Please guide me as to why this issue comes in the first place and is the solution I put inplace correct?
Thanks in advance.
Charu,
Thanks for the Tip.
Regards,
Nagarajan.S.A
The problem which I have been facing very frequently is on IE6 and QTP 9.2 wherein while running my script my IE crashes much too frequently and I get to receive a Microsoft IE Error(“Send” “Don’t Send”) Dialog box. I tried contacting HP but they were not able to resolve the issue and I need to do my testing on IE 6. Please help me out with some concrete solution if possible.
I am running the test script through Test Batch runner. QTP crashes for few of script which are taking longer time for execution.
Can you please suggest to overcome this ?
This didn’t solve my QTP problem. I am using the Application Object and on the 2nd time through it crashes consistently
I am encountering this issue during insertion of checkpoints. I haven’t tried your solution yet, since I don’t think this is caused by the text recognition. Can you please help?
Nevertheless, thanks for the advice
I am having an issue with this driver during start up. paldrv is failing to start. This seems to affect running scripts from QC.
Any ideas?
Event log:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Date: 1/15/2010
Time: 12:07:37 PM
User: N/A
Computer:
Description:
The paldrv service failed to start due to the following error:
The system cannot find the file specified.
Hi,
can anyone please tell me how to know wether the QTP running on my client.
that is i mean to tell on the remote client
Hi, I followed the instructions but it does not resolve my problem.
My QTP10.0 crashes ten out of ten times when using a random nnumber parameter.
Can anyone please tell me the possible root cause?
Thanks in advance.
When using QTP 10.0 use the following parameters.
Install pal_drv:
%ProgramFiles%\hp\QuickTest Professional\bin\nt_tr.exe /REGSERVER
Uninstall pal_drv:
%ProgramFiles%\hp\QuickTest Professional\bin\nt_tr.exe /UNREGSERVER
Following also can be used within a Custom Action if you’ve repackaged QTP.
I have installed QTP 10.0 and every time I try to open a saved file, QTP crashing with run time error.
Please help me how to get out of this
@Nagavishnu
Try to install QTP_00604 patch.
It will solve the issue..
I just wanted to make sure people who read this article understand correctly: pal_drv.sys itself doesn’t lead to QTP crashes! It is a kernel driver, so if anything goes wrong with it – you’ll see BSoD.
So if during text recognition you see exceptions in *other* processes – the most probable cause is TrAgent.exe, which is an additional component that helps text recognition driver to catch the text. If that is the case – renaming TrAgent.exe into something else might help.
My QTP10 suddenly got in state where by as soon as you selected any menu item it would crash. And like Arun Prakash mentioned – creating a new user profile fixed this issue without having to uninstall QTP.
A diagnositic that creating a new profile might fix the problem is the observation that QTP did not crash for a different user on the same machine.
QTP opens, checks license, loads add-ins, connects to QC project, and when it is time to show main screen/editor, it shows only the toolbars (left half of the screen … and shuts down!
I have tried everything but no success. It was working fine this morning till I launched a BPT in debug mode from within QC and QC could not launch QTP
Have restarted my machine, cleared sys tray several times, cleared the cache, but no success
Then I repaired QTP through installation disk but no success
Uninstalled and installed JRE (standard) no success
I am stuck!
When launched from within QC it does not show anything and crashes. When I run QTP stand alone, it finds licenses, load add-ins (I have tried w/o loading add-ins), connects to QC project as usual, opens the editor in a way that I see only the top menu bar nothing under it and then BOOM! it shuts down
It is killing me … can anyone help?
@Malik:Try to install QTP patch: – (QTP_00604),if it is not solving your problem then create new profile in your machine it will work…
Leave a Comment