gmuth / ipp-client-kotlin

A client implementation of the ipp protocol written in kotlin
MIT License
66 stars 9 forks source link

Print command issued but no reaction #26

Closed Badouu closed 1 month ago

Badouu commented 1 month ago

Hello. I have a problem, I try to make a print but nothing happens. Here are the logs:

2024-06-05 11:49:09.805  4503-4668  IppJob                  sn.sensoft.printr                    I  Wait for termination of job #126
2024-06-05 11:49:09.806  4503-4668  IppJob                  sn.sensoft.printr                    I  Job #126, state=pending (reasons=none), uri=ipp://192.168.1.126:631/jobs/126
2024-06-05 11:49:10.924  4503-4668  IppJob                  sn.sensoft.printr                    I  Job #126, state=pending (reasons=none), name=copied_sample.pdf, impressions-completed=0, originating-host-name=192.168.1.116, originating-user-name=remroot, 1 documents, printer-uri=ipp://192.168.1.126:631/printers/EVOLIS_Primacy_2_2, uri=ipp://192.168.1.126:631/jobs/126
2024-06-05 11:49:11.971  4503-4668  IppJob                  sn.sensoft.printr                    I  Job #126, state=processing (reasons=job-printing), name=copied_sample.pdf, impressions-completed=0, originating-host-name=192.168.1.116, originating-user-name=remroot, 1 documents, printer-uri=ipp://192.168.1.126:631/printers/EVOLIS_Primacy_2_2, uri=ipp://192.168.1.126:631/jobs/126
2024-06-05 11:49:14.243  4503-4668  IppJob                  sn.sensoft.printr                    I  Job #126, state=completed (reasons=processing-to-stop-point), name=copied_sample.pdf, impressions-completed=0, originating-host-name=192.168.1.116, originating-user-name=remroot, 1 documents, printer-uri=ipp://192.168.1.126:631/printers/EVOLIS_Primacy_2_2, uri=ipp://192.168.1.126:631/jobs/126
2024-06-05 11:49:20.706  4503-4667  .sensoft.print          sn.sensoft.printr                    I  Waiting for a blocking GC Instrumentation
2024-06-05 11:49:20.818  4503-4517  .sensoft.print          sn.sensoft.printr                    I  Background concurrent copying GC freed 178296(10MB) AllocSpace objects, 326(13MB) LOS objects, 49% free, 10MB/21MB, paused 129us total 113.597ms
2024-06-05 11:49:20.819  4503-4667  .sensoft.print          sn.sensoft.printr                    I  WaitForGcToComplete blocked Instrumentation on Instrumentation for 112.975ms
2024-06-05 11:49:20.831  4503-4519  System                  sn.sensoft.printr                    W  A resource failed to call close. 

I tested 2 commands:

defaultPrinter.printJob(
    pdfFile,
    copies(1),
    numberUp(2),
    jobPriority(1),
    jobName(pdfFile.name),
    DocumentFormat.PDF,
    pageRanges(2..3, 8..10),
    finishings(Finishing.None, Finishing.None),
    printerResolution(300, IppResolution.Unit.DPI),
    Sides.OneSided,
    ColorMode.Color,
    PrintQuality.Normal,
    notifyEvents = listOf("job-state-changed", "job-stopped", "job-completed") // CUPS
)

And

val job = ippPrinter.createJob(jobName(pdfFile.name))
job.sendDocument(FileInputStream(pdfFile))
job.waitForTermination()
gmuth commented 1 month ago

Sorry for your printer (and software stack used) is not operating as expected. Via IPP the printer or IPP server reports that the job is completed successfully. If you have an issue related to my IPP library please provide a description how I can reproduce the issue and describe the expected behavior.

How can I help you? I am not the maintainer of your printers firmware (or CUPS printer driver).

Badouu commented 1 month ago

ok, I'll do more research to investigate the problem. As you say, it could be the printer.