michaelrsweet / hp-printer-app

Example printer application for HP PCL printers using PAPPL.
Apache License 2.0
35 stars 7 forks source link

Attempting to send a print to a nonexistant default printer segfaults the server #14

Closed ckiee closed 2 years ago

ckiee commented 2 years ago

Describe the bug Attempting to send a print to a nonexistant default printer segfaults the server.

To Reproduce Steps to reproduce the behavior:

  1. Run the server as root
  2. Set it up with hp_deskjet
  3. Submit a print with the submit CLI without a -d argument
  4. Watch the server process segfault.

Expected behavior I expected it to work the same as when I do specify a -d in the submit command (still no print, but it gets further along and thinks it printed fine)

Screenshots Coredump report here: https://i.ckie.dev/ms6hchb.txt

System Information:

michaelrsweet commented 2 years ago

@ckiee I believe this is fixed now, please test once the new snap is posted...

michaelrsweet commented 2 years ago

Closing as fixed.

ckiee commented 2 years ago

Sorry I missed the last email! (And thanks for fixing it, though I haven't tried it yet(?))