FS#75429 - [kicad] pcbnew printing

Attached to Project: Community Packages
Opened by Greg (Lucky Luke) - Tuesday, 26 July 2022, 15:56 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 27 August 2022, 18:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
George Rawlinson (rawlinsong)
Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
pcbnew Printing Dialog broken since needed package wxwidgets-common and wxwidgets-gtk3

Additional info:
* kicad 6.0.7-1
i have a problem with kicad,pcbnew and the printing options.
Since the new packages wxwidgets-common (3.2.0-4) and wxwidgets-gtk3 (3.2.0-4)
a different printer dialog is displayed.
Now only the possibility to create a ps file is offered. When doing so, kicad hangs and the ps file results in a black page.
Starting kicad via console results in the following message:
$ kicad
terminate called after throwing an instance of 'std::runtime_error'.
what(): Unhandled wxDC type
Aborted (memory dump written)

PDF and connected printers are no longer displayed.
In the pictures kicad_druckerdialog3.png and kicad_druckerdialog4.png I have shown the printer dialog.

See 4 pictures in kicad_printing_errors.tar.bz2

Do I downgrade as follows:
# pacman -U wxgtk3-3.0.5.1-3-x86_64.pkg.tar.zst wxgtk-common-3.0.5.1-3-x86_64.pkg.tar.zst erlang-24.3.2-3-x86_64.pkg. tar.zst gnuplot-5.4.3-5-x86_64.pkg.tar.zst kicad-6.0.6-1-x86_64.pkg.tar.zst python-wxpython-1:4.0.7.2-1-x86_64.pkg.tar.zst

the usual printer dialog appears as in pictures kicad_druckerdialog1.png and kicad_druckerdialog2.png.
Do I have to install anything additional to get the usual printer options like in druckerdialog2.png again?
kind Regards
Lucky Luke
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 27 August 2022, 18:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  wxwidgets 3.2.0-5
Comment by Felipe Gaspari (el_fela) - Wednesday, 27 July 2022, 15:16 GMT
Same issue here. I can't print to pdf as before !
Comment by Toolybird (Toolybird) - Monday, 08 August 2022, 22:23 GMT
Have you reported this upstream?
Comment by Kai Lindholm (Megant) - Friday, 12 August 2022, 18:41 GMT
I got annoyed by this issue too. After doing some debugging I found that the issue stems from the missing support for GTK print in the wxWidgets build
causing wxWidgets to fall back on its wxPostScriptPrinter.
The Arch build uses cmake nowadays and there's apparently no support for enabling GTK print in the wxWidgets cmake builds.
The cmake scripts don't use pkg-config to look up gtk+-unix-print-3.0 etc.

So the solution is to rebuild wxWidgets with GTK print support enabled.
A quick and dirty way to do this is by adding
set(wxUSE_GTKPRINT ON)
list(APPEND wxTOOLKIT_INCLUDE_DIRS "/usr/include/gtk-3.0/unix-print")
to build/cmake/toolkit.cmake
Comment by Stefan Husmann (stefanhusmann) - Sunday, 21 August 2022, 13:13 GMT
On german Arch Linux forum someone confirmed that the fix brought up by Kai fixed this issue for him. Maybe this bug report should be filed against wxwidgets, not kicad.
Comment by Toolybird (Toolybird) - Sunday, 21 August 2022, 22:18 GMT
@stefanhusmann, there now exists  FS#75614 . Leaving this one open for visibility.

Loading...