Page 1 of 2

[.03] Printing problems on Windows 8.1

Posted: Fri Nov 08, 2013 2:42 am
by tzuk
Initially I thought the Windows 8.1 printing problem was just on 64-bit Windows 8.1, but turns out it also affected 32-bit Windows 8.1.

Version 4.07.03 should fix this problem (which is specific to Windows 8.1).

Related topic:
http://www.sandboxie.com/phpbb/viewtopic.php?t=16845

Posted: Fri Nov 08, 2013 3:59 am
by doktornotor
Excellent. Works now.

Note for others: Had to run

Code: Select all

net stop spooler && net start spooler
before printing worked (or you can simply reboot ) :P

Posted: Fri Nov 08, 2013 5:00 am
by tzuk
I wonder why you needed to restart the spooler service. That was not necessary in my tests, but let's see what others report.
In case this happens again, please take a look at spoolsv.exe using Process Explorer, the View > Show Lower Pane command (Ctrl+L).
You should see one resource/handle with the name \RPC Control\LRPC-xxxxxxxxxxxxxxx.
If you see more than one, or if you see something like \RPC Control\OLExxxxxxxxxxxx instead, please let me know.

Posted: Fri Nov 08, 2013 7:17 pm
by dja2k
Thank tzuk! Problem fixed here on Win8.1 x64 and didn't have to stop\restart the spooler service nor restart windows for it to work properly.

dja2k

Posted: Sat Nov 09, 2013 3:31 am
by doktornotor
tzuk wrote:I wonder why you needed to restart the spooler service. That was not necessary in my tests, but let's see what others report.
No idea. The printers simply still were not visible after SBIE upgrade, until spooler restart... No problems since then.

Posted: Sun Nov 10, 2013 1:23 am
by dja2k
Was working fine after the upgrade, but not anymore after a restart. As soon as I press PRINT, Firefox crashes and closes itself.

dja2k

Posted: Thu Nov 28, 2013 5:09 am
by ede74
Printing not working, window popping up saying no printer installed. All sandboxed applications are affected. Win 8.1 64 Bit Sandboxie 4.07.04

edit: a reboot solved the problem :oops:

Posted: Mon Dec 02, 2013 2:19 am
by SLE
Printing still doesn't work on Win 8.1. x64. Sandboxie 4.07.04. (Message: no printer installed)
If I stop and restart spooler service it works - but then ONLY for sandboxed programs and only for the current session.

Image

Posted: Tue Dec 03, 2013 3:04 am
by tzuk
Interesting to see an \RPC CONTROL\OLE* resource in your screenshot, SLE.
Tell me please, when you restart the spooler service, do you still see an OLE resource in spoolsv.exe ?

Posted: Tue Dec 03, 2013 3:43 pm
by SLE
tzuk wrote:Tell me please, when you restart the spooler service, do you still see an OLE resource in spoolsv.exe ?
No after restart of spooler service RPC CONTROL\OLE is gone. But only until i reboot machine...

Posted: Wed Dec 04, 2013 2:12 am
by tzuk
I want to clarify: When you restart your computer, your spoolsv.exe starts and has both an LRPC and an OLE resource?

* * *

If you restart spoolsv.exe and it comes up with just the LRPC resource, can you identify when it adds the OLE resource?
Does it do that in response to something that you do?

Are you trying to print in the sandbox and outside the sandbox at the same time?

* * *

I've been experimenting a bit with printing on my test 64-bit Windows 8.1 system and everything seems to work fine
even when I switch between more than one user account, and between printing in the sandbox and printing outside
the sandbox. So I need to understand what to do to trigger the errors.

Posted: Wed Dec 04, 2013 3:32 am
by SLE
tzuk wrote:I want to clarify: When you restart your computer, your spoolsv.exe starts and has both an LRPC and an OLE resource?
Right, just after reboot of pc both handles are there. Before I start something in a sandbox.

tzuk wrote: If you restart spoolsv.exe and it comes up with just the LRPC resource, can you identify when it adds the OLE resource?
Does it do that in response to something that you do?
I works some time after spooler restart via CLI (for printing within and without the sandbox) but after some time the OLE resource came back. I tried some time but wasn't able to find a more specific pattern until now.

No printing jobs inside and outside at the same time.

If there is something possible to trigger it deeper (procmon?) than just let me know.

Posted: Thu Dec 05, 2013 1:51 am
by tzuk
I have no idea how to trigger these OLE resources in spoolsv.exe. I don't see them on my test system. But I will add some code to treat the OLE resource the same way as the LRPC resource, and we'll see if that fixes the problem.

Posted: Fri Dec 06, 2013 1:37 am
by dja2k
Maybe I am facing a similar problem but I keep getting that same error as SLE. Thanks tzuk for looking into it.

dja2k

Posted: Fri Dec 06, 2013 2:55 am
by tzuk
I reviewed the code again and I'm afraid I don't see where the OLE resource would fit. So no solution yet I'm afraid. I'd like to ask you to check something else. You say that after restarting the spooler service, it works for a while. Can you please use Process Explorer and check if the actual name of that LRPC resource changes?

That is to say, restart spooler, check and note exact name of that LRPC resource, also note the process ID for spoolsv.exe. Then after a while, when printing stops working, look at spoolsv.exe again. Is it the same process ID, and does the LRPC resource still have the same name?