Gottox / node-pdfutils

tool for analyzing and converting PDF
103 stars 23 forks source link

Bus error: 10 - not freeing up memory? #3

Open whockey opened 10 years ago

whockey commented 10 years ago

When parsing ~10 simultaneous pdfs its crashing with a 'Bus error: 10'. I think this may have to do with not freeing some memory?

Anyone seen this before?

Gottox commented 10 years ago

Bus error 10 suggests, that somewhere in the source pdfutils uses a bad pointer. It would be great if you could build pdfutils with debugflags (node-gyp --debug configure build) and try to reproduce the error with gdb.

Also, It would help to explain how exactly you'd manage to trigger this error. (Source, instructions to reproduce)

Memory management is a different rather shameful topic of pdfutils, I'm improving the situation :)

d0ptnow commented 10 years ago

More than 1.3gb of ram to convert a 2000 pages pdf. :\

I don't program in C so I can't help.

Do you have a fix for this issue please?