error
public
Jul 09, 2024
Never
33
1 Scanning fonts... 2 2024/07/10 00:44:37 invalid font dir /usr/share/texmf/fonts/opentype/public stat /usr/share/texmf/fonts/opentype/public: no such file or directory 3 open pdf/test/cache.fc: no such file or directory 4 loading font set: open pdf/test/cache.fc: no such file or directory 5 webrender.progress: 2024/07/10 00:44:39 Step 1 - Fetching and parsing HTML 6 webrender.warning: Relative URI reference without a base URI: ./style.css <link href='./style.css'> 7 webrender.progress: 2024/07/10 00:44:39 Step 3 - Applying CSS - 1 sheet(s) 8 webrender.progress: 2024/07/10 00:44:39 Step 4 - Creating formatting structure 9 webrender.progress: 2024/07/10 00:44:39 Step 5 - Creating layout - Page 1 10 panic: runtime error: invalid memory address or nil pointer dereference 11 [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9888e1] 12 13 goroutine 1 [running]: 14 github.com/benoitkugler/textprocessing/pango.(*Item).getFontVariant(...) 15 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/pango/item.go:472 16 github.com/benoitkugler/textprocessing/pango.handleVariantsForItem({0xc0007f4080, 0x15, 0x20}, {0xc00003eb10, 0x16, 0x16}, 0xc00125b9c0) 17 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/pango/item.go:576 +0x61 18 github.com/benoitkugler/textprocessing/pango.handleVariants({0xc0007f4080, 0x15, 0x20}, {0xc00003eb10, 0x16, 0x16}, 0xc0007f4080?) 19 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/pango/item.go:587 +0x3c 20 github.com/benoitkugler/textprocessing/pango.(*Context).postProcessItems(0xc000574d80, {0xc0007f4080?, 0x0?, 0xc0007f4080?}, {0xc00003eb10?, 0x20?, 0x0?}, 0xc00125b9c0) 21 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/pango/item.go:601 +0x3f 22 github.com/benoitkugler/textprocessing/pango.(*Layout).checkLines(0xc00057a390) 23 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/pango/layout.go:2014 +0x7ab 24 github.com/benoitkugler/textprocessing/pango.(*Layout).GetLine(...) 25 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/pango/layout_line.go:42 26 github.com/benoitkugler/webrender/text.(*TextLayoutPango).GetFirstLine(0xc00057a360) 27 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/text/engine_pango.go:570 +0x2a 28 github.com/benoitkugler/webrender/text.SplitFirstLine({0xc0005210b3, 0x15}, {0x7f96102492c8?, 0xc0008557c0?}, {0x1370f88, 0xc00057a240}, {0x136a9c0, 0xc001880740}, 0x0, 0x1) 29 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/text/text.go:126 +0x277 30 github.com/benoitkugler/webrender/html/layout.splitTextBox(0xc00057a240, 0xc00030fc08, {0x136a9c0, 0xc001880740}, 0x0, 0x1) 31 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/inline.go:1156 +0x20d 32 github.com/benoitkugler/webrender/html/layout.splitInlineLevel(0xc00057a240, {0x1376e60, 0xc00030fc08}, 0x42a60000, 0x4431ace5, 0x0, 0x0, {0x1377160, 0xc000289b08}, 0xc0003765a0, ...) 33 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/inline.go:621 +0x1f4 34 github.com/benoitkugler/webrender/html/layout.splitInlineBox(0xc00057a240, {0x1376ee0, 0xc000356e08}, 0x42a60000, 0x4431acda, 0x0, 0x0, {0x1377160, 0xc000289b08}, 0xc0003765a0, ...) 35 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/inline.go:844 +0x577 36 github.com/benoitkugler/webrender/html/layout.getNextLinebox(0xc00057a240, 0xc000356e08, 0x42c0e148, 0x0, 0x0, {0x1377160, 0xc000289b08}, 0xc000376300, 0xc000376300, {0x0, ...}) 37 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/inline.go:156 +0x5a8 38 github.com/benoitkugler/webrender/html/layout.(*lineBoxeIterator).Has(0xc0001eb1f0) 39 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/inline.go:57 +0x94 40 github.com/benoitkugler/webrender/html/layout.lineBoxLayout(0xc00057a240, {0x1377160, 0xc000289b08}, 0x0, 0xc000356e08, {0x0, 0x0, 0x0}, 0x1, 0xc000376300, ...) 41 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:674 +0x1d6 42 github.com/benoitkugler/webrender/html/layout.blockContainerLayout(0xc00057a240, {0x1377160, 0xc000289b08}, 0x0, 0x0, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, 0x0, ...) 43 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:381 +0xa07 44 github.com/benoitkugler/webrender/html/layout.blockBoxLayout(0xc00057a240, {0x7f9610248fe0, 0xc000289b08}, 0x0, 0x0, 0xc000289818, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 45 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:127 +0x63a 46 github.com/benoitkugler/webrender/html/layout.blockLevelLayoutSwitch(0xc00057a240, {0x7f9610248e30, 0xc000289b08}, 0x0, 0x0, 0xc000289818, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 47 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:86 +0x195 48 github.com/benoitkugler/webrender/html/layout.blockLevelLayout(0xc00057a240, {0x7f9610248e30, 0xc000289b08}, 0x0, 0x0, 0xc000289818, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 49 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:65 +0x1bd 50 github.com/benoitkugler/webrender/html/layout.inFlowLayout(0xc00057a240, 0xc000289818, 0x0, {0x1377160, 0xc000289b08}, {0x0, 0x0, 0x0}, 0x1, 0xc000376300, ...) 51 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:859 +0x6f7 52 github.com/benoitkugler/webrender/html/layout.blockContainerLayout(0xc00057a240, {0x1377160, 0xc000289808}, 0x0, 0x0, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, 0x0, ...) 53 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:392 +0xcb4 54 github.com/benoitkugler/webrender/html/layout.blockBoxLayout(0xc00057a240, {0x7f9610248fe0, 0xc000289808}, 0x0, 0x0, 0xc000289518, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 55 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:127 +0x63a 56 github.com/benoitkugler/webrender/html/layout.blockLevelLayoutSwitch(0xc00057a240, {0x7f9610248e30, 0xc000289808}, 0x0, 0x0, 0xc000289518, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 57 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:86 +0x195 58 github.com/benoitkugler/webrender/html/layout.blockLevelLayout(0xc00057a240, {0x7f9610248e30, 0xc000289808}, 0x0, 0x0, 0xc000289518, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 59 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:65 +0x1bd 60 github.com/benoitkugler/webrender/html/layout.inFlowLayout(0xc00057a240, 0xc000289518, 0x0, {0x1377160, 0xc000289808}, {0x0, 0x0, 0x0}, 0x1, 0xc000376300, ...) 61 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:859 +0x6f7 62 github.com/benoitkugler/webrender/html/layout.blockContainerLayout(0xc00057a240, {0x1377160, 0xc000289508}, 0x0, 0x0, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, 0x0, ...) 63 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:392 +0xcb4 64 github.com/benoitkugler/webrender/html/layout.blockBoxLayout(0xc00057a240, {0x7f9610248fe0, 0xc000289508}, 0x0, 0x0, 0xc000289218, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 65 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:127 +0x63a 66 github.com/benoitkugler/webrender/html/layout.blockLevelLayoutSwitch(0xc00057a240, {0x7f9610248e30, 0xc000289508}, 0x0, 0x0, 0xc000289218, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 67 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:86 +0x195 68 github.com/benoitkugler/webrender/html/layout.blockLevelLayout(0xc00057a240, {0x7f9610248e30, 0xc000289508}, 0x0, 0x0, 0xc000289218, 0x1, 0xc000376300, 0xc000376300, 0xc000525fa0, ...) 69 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:65 +0x1bd 70 github.com/benoitkugler/webrender/html/layout.inFlowLayout(0xc00057a240, 0xc000289218, 0x0, {0x1377160, 0xc000289508}, {0x0, 0x0, 0x0}, 0x1, 0xc000376300, ...) 71 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:859 +0x6f7 72 github.com/benoitkugler/webrender/html/layout.blockContainerLayout(0xc00057a240, {0x1377160, 0xc000289208}, 0x0, 0x0, 0x1, 0xc000376300, 0xc000376300, 0xc000527580, 0x0, ...) 73 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:392 +0xcb4 74 github.com/benoitkugler/webrender/html/layout.blockBoxLayout(0xc00057a240, {0x7f9610248fe0, 0xc000289208}, 0x0, 0x0, 0xc000337188, 0x1, 0xc000376300, 0xc000376300, 0xc000527580, ...) 75 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:127 +0x63a 76 github.com/benoitkugler/webrender/html/layout.blockLevelLayoutSwitch(0xc00057a240, {0x7f9610248e30, 0xc000289208}, 0x0, 0x0, 0xc000337188, 0x1, 0xc000376300, 0xc000376300, 0xc000527580, ...) 77 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:86 +0x195 78 github.com/benoitkugler/webrender/html/layout.blockLevelLayout(0xc00057a240, {0x7f9610248e30, 0xc000289208}, 0x0, 0x0, 0xc000337188, 0x1, 0xc000376300, 0xc000376300, 0xc000527580, ...) 79 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/blocks.go:65 +0x1bd 80 github.com/benoitkugler/webrender/html/layout.(*layoutContext).makePage(0xc00057a240, {0x7f9610248e30, 0xc000289208}, {{0xca0e28, 0x5}, {0x0, 0x0}, 0x0, 0x0, 0x1}, ...) 81 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/pages.go:723 +0x11e9 82 github.com/benoitkugler/webrender/html/layout.(*layoutContext).remakePage(0xc00057a240, 0x0, {0x7f9610248e30, 0xc000289208}, 0xc000295d10) 83 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/pages.go:924 +0x51a 84 github.com/benoitkugler/webrender/html/layout.(*layoutContext).makeAllPages(0xc00057a240, {0x7f9610248e30, 0xc000289208}, 0xc000295d10, {0x0, 0x0, 0x0?}) 85 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/pages.go:991 +0x231 86 github.com/benoitkugler/webrender/html/layout.layoutDocument(0xc000295d10, {0x7f9610248e30, 0xc000289208}, 0xc00057a240, 0xffffffffffffffff) 87 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/layout.go:155 +0x314 88 github.com/benoitkugler/webrender/html/layout.Layout(0xc000295d10, {0x0, 0x0, 0x0}, 0x0, {0x1372b60, 0xc000179c38}) 89 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/layout/layout.go:57 +0x128 90 github.com/benoitkugler/webrender/html/document.Render(0xc000295d10, {0x0?, 0x0?, _}, _, {_, _}) 91 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/html/document/document.go:283 +0x7b 92 github.com/benoitkugler/go-weasyprint.HtmlToPdfOptions({0x136a640, 0xc00007a028}, {0x136dcc8?, 0xc000535f10?}, {0x0?, 0x44844d?}, 0xc000076708?, {0x0?, 0xc0000061c0?}, {0x0, ...}, ...) 93 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/main.go:42 +0xae 94 github.com/benoitkugler/go-weasyprint.HtmlToPdf(...) 95 /home/light/go/pkg/mod/github.com/benoitkugler/[email protected]/main.go:24 96 main.main() 97 /home/light/repos/htmlpdf/main.go:46 +0x3fb 98 exit status 2