CairoSVG
CairoSVG copied to clipboard
Multiprocess crashed on svg2pdf
Hi,
If I run svg2pdf outside a process, it works perfectly, however the minute I try put it into a multi process, it crashes. Any idea why and is there a work around?
Is it possible to have some kind of logs about the crash?
I can try, previous attempts just killed the application but no logs where generated. Not sure if anyone has tried to run svg2pdf in a multiprocess. The example script I had was:
def process_data():
svg_file = '/path/to/svg'
pdf_file = '/path/to/pdf'
cairosvg.svg2pdf(url=svg_file, write_to=pdf_file)
def callback():
pass
if __name__ == '__main__':
pool = Pool()
pool.apply_async(process_data, callback=callback)
Thanks for your answer.
Unfortunately, your example works for me, I can't make it crash :smile:.
Haha. Hmm .. let me try another MacBook. Perhaps close ticket for now till I can give you more information.
On Jul 18, 2017 11:38, "Guillaume Ayoub" [email protected] wrote:
Thanks for your answer.
Unfortunately, your example works for me, I can't make it crash 😄.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Kozea/CairoSVG/issues/150#issuecomment-316011893, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVghz3eOHj7lZC_uDWZRJ2hKMzM0kQiks5sPH0bgaJpZM4NqyQL .