Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Electron segfaults when saving a PDF with forms after editing any fields #31373

Closed
3 tasks done
sigaloid opened this issue Oct 10, 2021 · 1 comment
Closed
3 tasks done

Comments

@sigaloid
Copy link

sigaloid commented Oct 10, 2021

Preflight Checklist

Electron Version

"electron": "^15.1.1"

What operating system are you using?

Other Linux

Operating System Version

5.10.70-1-MANJARO

What arch are you using?

x64

Last Known Working Electron version

N/A

Expected Behavior

PDF should save correctly (or at least, not offer to save with edits; wonder if the chromium PDF editor can be configured to not offer that button, if for some reason saving cannot be done)

Actual Behavior

Process segfaults when I try to save "with [my] changes". (Not when trying to save without changes, though)

Testcase Gist URL

No response

Additional Information

https://github.com/sigaloid/electron-pdf-crash

electron-crash-2021-10-10_17.30.46.mp4

Shows how saving "without [my] changes" does nothing but saving "with [my] changes" segmentation fault's.

index.html is pretty minimal to reproduce. Just a single iframe with a src pointing to a PDF that has forms.

https://github.com/sigaloid/electron-pdf-crash/blob/main/index.html

A solution would be to configure Chromium to not allow saving edited forms, if this isn't supported. Just some way of hiding the button, I suppose.

Additional info and debugging in this issue (thanks @abitofevrything) zadam/trilium#2205

PS: You can replicate this by cloning this and trying it yourself, or I can run it with some sort of debugging enabled to get any logs necessary.

@codebytere
Copy link
Member

Closed in #32512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants