Can not launch Wine, after created a HP printer

Bug #476079 reported by Leo Liang
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Wine
Confirmed
Medium
wine (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: wine

OS version: Ubuntu 9.10 Karmic
Related Packages:
wine 1.0.1-0ubuntu8
hplip-cups 3.9.8-1ubuntu2
system-config-printer-gnome 1.1.12+git20090826-0ubuntu8

First, apt-get Wine, and run windows application (Lotus Notes 6.5 on my Windows D:) well.
Next, apt-get hplip-cups & system-config-printer-gnome, until now, Wine still works fine.
Next, after I created a HP1320 laserjet printer (ip10.168.3.10:9100), I found I can no longer launch Wine, not only Lotus Notes, I mean everything including the Config Wine item in the application menu.

these are the response msgs when I launch wine:
wine d:\\Program\ Files\\Lotus5\\Notes\\nlnotes.exe =d:\Program\ Files\\Lotus5\\Notes\\notes.ini

fixme:advapi:RegisterEventSourceW ((null),L"Print"): stub
fixme:winsock:convert_af_w2u unhandled Windows address family 26
fixme:winsock:convert_af_w2u unhandled Windows address family 26
fixme:winsock:convert_af_w2u unhandled Windows address family 26
fixme:ds:DsRoleGetPrimaryDomainInformation ((nil), 1, 0x32eef0) stub
fixme:advapi:LsaOpenPolicy ((null),0x32ee8c,0x00000001,0x32eea8) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:profile:CloseProfileUserMapping (), stub!
fixme:advapi:ObjectOpenAuditAlarmW stub (L"Spooler",0x1480148,L"Server",L"\\\\leo",0x134e8 8,0xd8,0x00000001,0x00000001,(nil),0,1,0x74c5c4f8)
fixme:advapi:ObjectCloseAuditAlarmW stub (L"Spooler",0x1480148,0)
err:winspool:add_printer_driver Failed adding driver "wineps.drv" ("Windows NT x86"): 1805
err:winspool:CUPS_LoadPrinters printer 'HP-LaserJet-1320' not added by AddPrinterA (error 1797)
err:ole:CoGetClassObject class {a9e69610-b80d-11d0-b9b9-00a0c922e750} not registered
err:ole:CoGetClassObject class {a9e69610-b80d-11d0-b9b9-00a0c922e750} not registered
err:ole:create_server class {a9e69610-b80d-11d0-b9b9-00a0c922e750} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {a9e69610-b80d-11d0-b9b9-00a0c922e750} could be created for context 0x17

If more information is needed, pls let me now. Thks.

Tags: printer wine
Revision history for this message
In , Alexandre Julliard (julliard) wrote :

Most likely your CUPS setup points to a network printer that's unreachable.

Revision history for this message
In , Jean-jaques (jean-jaques) wrote :

oh well, you are right... when i unset my CUPS_SERVER var it works...

Revision history for this message
In , James Hawkins (truiken) wrote :

It's not fixed, it's invalid.

Revision history for this message
In , James Hawkins (truiken) wrote :

Closing.

Revision history for this message
In , Dan Kegel (dank) wrote :

This is a valid bug. Windows doesn't have this problem,
and neither should wine.

Revision history for this message
In , Detlef (winspool) wrote :

Created an attachment (id=9114)
ntdll: Add the ticks debug channel

Please apply the attached patch and recompile wine.

Then attach a log (with CUPS_SERVER set):
WINEDEBUG="+process,+loaddll,+tid,+winspool,+ticks" wine app.exe 2>&1 | tee log.txt

Thanks.

--
By by ... Detlef

Revision history for this message
In , gsbabil (gsbabil) wrote :

(In reply to comment #5)
> This is a valid bug. Windows doesn't have this problem,
> and neither should wine.
>

My two cents ... one can verify the bug by running any application with "strace". For example, "strace wine winefile" would halt if cups network printer is unreachable.

doing the same, after stopping cups printer is stopped (/etc/init.d/cupsys stop) will make the application run instantly.

Regards,
-babil.

Revision history for this message
In , Dkeehl (dkeehl) wrote :

Same here.
winecfg, notepad, regedit, all of them take about 4 minutes to start.
To avoid this, I have to add '--without-cups' option when compiling wine.

There's no 'cups' package installed on my computer, only the 'libcups' library.

Revision history for this message
In , Dan Kegel (dank) wrote :

This one pisses me off. Targeting for 1.2.

Revision history for this message
In , Detlef (winspool) wrote :

I'm working on this Problem, but there a lot of things to do and
it's delayed because a Patch crashed on julliards system.

Some things changed in CUPS, and a different API was suggested to enumerate
the installed printers.

--
By by ... Detlef

Revision history for this message
In , Austin English (austinenglish) wrote :

Is this still an issue in current (1.1.11 or newer) wine?

Revision history for this message
In , Dkeehl (dkeehl) wrote :

(In reply to comment #11)
>Is this still an issue in current (1.1.11 or newer) wine?
>
Yes, it's still there.

Using wine 1.1.11 from Arch linux official repository.

Revision history for this message
In , Bugzilla-freedom-x-de (bugzilla-freedom-x-de) wrote :

I have the same problem with latest Arch packages. I have libcups but didn't configure CUPS. Using --nocups works fine. I also attached a debug with ticks as requested.

wine 1.1.17-1
libcups 1.3.9-3

Revision history for this message
In , Bugzilla-freedom-x-de (bugzilla-freedom-x-de) wrote :

Created an attachment (id=19993)
Log +process,+loaddll,+tid,+winspool,+ticks

Revision history for this message
In , Austin English (austinenglish) wrote :

Pretty sure it's still there..

Revision history for this message
Leo Liang (ygleung) wrote :

Binary package hint: wine

OS version: Ubuntu 9.10 Karmic
Related Packages:
wine 1.0.1-0ubuntu8
hplip-cups 3.9.8-1ubuntu2
system-config-printer-gnome 1.1.12+git20090826-0ubuntu8

First, apt-get Wine, and run windows application (Lotus Notes 6.5 on my Windows D:) well.
Next, apt-get hplip-cups & system-config-printer-gnome, until now, Wine still works fine.
Next, after I created a HP1320 laserjet printer (ip10.168.3.10:9100), I found I can no longer launch Wine, not only Lotus Notes, I mean everything including the Config Wine item in the application menu.

these are the response msgs when I launch wine:
wine d:\\Program\ Files\\Lotus5\\Notes\\nlnotes.exe =d:\Program\ Files\\Lotus5\\Notes\\notes.ini

fixme:advapi:RegisterEventSourceW ((null),L"Print"): stub
fixme:winsock:convert_af_w2u unhandled Windows address family 26
fixme:winsock:convert_af_w2u unhandled Windows address family 26
fixme:winsock:convert_af_w2u unhandled Windows address family 26
fixme:ds:DsRoleGetPrimaryDomainInformation ((nil), 1, 0x32eef0) stub
fixme:advapi:LsaOpenPolicy ((null),0x32ee8c,0x00000001,0x32eea8) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:profile:CloseProfileUserMapping (), stub!
fixme:advapi:ObjectOpenAuditAlarmW stub (L"Spooler",0x1480148,L"Server",L"\\\\leo",0x134e8 8,0xd8,0x00000001,0x00000001,(nil),0,1,0x74c5c4f8)
fixme:advapi:ObjectCloseAuditAlarmW stub (L"Spooler",0x1480148,0)
err:winspool:add_printer_driver Failed adding driver "wineps.drv" ("Windows NT x86"): 1805
err:winspool:CUPS_LoadPrinters printer 'HP-LaserJet-1320' not added by AddPrinterA (error 1797)
err:ole:CoGetClassObject class {a9e69610-b80d-11d0-b9b9-00a0c922e750} not registered
err:ole:CoGetClassObject class {a9e69610-b80d-11d0-b9b9-00a0c922e750} not registered
err:ole:create_server class {a9e69610-b80d-11d0-b9b9-00a0c922e750} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {a9e69610-b80d-11d0-b9b9-00a0c922e750} could be created for context 0x17

If more information is needed, pls let me now. Thks.

Revision history for this message
WeatherGod (ben-v-root) wrote :

Could you see if purging wine and then reinstalling it fixes the problem. Maybe installing the hp drivers *somehow* messed with wine's configurations?

Revision history for this message
Leo Liang (ygleung) wrote :

Thanks to WeatherGod, it's solved. Just apt-get purge wine and reinstall again, the problem is gone. I'm not quite familiar with wine, is this a known issue?

Revision history for this message
Scott Ritchie (scottritchie) wrote :

I don't think purging Wine actually helped here. The real issue is probably the linked one - Wine can take 5 minutes or so to start when the printer is unavailable due to CUPS blocking. What likely happened is the printer became available during the time you were uninstalling/reinstalling Wine.

Changed in wine (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in wine:
status: Unknown → Confirmed
Revision history for this message
In , Vitaliy-bugzilla (vitaliy-bugzilla) wrote :

*** Bug 19448 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alexandre Julliard (julliard) wrote :

*** Bug 22681 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sick-soul (sick-soul) wrote :

I had a similar problem in the past,
see if this is the same.

http://bugs.winehq.org/show_bug.cgi?id=14108

Changed in wine:
importance: Unknown → Medium
Revision history for this message
In , Butraxz (butraxz) wrote :

This ticket has not been updated for over 900 days.

Is this still an issue in wine version 1.6-rc3 or higher or is this to be closed as abandoned ?

Revision history for this message
In , Dimesio (dimesio) wrote :

A forum user just ran into this in 1.7.3, so yes, it's still an issue.

Revision history for this message
In , Andre_H (nerv-dawncrow) wrote :

I mostly run wine with an offline network printer (connected to another ubuntu machine via usb, shared via network, both computer and printer are turned off) and it works fine.
What i notice is that (on a different machine) wine starts very slowly when network shares mounted with CIFS are not reachable, but that's also true for other applications...

Revision history for this message
In , Dan Kegel (dank) wrote :

Roseanne points out this may be a dup of bug 3507.

Revision history for this message
In , Jeremielapuree (jeremielapuree) wrote :

Still a bug with wine-4.19?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.