drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

Cannot print from Draw.io on Ubuntu 22.04.4 LTS

Open jonathanhirschman opened this issue 1 year ago • 6 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug Printing on Ubuntu 22.04 LTS results in program freeze. The only option is to Force Quit once that option appears. This may be related to bug #1569

To Reproduce Steps to reproduce the behavior:

  1. Start Draw.io
  2. Click on 'Create New Diagram' 3.Click on 'Blank Diagram', then 'Create'
  3. Add shape - expand 'General', then click on 'Rectangle'
  4. Click on document background to deselect any objects
  5. Set Paper Size to 'US-Letter...' in 'Diagram' tab
  6. Select 'Print' from 'File' menu
  7. Click on 'OK'

Expected behavior Printing, either to printer, or to file, should function.

Screenshots image

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version v24.1.0

Desktop (please complete the following information):

  • OS: Linux - Ubuntu 22.04.4 64-bit

Additional context Installed using .deb file, with following commands:

sudo dpkg -i ./drawio-amd64-24.1.0.deb 
sudo apt-get install -f

Additionally, using GNOME 42.9, running on X11.

jonathanhirschman avatar Mar 27 '24 20:03 jonathanhirschman

Can you print to file?

davidjgraph avatar May 17 '24 15:05 davidjgraph

Can you print to file?

I can't get far enough to select that option - program locks up immediately after print dialog pops up. This is still happening after upgrades through 24.4.0.

jonathanhirschman avatar May 21 '24 16:05 jonathanhirschman

I can't repeat this. I'll leave it open, but unless someone with the right environment can repeat and wants to investigate, it's very unlikely to be looked at.

davidjgraph avatar Jun 04 '24 15:06 davidjgraph

I can investigate :smile:

I uninstalled the deb package previously installed: $ sudo dpkg -P draw.io

I reinstalled: $ sudo dpkg -i ./drawio-amd64-24.4.13.deb

Running the app from the command line: $ drawio Checking for beta autoupdate feature for deb/rpm distributions Found package-type: deb

Then placed a shape and attempted to print to PDF: Crashing due to FD ownership violation: #0 0x59076d8e8b03 <unknown> #1 0x59076d8e0c0c <unknown> #2 0x59076d8e0bc7 close #3 0x7d49d4694ef3 <unknown>

FYI. I have some print functionality from the community flatpak version, but it's old. Snap version doesn't see printers at all.

jonathanhirschman avatar Jun 04 '24 18:06 jonathanhirschman

I did some more research. The issue is related to Electron and networked printers (which is what I use): https://github.com/electron/electron/issues/31151

FYI, and probably explains why you cannot reproduce.

jonathanhirschman avatar Jun 04 '24 20:06 jonathanhirschman

Thanks for the research, it does indeed look like https://github.com/electron/electron/issues/31151.

davidjgraph avatar Jun 07 '24 09:06 davidjgraph