Coder Social home page Coder Social logo

memory leak about pdf2image HOT 6 CLOSED

yakovmeister avatar yakovmeister commented on June 3, 2024 2
memory leak

from pdf2image.

Comments (6)

yakovmeister avatar yakovmeister commented on June 3, 2024

I'll soon add a feature where you would be able to set how many maximum concurrent instance can be made.

from pdf2image.

Sandip75 avatar Sandip75 commented on June 3, 2024

@yakovmeister @akume Can you tell How to handle from memory leak problem?

from pdf2image.

savgiannis avatar savgiannis commented on June 3, 2024

I also have this issue. One solution is to bulk() in batches of 10. But how can I know the page count of the pdf to setup the loop?

from pdf2image.

mickaelmesdocteurs avatar mickaelmesdocteurs commented on June 3, 2024

I'm having the same problem and node tells me MaxListenersExceededWarning: Possible EventEmitter memory leak detected.
I would love to be able to configure a bulk batch size

from pdf2image.

irgipaulius avatar irgipaulius commented on June 3, 2024

me too. I'll resort to manually chunking the bulk requests

from pdf2image.

KaKi87 avatar KaKi87 commented on June 3, 2024

I'll soon add a feature where you would be able to set how many maximum concurrent instance can be made.

Hello @yakovmeister, any news on this ?

For now I'm forced use the following workaround (related to #95) :

let oldBase64;
while(true){
    const { base64 } = await convert(page++, true);
    if(oldBase64 && oldBase64 === base64){
        // do something if last base64 was invalid
        break;
    }
    else {
        oldBase64 = base64;
        // do something with current base64
    }
}

Thanks

from pdf2image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.