Bug 397864 - Print creator aborts when export to PDF
Summary: Print creator aborts when export to PDF
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-PrintCreator (show other bugs)
Version: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks: 434341
  Show dependency treegraph
 
Reported: 2018-08-25 13:06 UTC by Jan van Bekkum
Modified: 2023-11-21 04:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.2.0
Sentry Crash Report:


Attachments
Screenshot abort (51.57 KB, image/jpeg)
2018-08-29 08:20 UTC, Jan van Bekkum
Details
Debugger dump (16.95 KB, text/plain)
2018-08-29 09:37 UTC, Jan van Bekkum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan van Bekkum 2018-08-25 13:06:00 UTC
PrintCreator aborts if "Print to PDF" is selected. It works as advertised if a different printer is selected.
Comment 1 caulier.gilles 2018-08-25 13:11:36 UTC
Can you reproduce the dysfunction using last post 6.0.0 beta1 windows installer ?

https://files.kde.org/digikam/

Gilles Caulier
Comment 2 Jan van Bekkum 2018-08-25 16:18:16 UTC
I'll give it a try. Is there any way I can import my 5.9 database into 6.0 beta 1? Then I can stay with 6.0 and don't have to switch versions all te time.
Comment 3 caulier.gilles 2018-08-25 16:38:50 UTC
It's sqlite or mysql ?

In all cases, make a backup of current DB files.

Install 6.0.0, and start it. The application must do the job automatically.

Gilles Caulier
Comment 4 caulier.gilles 2018-08-29 05:10:28 UTC
Jan,

The Windows installer have been recompiled with last changes from source code
and is available here for testing :

https://files.kde.org/digikam/

Take a care : it's a beta release. Make a database backup before to test.

Problem still here ?

Gilles Caulier
Comment 5 Jan van Bekkum 2018-08-29 08:20:28 UTC
Created attachment 114670 [details]
Screenshot abort
Comment 6 Jan van Bekkum 2018-08-29 08:21:37 UTC
It is still the same.
Comment 7 caulier.gilles 2018-08-29 08:51:27 UTC
Install DebugView from Microsoft, and look the debug trace generated by digiKam while this dysfunction.

Gilles Caulier
Comment 8 Jan van Bekkum 2018-08-29 09:36:49 UTC
I hope this is what you are looking for. Otherwise I need better instructions how to use the debugger.
Comment 9 Jan van Bekkum 2018-08-29 09:37:44 UTC
Created attachment 114673 [details]
Debugger dump

I hope this is what you are looking for. Otherwise I need better instuctions.
Comment 10 caulier.gilles 2018-08-29 09:51:52 UTC
yes it is. debugview is not a crash handler, it just print debug messages generated by an application.

Under Linux, this can be catch through a terminal. Under Windows, no.

00000169	46.89800262	[526416] digikam.general: (1) paper page  0  size  QSizeF(210, 297)	
00000170	46.89805603	[526416] QPrintDialog: Cannot be used on non-native printers	
00000171	46.89809799	[526416] digikam.general: (2) paper page  0  size  QSizeF(210, 297)	
00000172	46.89811707	[526416] QPrintDialog: Cannot be used on non-native printers	

^^^
This is the reason why the tool do not work. This require investigations.

Gilles Caulier
Comment 11 caulier.gilles 2020-01-12 22:35:32 UTC
Jan,

We have updated Qt to last 5.14 and KF5 to 5.65 in the bundles.

Can you reproduce the problem with digiKam 7.0.0-beta2 pre release ?

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 12 Jan van Bekkum 2020-01-12 22:45:46 UTC
Until March I am traveling and unable to test.
Comment 13 Jan van Bekkum 2020-02-15 07:36:21 UTC
I tested with 7.0.0 beta 3. I am still getting "Printing process aborted".
Comment 14 caulier.gilles 2020-08-01 14:18:10 UTC
digiKam 7.0.0 stable release is now published and now available as FlatPak:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 15 Jan van Bekkum 2020-08-07 12:17:06 UTC
(In reply to caulier.gilles from comment #14)
> digiKam 7.0.0 stable release is now published and now available as FlatPak:
> 
> https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/
> 
> We need a fresh feedback on this file using this version.
> 
> Thanks in advance
> 
> Gilles Caulier

*It looks like the issue hasn't been resolved.
Comment 16 caulier.gilles 2022-01-09 04:07:53 UTC
Hi Jan and happy new year,

Can you reproduce the problem with digiKam 7.5.0 pre-release installer for
Windows avaialble here :

https://files.kde.org/digikam/

Best regards

Gilles Caulier
Comment 17 Jan van Bekkum 2022-01-09 07:12:21 UTC
Downloaded version 7.5.0. The first time is started the Print Creator with a single image digiKam froze. The second time after going through the screens without making any changes I got "Printing process aborted", the same issue as reported earlier.
Comment 18 caulier.gilles 2023-05-04 03:17:41 UTC
Just tested under Windows and problem still present with current 8.1.0
Comment 19 caulier.gilles 2023-10-15 12:40:17 UTC
@Jan van Bekkum,


This problem still reproducible with the new digiKam 8.2.0 pre-release Windows
installer available at usual place:

https://files.kde.org/digikam/

This new bundle is based on last Qt framework 5.15.11 and KDE framework 5.110.

Thanks in advance

Gilles Caulier
Comment 20 caulier.gilles 2023-11-20 16:13:40 UTC
Maik,

Problem remain with 8.2.0 VCPKG installer. DebugView said :

[1416] QPrintDialog: Cannot be used on non-native printers

GIlles
Comment 21 caulier.gilles 2023-11-21 04:56:26 UTC
Git commit aab30b846508c990af4d71d5533c72d552a13b7f by Gilles Caulier.
Committed on 21/11/2023 at 05:50.
Pushed by cgilles into branch 'master'.

Under Windows print directly to PDF is not a native format, in opposite to Linux and MacOS.
A specific PDF generator must be installed under Windows as a virtual printer driver.
PDF is now not available as output format under Windows.
Related: bug 434341, bug 474257
FIXED-IN: 8.2.0

M  +1    -1    core/dplugins/generic/tools/printcreator/CMakeLists.txt
M  +10   -4    core/dplugins/generic/tools/printcreator/manager/advprintsettings.cpp
M  +9    -3    core/dplugins/generic/tools/printcreator/manager/advprintsettings.h
M  +2    -2    core/dplugins/generic/tools/printcreator/printcreatorplugin.cpp
M  +1    -1    core/dplugins/generic/tools/printcreator/printcreatorplugin.h

https://invent.kde.org/graphics/digikam/-/commit/aab30b846508c990af4d71d5533c72d552a13b7f