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

212 Create the scale bar directly in reportlab to solve the sigkill 9 error during the creation of multiple A0 sketch maps #253

Conversation

mhhd2020
Copy link
Contributor

@mhhd2020 mhhd2020 commented May 2, 2023

Experiments have shown that the problem when simultaneously creating multiple A0 sketch maps likely is the use of matplotlib to add a scale bar to the map frames. Loading the map image in matplotlib seems to consume too much RAM (if multiple A0 maps are created), leading to the issue #212.

Therefore, the function add_scalebar(...) has been rewritten to directly add the scalebar on the canvas in reportlab. Creating 10 A0 sketch maps at the same time, which has previously been impossible, now works without problems on the local instance.

@mhhd2020 mhhd2020 added bug Something isn't working component:map-generation priority:high Should be addressed as soon as possible (next release) labels May 2, 2023
@mhhd2020
Copy link
Contributor Author

mhhd2020 commented May 2, 2023

Tested for all paper formats in both landscape and portrait mode as well as for both large and small areas of interest

Example for A4:
grafik

@mhhd2020 mhhd2020 changed the title 212 Create the scale bar directly in reportlab to solve this sigkill 9 error during the creation of multiple A0 sketch maps 212 Create the scale bar directly in reportlab to solve the sigkill 9 error during the creation of multiple A0 sketch maps May 2, 2023
client-src/create/form.js Outdated Show resolved Hide resolved
@mhhd2020 mhhd2020 force-pushed the 212-create-sketch-map-in-a0-fails-worker-exited-prematurely-signal-9-sigkill-job-4 branch from 9765ee9 to fbb9a20 Compare July 5, 2023 14:07
matthiasschaub
matthiasschaub previously approved these changes Jul 5, 2023
@mhhd2020 mhhd2020 force-pushed the 212-create-sketch-map-in-a0-fails-worker-exited-prematurely-signal-9-sigkill-job-4 branch from fbb9a20 to b8d9a76 Compare July 10, 2023 12:15
@mhhd2020 mhhd2020 merged commit d8ecd19 into main Jul 12, 2023
2 checks passed
@mhhd2020 mhhd2020 deleted the 212-create-sketch-map-in-a0-fails-worker-exited-prematurely-signal-9-sigkill-job-4 branch July 12, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:map-generation priority:high Should be addressed as soon as possible (next release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Sketch Map in A0 fails: Worker exited prematurely: signal 9 (SIGKILL) Job: 4.
2 participants