Wine printing doesn't work

Questions about Wine on Linux
Locked
heillos
Level 1
Level 1
Posts: 6
Joined: Sun Aug 24, 2008 12:27 pm

Wine printing doesn't work

Post by heillos »

Hi,

I have application which works under wine under Xubuntu on three workstations. And on one of them printing doesn't work correctly.

Program sees printers, but it says they doesn't work. The sam with cups-pdf and real printer.
Look at attachment . Sorry for polish version, but there is only polish version of this program.

wine is the same: wine1.6 1:1.6.2-0ubuntu4

What can I do?
Attachments
mkrp1.png
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine printing doesn't work

Post by dimesio »

The obvious first question is: does printing work from native apps on the affected workstation? If it doesn't, the problem is outside of Wine.

If the problem is only with Wine, check whether the affected system has 32 bit CUPS installed. It's needed. If that's not the issue, post terminal output. http://wiki.winehq.org/FAQ#get_log
heillos
Level 1
Level 1
Posts: 6
Joined: Sun Aug 24, 2008 12:27 pm

Re: Wine printing doesn't work

Post by heillos »

dimesio wrote:The obvious first question is: does printing work from native apps on the affected workstation?
yes. Abiword prints OK.
If the problem is only with Wine, check whether the affected system has 32 bit CUPS installed.

Code: Select all

ii  cups                              1.7.5-3ubuntu2        i386                  Common UNIX Printing System(tm) - PPD/driver support, web interface
It's needed. If that's not the issue, post terminal output. http://wiki.winehq.org/FAQ#get_log
Hm... are you sure?

Code: Select all

tristan@lenek:~/Zasoby/mk$ WINEDEBUG=+relay,+seh,+tid wine Księga.exe >> /tmp/output.txt 2>&1 
[...]
tristan@lenek:~/zasoby/mk$ ls -lh /tmp/output.txt 
-rw-rw-r-- 1 tristan tristan 596M gru  5 16:48 /tmp/output.txt
596M Hm....

Code: Select all

tristan@lenek:~/Zasoby/mk$  wine Księga.exe 
fixme:actctx:parse_expect_elem unexpected element L"/dependentAssembly"
fixme:actctx:parse_manifest_buffer failed to parse manifest (null)
fixme:heap:HeapSetInformation 0x110000 0 0x32fcf8 4
and nothing during printing and exiting.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine printing doesn't work

Post by dimesio »

Code: Select all

tristan@lenek:~/Zasoby/mk$ WINEDEBUG=+relay,+seh,+tid wine Księga.exe >> /tmp/output.txt 2>&1 
[...]
tristan@lenek:~/zasoby/mk$ ls -lh /tmp/output.txt 
-rw-rw-r-- 1 tristan tristan 596M gru  5 16:48 /tmp/output.txt
596M Hm....
FYI, when asked for terminal output, don't set any debug channels unless specifically requested.

You're right about plain terminal output not providing any useful information. Have you checked the CUPS logs? The problem may be a setting at that end.
heillos
Level 1
Level 1
Posts: 6
Joined: Sun Aug 24, 2008 12:27 pm

Re: Wine printing doesn't work

Post by heillos »

No, there is nothing new during printing from this wine application.

/var/log/cups/error_log is empty and

Code: Select all

tristan@lenek:~$ cat /var/log/cups/access_log
localhost - - [05/Dec/2014:17:41:47 +0100] "POST /admin/ HTTP/1.1" 401 153 CUPS-Delete-Printer successful-ok
localhost - root [05/Dec/2014:17:41:47 +0100] "POST /admin/ HTTP/1.1" 200 153 CUPS-Delete-Printer successful-ok
localhost - - [06/Dec/2014:07:16:52 +0100] "POST /admin/ HTTP/1.1" 401 397 CUPS-Add-Modify-Printer successful-ok
localhost - root [06/Dec/2014:07:16:52 +0100] "POST /admin/ HTTP/1.1" 200 397 CUPS-Add-Modify-Printer successful-o
When I print from AbiWord, there is:

Code: Select all

localhost - - [06/Dec/2014:07:28:16 +0100] "POST /printers/PDF HTTP/1.1" 200 8240 Print-Job successful-ok
That's strange...


======== edit

Maybe that will be helpfull:

Code: Select all

tristan@lenek:~/Zasoby/mk$ notepad 
err:commdlg:PRINTDLG_ChangePrinterW DocumentProperties fails on L"PDF"
err:commdlg:PRINTDLG_ChangePrinterW DocumentProperties fails on L"HP_LaserJet_Professional_P_1102w"
fixme:commdlg:PRINTDLG_UpdatePrintDlgW No lpdm ptr?
fixme:commdlg:PRINTDLG_WMCommandW Update printdlg was not successful!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine printing doesn't work

Post by dimesio »

Are there any differences between the wineprefixes on the three workstations--something installed or not installed in the non-working one that differs from the other two? Does your user have write access to the affected wineprefix? What other differences are there between the three systems (libraries, settings, hardware)?
heillos
Level 1
Level 1
Posts: 6
Joined: Sun Aug 24, 2008 12:27 pm

Re: Wine printing doesn't work

Post by heillos »

It's problem with ubuntu 14.10. I took old computer and I installed Xubuntu 14.10 + wine + cups-pdf and notepad doesn't print. Later I installed xubuntu 14.04 on the same computer and all works correctly. I think there is something wrong with Xubuntu (or even ubuntu?) 14.10. Something is missing, because on workstation with Xubuntu 14.10 upgraded from 14.04 all was OK.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine printing doesn't work

Post by dimesio »

Does 14.10 have a different version of CUPS? Also, look for any libraries that are present on the upgraded workstation and missing from the ones that don't work.
Locked