meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Caman is throwing fatal error #229

Open nirewen opened 6 years ago

nirewen commented 6 years ago

Issue: Caman is giving fatal error

Expected result: Everything should be working fine

Actual result: A fatal error is thrown and the process crashes

Thrown error:

#
# Fatal error in ../deps/v8/src/deoptimizer.cc, line 721
# Check failed: catch_handler_frame_index < count.
#

Code:

Caman(buffer, function() {
    this.brightness(0);
    this.contrast(100);
    this.sharpen(800);
    this.saturation(300);
    this.render(function() {
        // do something with this.canvas.toBuffer()
    });
});

I'm running NodeJS and passing a Buffer to Caman to manipulate it.