meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation

Home Page:http://camanjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Caman is throwing fatal error

nirewen opened this issue · comments

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.