Re: ports/textproc/wkhtmltopdf: coredump
Denis Fondras <[email protected]>
| Newsgroups | gmane.os.openbsd.misc |
|---|---|
| Message-ID | <[email protected]> |
Le Mon, Aug 17, 2026 at 11:03:46PM +0900, Simon Wollwage a écrit : > Denis Fondras <[email protected]> writes: > > > Hello, > > > > I am trying to use textproc/wkhtmltopdf to convert a document to PDF. > > I am using OpenBSD-current on amd64. > > > > When running `wkhtmltopdf example.com ex.pdf`, it fails with a coredump : > > ``` > > * thread #1, stop reason = signal SIGSEGV > > * frame #0: 0x000000332b80e181 wkhtmltopdf`QApplication::setStyle(QStyle*) + > > * 721 > > frame #1: 0x000000332a79f158 wkhtmltopdf`main + 280 > > frame #2: 0x000000332a75dc2b wkhtmltopdf`__start + 267 > > ``` > > > > I tried with multiple page and html documents, always the same error. > > > > Can someone confirm it works on its system please ? > > > > Denis > > Does that happen with any document or can you create a minimal > reproducible example that can be used for debugging? It seems that this diff is enough to fix the issue... ``` --- wkhtmltopdf.cc.orig Mon Aug 17 16:25:28 2026 +++ wkhtmltopdf.cc Mon Aug 17 17:18:23 2026 @@ -183,12 +183,14 @@ //Construct QApplication required for printing bool use_graphics=true; +#if 0 #if defined(Q_OS_UNIX) || defined(Q_OS_MAC) #ifdef __EXTENSIVE_WKHTMLTOPDF_QT_HACK__ use_graphics=globalSettings.useGraphics; if (!use_graphics) QApplication::setGraphicsSystem("raster"); #endif #endif +#endif QApplication a(argc, argv, use_graphics); MyLooksStyle * style = new MyLooksStyle(); a.setStyle(style); ```