Skia fiddle reports runtime errors with makeimage snapshot

37 views
Skip to first unread message

harish jangra

unread,
Apr 5, 2021, 8:55:13 AM4/5/21
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.

Regards
Harish
Reply all
Reply to author
Forward
0 new messages