View Issue Details

IDProjectCategoryView StatusLast Update
0000089SkyChart1-Softwarepublic08-09-18 08:03
ReporterStephen Irons Assigned ToPatrick Chevalley  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86OSWindowsOS Version2000
Product Version3.0.1.0 
Summary0000089: Printing fails when the Windows default printer is a network printer
DescriptionIf the Windows default printer is a network printer, and I select either File > Print Setup or File > Print, Cartes du Ciel v.3.0.1.0 displays the following message box:

Cartes du Ciel
Error icon
Invalid printer (Error: The operations completed successfully....,DC=0 Driver="Polecat" Device="\\taitprint\Polecat" Port="Samba Printer Port").

The message seems to say that the operation completed, but CdC misinterprets it as an error.

Selecting Ok sometimes makes CdC end without asking to save a changed configuration file (in other words, it crashes). Sometimes CdC survives, but does not display the expected dialog.

If the default printer is a local printer, box Print and Print Setup work correctly, and I can select a network printer and print to it.
Steps To Reproduce1. Select a network printer as the default printer
2. Select File > Print Setup
3. Error message box appears
3a. Expected:Print Setup dialog

Same when you select File > Print at step 2.
TagsNo tags attached.
Attached Files
cdc-gdb-trace-1.txt (5,027 bytes)   
cdc-gdb-trace-1.txt (5,027 bytes)   

Relationships

related to 0000085 closedPatrick Chevalley Program do not print sky chart 

Activities

Patrick Chevalley

06-06-17 23:22

administrator   ~0000160

This seem to be the same error as 0000085.

I don't think this is related to a network printer because this work for me. But I suspect some driver to not respond the expected way.

Can you specify the printer model and driver version?

What can really help is if you can get the last debug version from http://www.ap-i.net/skychart/snapshot/ , install gdb and run in debug as indicated at the bottom of the page.

Stephen Irons

06-06-19 01:44

reporter   ~0000161

Printer name: \\taitprint\Polecat
Printer model: Polecat (this is a unique name within the company, not the type of printer)
Port name: Samba Printer Port
Data format: RAW
Share name: Polecat

Printer model: Toshiba eStudio 450
Driver name: PSCRIPT5.DLL
Data file: Polecat.ppd (this is a printer-specific file)
Config file: PS5UI.DLL
Driver version: 5.02

Additional files used by this driver:
  c:\WINNT\system32\spool\DRIVERS\W32X86\3\PSCRIPTFE.NTF
  c:\WINNT\system32\spool\DRIVERS\W32X86\3\PSCRIPTF.NTF

Patrick Chevalley

06-06-19 10:59

administrator   ~0000162

I install the Toshiba driver but cannot reproduce the problem.

Please get printer_test.zip from http://www.ap-i.net/skychart/snapshot/
Run the include selectprinter.exe (it is a big file because it contain all debug information).
Try all the button in sequence and see if the information look good, finally try the "Print test" button.

If it also failed please run with gdb as I describe in the previous note.

Stephen Irons

06-06-20 04:12

reporter   ~0000163

I have tried CdC under mingw gdb-6.3-2, with the following results:

* with a local printer HP 670C as default, CdC halts in gdb with a seg fault when I activate File > Print or File > Print Setup

* with a Toshiba eStudio 450 network printer \\taitprint\Polecat as default, CdC displays the Invalid Printer error message, does not halt in gdb and seems to continue operating normally if I press Ok. If I press Cancel in the error box, gdb reports that Cdc has ended normally. I never get the Print or Print Setup dialog boxes.

File cdc-gdb-trace-1.txt attached

Stephen Irons

06-06-20 04:29

reporter   ~0000164

Last edited: 06-06-20 04:32

Ran selectprinter.exe with the following printers as default:
  * Toshiba eStudio 450 network printer \\taitprint\Polecat
  * Toshiba eStudio 4511 network printer \\taitprint\Jaguar
  * HP 5000N network printer \\taitprint\Lion
  * HP DeskJet 670 local printer lpt1:

Generally,
  * network printers gave the Invalid Printer error box, then displayed the form
  * network printers did not read printer settings
  * buttons either gave Invalid Printer error, or crashed selectprinter.exe

See attached file cdc-selectprinter.exe-test-1.pdf

Well, it would have been attached if I could have uploaded a .pdf file. What format can I upload a text document with pictures? OpenOffice text? html?

Patrick Chevalley

06-06-25 22:44

administrator   ~0000165

Please try again with the June 25 version from http://www.ap-i.net/skychart/snapshot/
This include a major update of the printing component.

BTW .pdf are now accepted for upload

Stephen Irons

06-06-26 00:40

reporter   ~0000167

The problem as reported is solved with snapshot 2006-06-25. CdC no longer hangs when File > Print or File > Print Setup is selected when the default printer is a network printer. Printing to the default printer is now possible for both network and local printers.

However, CdC now crashes when the printer is changed from the "Printer Setup" dialog. I have raised a new problem report for this problem.

http://www.ap-i.net/mantis/view.php?id=96

Patrick Chevalley

06-06-26 08:18

administrator   ~0000169

Fixed by Lazarus svn 9492 and Skychart 509.

Issue History

Date Modified Username Field Change
06-06-14 04:34 Stephen Irons New Issue
06-06-17 23:15 Patrick Chevalley Status new => assigned
06-06-17 23:15 Patrick Chevalley Assigned To => Patrick Chevalley
06-06-17 23:15 Patrick Chevalley Relationship added related to 0000085
06-06-17 23:22 Patrick Chevalley Note Added: 0000160
06-06-19 01:44 Stephen Irons Note Added: 0000161
06-06-19 10:59 Patrick Chevalley Note Added: 0000162
06-06-20 04:12 Stephen Irons Note Added: 0000163
06-06-20 04:13 Stephen Irons File Added: cdc-gdb-trace-1.txt
06-06-20 04:29 Stephen Irons Note Added: 0000164
06-06-20 04:32 Stephen Irons Note Edited: 0000164
06-06-25 22:44 Patrick Chevalley Note Added: 0000165
06-06-26 00:40 Stephen Irons Note Added: 0000167
06-06-26 08:18 Patrick Chevalley Status assigned => resolved
06-06-26 08:18 Patrick Chevalley Resolution open => fixed
06-06-26 08:18 Patrick Chevalley Note Added: 0000169
08-09-18 08:03 Patrick Chevalley Status resolved => closed