Skip to content
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

[g-canvaskit] 销毁上下文时报错 #1209

Closed
xiaoiver opened this issue Nov 9, 2022 · 0 comments
Closed

[g-canvaskit] 销毁上下文时报错 #1209

xiaoiver opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels

Comments

@xiaoiver
Copy link
Contributor

xiaoiver commented Nov 9, 2022

从 CanvasKit 渲染器切换到其它时会报错:

"Cannot pass deleted object as a pointer of type Surface"

报错来自 CanvasKit WASM 内部,解决方案是调用:

surface.deleteLater();
// surface.delete();
@xiaoiver xiaoiver self-assigned this Nov 9, 2022
@xiaoiver xiaoiver added the bug label Nov 9, 2022
xiaoiver added a commit that referenced this issue Nov 14, 2022
* docs: use dumi

* fix(g-canvaskit): delete surface later to avoid error msg #1209

* fix: support number as a valid type of text content #1208

* docs: add more examples for path

* fix(g-webgl): render arc in path correctly

* docs: update examples of GPGPU

* fix(g-plugin-canvas-picker): convert arc to cubic when picking #1202

* fix(rough): merge opacity into fill/stroke #1213

* fix: import eventemitter by default #1186

* Publish

 - @antv/g-camera-api@1.0.17
 - @antv/g-canvas@1.9.16
 - @antv/g-canvaskit@0.8.16
 - @antv/g-components@1.7.28
 - @antv/g-css-layout-api@1.0.17
 - @antv/g-css-typed-om-api@1.0.17
 - @antv/g-devtool@0.10.28
 - @antv/g-dom-mutation-observer-api@1.0.17
 - @antv/g-gesture@0.0.51
 - @antv/g-image-exporter@0.5.28
 - @antv/g-layout-blocklike@1.7.28
 - @antv/g-lite@1.0.17
 - @antv/g-lottie-player@0.0.14
 - @antv/g-math@1.7.28
 - @antv/g-mobile-canvas-element@0.6.28
 - @antv/g-mobile-canvas@0.8.25
 - @antv/g-mobile-svg@0.8.25
 - @antv/g-mobile-webgl@0.7.31
 - @antv/g-plugin-3d@1.7.28
 - @antv/g-plugin-a11y@0.4.28
 - @antv/g-plugin-annotation@0.2.25
 - @antv/g-plugin-box2d@1.7.28
 - @antv/g-plugin-canvas-path-generator@1.1.28
 - @antv/g-plugin-canvas-picker@1.8.25
 - @antv/g-plugin-canvas-renderer@1.7.31
 - @antv/g-plugin-canvaskit-renderer@1.1.29
 - @antv/g-plugin-control@1.7.28
 - @antv/g-plugin-css-select@1.7.28
 - @antv/g-plugin-device-renderer@1.7.31
 - @antv/g-plugin-dom-interaction@1.7.28
 - @antv/g-plugin-dragndrop@1.6.28
 - @antv/g-plugin-gpgpu@1.7.28
 - @antv/g-plugin-html-renderer@1.7.28
 - @antv/g-plugin-image-loader@1.1.29
 - @antv/g-plugin-matterjs@1.7.28
 - @antv/g-plugin-mobile-interaction@0.7.28
 - @antv/g-plugin-physx@1.7.28
 - @antv/g-plugin-rough-canvas-renderer@1.7.28
 - @antv/g-plugin-rough-svg-renderer@1.7.28
 - @antv/g-plugin-svg-picker@1.7.28
 - @antv/g-plugin-svg-renderer@1.8.25
 - @antv/g-plugin-webgl-device@1.7.28
 - @antv/g-plugin-webgpu-device@1.7.28
 - @antv/g-plugin-yoga@1.7.28
 - @antv/g-shader-components@1.7.28
 - @antv/g-svg@1.8.25
 - @antv/g-web-animations-api@1.0.17
 - @antv/g-web-components@1.7.28
 - @antv/g-webgl@1.7.31
 - @antv/g-webgpu@1.7.31
 - @antv/g@5.13.4
 - @antv/react-g@1.8.25
 - @antv/g-site@1.8.25

* fix(g-plugin-rough): use parsed value for stroke and fill

* Publish

 - @antv/g-plugin-rough-canvas-renderer@1.7.29
 - @antv/g-plugin-rough-svg-renderer@1.7.29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant