Code Monkey home page Code Monkey logo

Comments (6)

wcandillon avatar wcandillon commented on June 26, 2024

Could it be that the Android device doesn't have a GPU? This looks interesing.

from react-native-skia.

tsogzark avatar tsogzark commented on June 26, 2024

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.

wcandillon avatar wcandillon commented on June 26, 2024

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.

tsogzark avatar tsogzark commented on June 26, 2024

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.

wcandillon avatar wcandillon commented on June 26, 2024

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.

wcandillon avatar wcandillon commented on June 26, 2024

I found the root cause of the issue, this is a very nice catch :)

from react-native-skia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.