Code Monkey home page Code Monkey logo

Comments (4)

grgustaf avatar grgustaf commented on August 19, 2024

This worked for me as is on master last night. However, I did notice that after the LED pulses for a while it stops. I seem to have tracked that down to a memory leak, possibly in JerryScript itself, when creating and releasing a number value. I'll look into it further.

from zephyr.js.

grgustaf avatar grgustaf commented on August 19, 2024

At least for the problem I found, where the light pulsing stops, adding this NULL pointer check to JerryScript fixes it: jerryscript-project/jerryscript#1241

So, now my light blinks forever apparently.

I suspect this is the cause of the problem you guys have observed with things breaking after 210 iterations, too. I'll see overnight what the JerryScript team does with my patch; if they don't like it, then maybe I'll temporarily apply it as an overlay to JerryScript from ZJS so we get the fix.

from zephyr.js.

yhe39 avatar yhe39 commented on August 19, 2024

we test the Fade.js in the latest code: commit: 6a516dd.
this issue doesn't exist.
but after the LED pulses about 18 times it stops. then we add the
if (chunk_p == NULL)
{
return;
}
to the jerry-core/jmem/jmem-poolman.c.
The same: after the LED pulses about 18 times it stops.
but you said "now my light blinks forever apparently."
I wonder whether it is because other operation we miss?
This issue doesn't exist. So I will close this issue firstly.

from zephyr.js.

yhe39 avatar yhe39 commented on August 19, 2024

we try make clean then build/flash image.
the light blinks forever now : )
The Fade.js sample runs success without issue now.

from zephyr.js.

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.