-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node 0.8.0 and toDataURL() #182
Comments
I'm getting something similar using 'nib' and gradient images: e.g. this fails: background-image : linear-gradient-image(200px, rgba(0,0,0,1), rgba(100,100,100,0.8)) with this error:
|
For the moment i got rid of the problem by removing this line https://github.com/LearnBoost/node-canvas/blob/master/src/closure.h#L46 |
That change fixed it for me, not sure if V8 will like it but :) Any thoughts @visionmedia ? |
Bummer, that changed didn't fix it for me. Gonna have to comment out all the gradients in my app until this is fixed :( |
it's not the freeing of the data itself, it's the GC hint to v8. this must be prematurely dereferencing the buffer or something, if i have time ill check this out soon but we're pretty busy with some other stuff ATM |
Understood @visionmedia, I just disabled |
I hit this problem too - in the meantime the async/callback versions of toBuffer and toDataURL seem to be working OK though. |
i have it also with node-0.8.3 and canvas-0.12.1:
and it works with async version of toDataURL. |
Fixes an issue related to a wrong variable type (#182)
toDataURL() method seems to fail with node 0.8.0
Tried with live-clock example and got this error:
It seems that toBuffer() return undefined.
The text was updated successfully, but these errors were encountered: