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

Export pdf checklist does not work when too many columns #3208

Open
holgerm opened this issue Apr 4, 2023 · 7 comments
Open

Export pdf checklist does not work when too many columns #3208

holgerm opened this issue Apr 4, 2023 · 7 comments

Comments

@holgerm
Copy link

holgerm commented Apr 4, 2023

Problem and impact

When trying to export a checklist as pdf for an event with many custom questions, so that the expected table will not fit on one page, regarding the width, pretix does not answer with a pdf file. Instead the celery process gets 99% CPU on the server and stays there until killed manually. I tested this by adding one question after the other, and it worked well, until the table got too wide.

Expected behaviour

Should export a pdf file with multiple pages width or something similar. Or at least should come up with an error message indicating that too many columns would be needed, so that a checklist pdf can not be generated.

Steps to reproduce

  1. Create an event
  2. Add many questions to the event (maybe 15 or so)
  3. Go to export -> checklist as pdf
  4. Select all questions and start export

Screenshots

No response

Link

No response

Browser (software, desktop or mobile?) and version

No response

Operating system, dependency versions

Ubuntu 20.04.5 LTS

Version

recent

@raphaelm
Copy link
Member

raphaelm commented Apr 4, 2023

I wasn't able to reproduce this quickly, unfortunately, for me it exited with an error message about not being able to fit the resulting column heights on one page, which is kinda expected.

How many questions do you select exactly? It might matter.

@holgerm
Copy link
Author

holgerm commented Apr 4, 2023 via email

@raphaelm
Copy link
Member

raphaelm commented Apr 4, 2023

Hmm, I think I tested with more than 10. I don't think your attachment arrived.

@holgerm
Copy link
Author

holgerm commented Apr 5, 2023 via email

@holgerm
Copy link
Author

holgerm commented Apr 5, 2023 via email

@raphaelm
Copy link
Member

raphaelm commented Apr 5, 2023

I think you need to add it directly on Github, attachments to email replies are ignored.

@holgerm
Copy link
Author

holgerm commented Apr 5, 2023

Ok - here come the screenshots ...

  1. top before the export is triggered:

Screenshot 2023-04-05 at 06 47 11

  1. pretix export page before

Screenshot 2023-04-05 at 06 47 22

  1. pretix export page after triggered export

Screenshot 2023-04-05 at 06 47 36

  1. top after … (this stays until I kill the celery process)

Screenshot 2023-04-05 at 06 47 50

  1. pretix page after killing the celery process (with error message on top)

Screenshot 2023-04-05 at 06 51 36

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

No branches or pull requests

2 participants