CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

Multiprocess crashed on svg2pdf

Open ErenPhayte opened this issue 7 years ago • 4 comments

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?

ErenPhayte avatar May 30 '17 20:05 ErenPhayte

Is it possible to have some kind of logs about the crash?

liZe avatar Jul 17 '17 16:07 liZe

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)

ErenPhayte avatar Jul 18 '17 07:07 ErenPhayte

Thanks for your answer.

Unfortunately, your example works for me, I can't make it crash :smile:.

liZe avatar Jul 18 '17 09:07 liZe

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 .

ErenPhayte avatar Jul 18 '17 09:07 ErenPhayte