Print Spooler Crashing

Posted on 2004-08-24
Medium Priority
Last Modified: 2012-06-27
Currently we five (5) MS Windows 2000 servers with Citrix Metaframe XPa installed on them. The problem we are having is our print spooler keeps crashing.

When users login via Citrix ICA client (just like TS) the Citrix Management Consol maps the users default printer and creates a virtual printer under Windows 2000 server with the driver for that printer. But when the user logs out of Citrix the printer is suppose to disappear as well; however, sometimes this doesn’t happen. The user will log out but the printer stays behind. So when the user goes to login next time it can’t map their default printer because it is already there. This causes the print spooler to crash.

Even If I reboot the server those printers won’t disappear, I have to literally go into printers and faxes and delete each of them and reboot again. Why is this occurring and how can I stop it?

Note: We have standardized our printers to HP 2100, 2200 and 2300 LaserJets and these drivers are installed on the server as well so it can map the proper driver with the proper virtual printer.

Question by:tbinkley
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 11887732
I'm not sure what's causing the actual problem, but you can try deleting the printer from the command line in a batch file that is called either when the user logs out or before the new printer is created.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q189/1/05.ASP&NoWebContent=1 explains this in more detail, but what you basically need to do is:

rundll32 printui.dll,PrintUIEntry /dl /b "<printer>"

Accepted Solution

SelectEffects earned 2000 total points
ID: 12165124
Because it's difficult to diagnose a problem without being at the server, I'm going to give you some recommendations that will hopefully work or put you in the right direction. First a couple of questions--

Did you upgrade the servers to Windows 2000 SP4? What about the workstations? What errors are you getting in event viewer? You may need to expand the virtual memory paging file on the servers and also check the event viewer for errors. We ran into several issues after upgrading to SP4 with the print spoolers also crashing so you may be having a similar problem.

Here's some info I found on that:
If you configure the network printer port to use the RAW data type and you print multiple copies of the file, the spooler might choke and automatically restart. When this happens, you’ll see entries in the System event log with event ID 7031 and a message stating “The Print Spooler service terminated unexpectedly. According to the Microsoft article "Spooler Service Quits When You Submit a Print Job and an Event ID 7031 Message Is Logged in the System Log" (http://support.microsoft.com/?kbid=820550), the bug is a result of a coding error that occurs when the spooler service needs to allocate a larger buffer; instead of increasing the buffer size appropriately, the code resets the buffer size to zero. The fix consists of three files, localspl.dll, spoolss.dll, and win32spl.dll. You can get the update only from PSS. This is one of the 46 pre-SP5 bug fixes, and you can install it only on SP3 systems.

Apparently there is an issue related to Microsoft Windows 2000 Service Pack 4 and the Citrix ctxnotif.dll. During the logoff process, the ctxnotif.dll deletes the printers. The process hangs and only has time to delete the printer if at all before the winlogon closes all running processes and logs you off. Are the users properly logging off?

You may see about rolling back to SP3, or contacting Microsoft for the bug fix. In the mean time you may also try running this script found at http://www.tokeshi.com/raturl/autoendtasks may help to make the logoff more smooth.                  

Also do the printers map properly and not crash when just connecting directly through a remote desktop session or are there problems there?
You may also try moving the default locations for the paging and spooler files in case there is a space issue causing the problem.
Here's a link with info on that:
However, if you're on SP3, you may try applying or reapplying feature release 3/Service Pack 3 from Citrix to help with a fix.  
There's an update from Citrix that may help you depending on your version of metaframe after reapplying your service release.
It was just released earlier this month.

Here’s a link.

Ok I hope this helps, if you have any more questions I'll try my best to assist you.

Good Luck!
Select Effects
LVL 39

Expert Comment

ID: 12236339
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave a recommendation in the Cleanup topic area that this question is:
Accept SelectEffects
Any objections should be posted here in the next 4 days. After that time, the question will be closed.


EE Cleanup Volunteer

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use a Brother DCP 130C or similar Brother printer, at some point you might encounter the following problem: after you change the ink cartridge, the printer displays an "ink empty" message. Sometimes you just need to follow the instructions…
When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question