logseq-pdf-export icon indicating copy to clipboard operation
logseq-pdf-export copied to clipboard

Crashes on print options screen

Open wiraki opened this issue 2 years ago • 16 comments

Hi, thanks for the plugin!

Unfortunately, once I click "Download" to save the PDF, the printing options menu comes up and it just gets stuck, and after a while I get the option to force quit, so the whole Logseq crashes (see screenshot below). This is on Pop!_OS 22.04 (Ubuntu-based). Not sure where to start looking to troubleshoot this one.

image

wiraki avatar Apr 27 '22 14:04 wiraki

Same behaviour for me, I've seen a pattern: once I embed a YouTube video on a page, Logseq starts not responding when exporting pdf. Attaching an example file logseq-pdf-export test page 1.md

nickponomar avatar May 09 '22 09:05 nickponomar

Which option are you using? On 9 May 2022, 1:54 PM +0400, Nick Ponomar @.***>, wrote:

Same behaviour for me, I've seen a pattern: once I embed a YouTube video on a page, Logseq starts not responding. Attaching an example file logseq-pdf-export test page 1.md — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

sawhney17 avatar May 09 '22 10:05 sawhney17

I use Print with Retained Formatting. Awesome feature btw! It looks great for other pages.

nickponomar avatar May 09 '22 10:05 nickponomar

It looks like any "embed" creates this problem, I have tried also embedding a block from other page, same behaviour

nickponomar avatar May 09 '22 11:05 nickponomar

Same problem here, Linux Mint, default template, when i click on download button, Logseq crash. Sometimes i can see the printer dialog box before it crash, sometimes it crash immediately.

L0cutus avatar Jun 02 '22 10:06 L0cutus

Same exact issue here; Ubuntu 22.04 as PopOS. This looks like a great plugin, and there is no native functionality for PDF exports; really hoping to get this working!

life5ign avatar Aug 24 '22 21:08 life5ign

Had the same issue, I managed to "solve it" by disconnecting myself from Wifi: I am tempted to say that this crash is due to the fact that my wifi is connected to my printer (HP something) good luck with that cheers

This also works for me and I also have a Wifi printer and am also on Ubuntu (22.10). Hope this helps someone!

kevdotpub avatar Jan 17 '23 10:01 kevdotpub

@alxlg why did you thumbs down me, is there in fact native PDF export functionality? I don't see any.

life5ign avatar Jan 17 '23 17:01 life5ign

Interesting. Glad it's fixed. I'll add a disclaimer in the readme. On 17 Jan 2023 at 2:23 PM +0400, Kevin Hughes @.***>, wrote:

Had the same issue, I managed to "solve it" by disconnecting myself from Wifi: I am tempted to say that this crash is due to the fact that my wifi is connected to my printer (HP something) good luck with that cheers This also works for me and I also have a Wifi printer and am also on Ubuntu (22.10). Hope this helps someone! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

sawhney17 avatar Jan 18 '23 02:01 sawhney17

@sawhney17 With all the respect and gratitude for your work, I would not consider this solved. The disclaimer would be nice, but is there a chance to get this bug actually fixed? I would imagine one is highly likely to be connected via WiFi to a printer when they will be using the PDF export, and having to disconnect your WiFi to avoid a software crash is hardly a solution.

wiraki avatar Jan 18 '23 10:01 wiraki

@mpauper the truth is I have no idea whatsoever how to fix this. Looks to me like an upstream electron issue on Linux. Don't have a Linux desktop to test and I'm using the native electron print command. Hands are a bit tied. Marking this post as help wanted. Hopefully the disclaimer helps some people.

sawhney17 avatar Jan 18 '23 10:01 sawhney17

@life5ign because you commented with zero additional information, sending an email to everyone who is subscribed to this. It's seen as something very bad on GitHub and other platforms.

alxlg avatar Jan 18 '23 15:01 alxlg

@alxlg lmfao! you thumbs downed my question as well. get a grip man. I suggest you get out from behind your screen, look at what's happening in the world, and reserve the use of "very bad" to other things. This is completely subjective btw; stack overflow open source won't even let me post a question on it, because AI detected that it's subjective.

Also, grouchily and lazily giving a thumbs down doesn't tell the poster any useful information about why you're doing this, and deters them from interacting with the project. Instead, you could summon the courage to explain yourself.

Finally, for the most important point: me indicating that I have the same issue on the same distro and version isn't zero additional information The best you couldn't have done here was suggest that, on this project, some people (you) prefer that a thumbs up on the OP should be given, if you're having the same issue on the same platform, which most people would instantly realize is preference.

Summary: stop being a jerk. Imagine yourself irl literally doing a thumbs down when someone offered information (yes, the distro) or asked a question.

By the way, your behavior led to three additional emails to the group watching this. Go ahead, reply to this, and add another! I dare you to violate your own principles. Oh wait, you have nothing to say, actually... let me guess: thumbs down, lmfao.

Now, I'm going to go forget about this. Thanks to the helpful people on this thread.

life5ign avatar Jan 18 '23 17:01 life5ign

The crashes I experienced werer cause by the plugin Banners. Turning it off allowed me to do a Print to PDF successfully with Retainer formatting.

If you use Tabs or Awesome Styler I recommend changing the theme to a default one and turning off TabsI as it results in a better pdf.

Tabs leaves tabs on top of each pdf page: image

While Awesome Styler's theme leaves a weird border on the first page of the pdf and a bit of the same border on the second page First page: image End of first page, beginning of second page image

TLDR: Turn off Banners if you use them.

jiriks74 avatar Mar 15 '23 07:03 jiriks74

I encounter the same issue with MacOS, plugins other functionalities work great like native. but when embedding video on the page then even with retain formatting option logseq just stuck I have to force quit and relaunch :(

kumaresh0 avatar Apr 13 '23 14:04 kumaresh0