Comments (3)
Never mind! This is fixable by calling image.dispose()
(and probably surface.dispose()
).
I've opened a PR here.
Let me know if you want me to do anything else to support (e.g. write tests!)
from react-native-skia.
Thanks for the bug report and PR. We were always very aware of these potential issues and I think we just wanted to check first if there is appetite for the headless feature first.
Please give us some time to consider the best API there. We are looking at the using keyword: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management, more specifically if it can be used on JSI host objects
from react-native-skia.
Yes! I think something like using
makes a ton of sense, so that you can ensure cleanup.
No rush on this from my end! Feel free to close the Issue and the PR. I've already updated my code to call dispose
on image
and surface
and I am monitoring it in production now!
from react-native-skia.
Related Issues (20)
- ReferenceError: Property 'SkiaApi' doesn't exist, js engine: hermes HOT 14
- style = "fill" isn't working on Points HOT 3
- Build errors: `Undefined symbol: facebook::jsi:..` HOT 6
- [Android] updateAndRelease: EGLConsumer is not attached to an OpenGL ES context HOT 4
- MacOS and Windows support.
- [Android] makeImageFromView takes a snapshot of the flatlist, the result has padding on it HOT 3
- Paragraph bounding box
- [Android] Paragraph builder performance HOT 2
- Snack expo V49.0.0, r.g.__reanimatedWorkletInit is not a function (it is undefined) HOT 2
- Element type is invalid HOT 3
- Paragraph is ignoring Blur (and possible other filters) HOT 3
- OnSize doesn't work for Animated Canvas HOT 4
- [Reanimated] Tried to synchronously call a non-worklet function on the UI thread. HOT 2
- Memory leak during component remount HOT 1
- "makeImageSnapshot" triples output dimensions HOT 1
- [ios]ImageSVG with text will encountered a EXC_BAD_ACCESS crash HOT 4
- Performance issue when Mask contains animated element and used with list HOT 1
- How would one make a rounded rect with only one corner having a border radius?
- Crash when getting image height during hot reload
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-skia.