Comments (6)
Could it be that the Android device doesn't have a GPU? This looks interesing.
from react-native-skia.
Could it be that the Android device doesn't have a GPU? This looks interesing.
Thank you for your prompt response, but this Android device surely has a GPU as it is capable of running games with high graphical demands.
from react-native-skia.
I am not able to reproduce the issue at this moment.
Could you provide me more information on what could help me to reproduce the issue?
from react-native-skia.
I am not able to reproduce the issue at this moment. Could you provide me more information on what could help me to reproduce the issue?
Sorry for the inconvenience, I have retested and found that the reproduction of this issue is random, but the frequency is quite high.The following is a screen recording.
output_text.mp4
I replicated the process on the following Android device.
- Android emulator Nexus 6 API 33
- Android emulator Pixel 7 API 34
- Physical device MIUI 12.3.5 Android 11
The following is the temporary code repository used for reproduction.
https://github.com/tsogzark/atlas_bug
from react-native-skia.
If you are writing the following:
const drawing = (
<Group>
<Rect
rect={rect(strokeWidth / 2, strokeWidth / 2, size.width, size.height)}
color="cyan"
/>
<Rect
rect={rect(strokeWidth / 2, strokeWidth / 2, size.width, size.height)}
color="blue"
style="stroke"
strokeWidth={strokeWidth}
/>
</Group>
);
const Demo = () => {
const pos = useSharedValue({ x: 0, y: 0 });
const texture = useTexture(drawing, textureSize);
you are guarantee not to crash (the drawing variable is stable) but still I am investigating why it crashes.
from react-native-skia.
I found the root cause of the issue, this is a very nice catch :)
from react-native-skia.
Related Issues (20)
- Dev works but main/prod environment broken/have different behaviors on android HOT 1
- App Crashes When Scrolling with FlatList HOT 1
- Create driving animations HOT 3
- Dashed line HOT 1
- Height and width constant of a canvas
- Path dash return SkPath HOT 3
- Cannot read properties of undefined (reading 'Path') TypeError: Cannot read properties of undefined (reading 'Path') HOT 7
- Canvas onTouch Android HOT 3
- "Hello world" example code in Atlas document runs blank View, whereas "Animations" functions properly. HOT 1
- The Atlas API's transform exhibits random anomalies. HOT 3
- property opacity not working in some Element. include: <Group/>; <Picture/> HOT 1
- <Group matrix={...(Matrix4)}/> not working HOT 8
- makeImageFromView. Android crash when attempting to create an image from a view that is outside the viewport. HOT 1
- Please can useSharedValueEffect be brought back? HOT 1
- Canva path is transparent when react-native-svg elements are next to it.
- Text component doesn't re-render on value change HOT 6
- VisionOS Support
- useTexture and drawAsImage crash android app HOT 1
- Web Support Doc on Firefox not rendering HOT 1
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.