Skia fiddle reports runtime errors with makeimage snapshot

Skip to first unread message

harish jangra

Apr 5, 2021, 8:55:13 AMApr 5
to skia-discuss
Hi all,

I am trying to use makeImageSnapshot API to get a copy of rendertexture of the current canvas.

Following is Skia Fiddle Code:
void draw(SkCanvas* canvas) {
    sk_sp<SkImage> early(canvas->getSurface()->makeImageSnapshot());

Errors reported:
Runtime Errors
Failed to run, possibly violated security container: "Command exited with exit status 1: HOME=/tmp /usr/local/bin/fiddle_secwrap /tmp/skia/skia/out/Static/fiddle --duration 0.000000 --frame 0.000000\nSignal: 9\nWIFSIGNALED: Success\n\nFailed to decode JSON output from fiddle.\nunexpected end of JSON input\nOutput was \"\""

Let me know if i am misunderstanding the API using it in incorrect way and if there are ay workarounds to resolve these errors.

Reply all
Reply to author
0 new messages