Cannot print from Draw.io on Ubuntu 22.04.4 LTS
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:
- Start Draw.io
- Click on 'Create New Diagram' 3.Click on 'Blank Diagram', then 'Create'
- Add shape - expand 'General', then click on 'Rectangle'
- Click on document background to deselect any objects
- Set Paper Size to 'US-Letter...' in 'Diagram' tab
- Select 'Print' from 'File' menu
- Click on 'OK'
Expected behavior Printing, either to printer, or to file, should function.
Screenshots
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.
Can you print to file?
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.
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.
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.
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.
Thanks for the research, it does indeed look like https://github.com/electron/electron/issues/31151.