| <<<Back 1 day (to 2020/06/18) | Fwd 1 day (to 2020/06/20)>>> | 20200619 |
VC100 | Hi, I am trying to use MuPDF in an open source project. Since it is a new library for me to learn, I am getting a few doubts. Could anyone point or help how to create INK annotation and Save it? I am trying the mini viewer. Thanks in advance. | 01:20.48 |
ator | hisacro: I see malc already found a solution for you. software gl is plenty enough for mupdf-gl's purposes, it doesn't really tax the hardware much! | 10:36.11 |
hisacro | ator, I got it working with nvidia render alone but it still reports memory leaks http://ix.io/2pA2 | 11:33.30 |
malc_ | ator: (IIRC) sebras once mentioned that you are rather anti strict aliasing, thought you might be interested in: https://groups.google.com/forum/#!msg/comp.arch/ppwWWK07Anw/o0y0nrb8BAAJ | 11:48.39 |
sebras | hisacro: those "leaks" appear come from libGLX_nvidia.so. | 11:50.24 |
| hisacro: they might be singleton structures that nvidia allocate once, and then rely on the process exiting for cleanup. | 11:50.48 |
ator | hisacro: those are safe leaks. lots of libraries (glib and opengl) allocate a lot of stuff at startup that they never bother to free because they're only allocated once | 11:51.22 |
| and exiting the program will free them automatically | 11:51.42 |
| that said, I can't promise that they aren't bug in libGLX_nvidia.so but if they are, not much we can do about it | 11:52.13 |
malc_ | oh there is a lot that can be done about libGLX_nvidia - eg https://www.youtube.com/watch?v=IVpOyKCNZYw | 11:53.16 |
ator | malc_: :D | 11:55.26 |
sebras | ator: malc_: I guess the situation has been similar with ARM and Mali. | 11:59.15 |
malc_ | sebras: mali is arm, the nowregians prostituted themselves to the engish haven't they? | 12:00.07 |
sebras | malc_: I think there are two somewhat competing open source projects trying to fix the linux driver for Mali. one being headed by Collabora. | 12:01.00 |
| that said, I wouldn't know if libmesa has fewer allocation issue similar to this one in libGLX_nvidia | 12:01.37 |
malc_ | sebras: me neither... the point is moot though GL is dead anyway | 12:02.32 |
hisacro | well it works fine expect glitches on startup and when swtiching windows positions (toggle fullscreen for instance) | 12:02.34 |
| https://0x0.st/i4sG.png, https://0x0.st/i4sD.png | 12:02.44 |
malc_ | hmm... another tiled WM... how depressing | 12:04.19 |
| -ed +ing | 12:04.32 |
hisacro | ator, http://ix.io/2pxO even on software rendering memory leaks from libasan | 12:11.53 |
malc_ | hisacro: i you would build debug version of mupdf(make build=debug) backtraces might be more revealing | 12:13.35 |
hisacro | http://ix.io/2pAe, corresponding package on my repo is libgl1-mesa-dri | 12:22.40 |
sebras | hisacro: you need to build mupdf with debug symbols to get useful information in the backtraces. | 12:37.19 |
| mupdf's debug build, like malc_ mentioned, adds -g -fno-omit-frame-pointer to guarantee better backtrace info. | 12:38.48 |
malc_ | ator: source/fitz/xml.c:7:10: fatal error: gumbo.h: No such file or directory | 14:36.58 |
| 7 | #include <gumbo.h> | 14:36.59 |
| | ^~~~~~~~~ | 14:36.59 |
| compilation terminated. | 14:36.59 |
| (that's trying to build 922ecd10bdb99d0ea5e511d938d06f3373588843) | 14:37.02 |
sebras | malc_: you need gumbo. :) | 14:37.43 |
| malc_: you can probably clone this one http://git.ghostscript.com/?p=thirdparty-gumbo-parser.git;a=summary | 14:38.08 |
| malc_: I have not tried this myself. | 14:38.13 |
malc_ | sebras: not worth it, thanks though! | 14:38.41 |
sebras | malc_: ator is working on getting gumbo into mupdf, but that work is not yet finished (as you noticed). | 14:42.42 |
malc_ | sebras: ich habe nur erine frage was ist gumbo? | 14:43.28 |
sebras | malc_: an html5 parser I believe. | 14:44.59 |
malc_ | sebras: bedankt | 14:45.21 |
| (3 languages in 3 sentences, i'm good) | 14:45.46 |
ator | malc_: tag soup! in case you're wondering where the name comes from. | 14:46.29 |
malc_ | ator: "The result of unsuccessful hunting season"? | 14:48.47 |
ator | malc_: I don't get that reference. | 14:49.21 |
malc_ | ator: - links -dump "https://www.urbandictionary.com/define.php?term=tag%20soup" | sed -n '1,/Top def/d;/Get the mug/q;p' | 14:51.27 |
| tag soup | 14:51.27 |
| The result of an unsuccessful hunting season. | 14:51.27 |
| Did you catch anything? | 14:51.30 |
| No, we got tag soup this year. | 14:51.33 |
| by freshwatersub March 21, 2016 | 14:51.36 |
| 10 | 14:51.40 |
| Flag | 14:51.43 |
| | 14:51.46 |
ator | https://en.wikipedia.org/wiki/Tag_soup | 14:51.50 |
malc_ | ah! tack! | 14:52.09 |
| there is a github issue where one of the millions llpp users requested the feature for llppac to conlult wikipedia alongside urban and local stardict... | 14:53.09 |
| might not be such a bad idea after all | 14:53.16 |
ator | never heard the urban dictionary definition before, seems like slang from a very different subsection of humanity than web developers :) | 14:53.18 |
malc_ | indeed :) | 14:53.33 |
ator | https://en.wiktionary.org/wiki/tag_soup | 14:53.43 |
malc_ | he even made a mock up, BUT it required nodejs... and i had to decline | 14:54.18 |
| hmmm i might incorporate links -dump output of https://en.m.wiktionary.org/wiki/.... (_m_) into llppac, thanks | 14:56.15 |
| oh grr its dicx (https://github.com/moosotc/snippets/blob/master/bin/dicx) that i mean not llppac... | 14:57.50 |
| ator: so you are going away from your own html parser? | 15:11.40 |
sebras | malc_: EPUB3's use of HTML5 is the reason for looking at gumbo. | 15:15.00 |
malc_ | sebras: why? | 15:15.16 |
ator | sebras: not strictly speaking, epub3 still mandates xhtml | 15:21.55 |
| the absolute shite tag soup so many epub files have masquerading as xml is the reason | 15:22.20 |
| sebras: it's just "HTML5 in XHTML syntax" whatever that means | 15:22.34 |
| (I'm assuming they mean they allow the new html5 elements, like <nav> etc | 15:22.53 |
sebras | ator: I was mostly relying on this: https://en.wikipedia.org/wiki/EPUB#Implementation | 15:23.20 |
malc_ | crawls back into his cave where everything is bright and html rendering is relegated to princexml (libxml2) | 15:27.09 |
| <<<Back 1 day (to 2020/06/18) | Forward 1 day (to 2020/06/20)>>> | |