[haiku-bugs] Re: [Haiku] #5994: Printer is not added for BeOS R5 driver.

  • From: "laplace" <trac@xxxxxxxxxxxx>
  • Date: Sat, 15 May 2010 07:55:21 -0000

#5994: Printer is not added for BeOS R5 driver.
-------------------------------------------+--------------------------------
 Reporter:  dru_ed                         |       Owner:  ithamar  
     Type:  bug                            |      Status:  assigned 
 Priority:  normal                         |   Milestone:  R1       
Component:  Printing                       |     Version:  R1/alpha2
 Keywords:  R5, HP PCL3, LaserJet, driver  |   Blockedby:           
 Platform:  x86                            |    Blocking:           
-------------------------------------------+--------------------------------
Changes (by laplace):

  * owner:  laplace => ithamar
  * status:  in-progress => assigned


Comment:

 When the printer spooler folder is created the print_server is able to
 load the BeOS R5 printer driver add-on and then calls the function
 add_printer(spool_folder_name). In error case the function should return
 NULL, and this is what happens no in Haiku. I have now idea why.

 BTW if the print_server ignores that error and creates the printer anyway.
 It seems that it can be used. I could print from StyledEdit to a file
 without any issues.

 I am quite sure that the problem is not caused by bugs in the print_server
 or Printers preflet, because I have tested it on BeOS R5 with the Haiku
 print_server and preflet and it was not a problem to create a printer. The
 tested version is older than what's in Haiku, but the relevant parts for
 this have not changed, as far as I can tell.

 For now I won't investigate any further. Someone with the proper
 disassembly experience could try to debug the function add_printer of the
 "HP PCL3 LaserJet Compatible" and see what causes the trouble.

 Ithamar, I have assigned the ticket to you. Feel free to reassign it to
 me, if you don't want to look into it.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5994#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: