Comments (10)
The "exit" message usually means the jerryscript engine ran out of memory, it could be that we have memory leak in the JS objects and slowly leaking memory, especially it's right around after a fixed number of tries.
from zephyr.js.
The ButtonLEDs.js has the same issue: after click button hundreds of times. Will have "exit" message in the output and the button events will stop arriving.
from zephyr.js.
If you could try applying the patch I posted here to your JerryScript repo, as I describe in #78, I think this might fix the problem.
from zephyr.js.
We add the
if (chunk_p == NULL)
{
return;
}
to the jerry-core/jmem/jmem-poolman.c.
and then test the ButtonLEDs.js. after click button near 400 times, Will have "exit" message in the output and the button events will stop arriving.
from zephyr.js.
My PR #101 may have fixed this. It seems to address the problem that my chunk_p == NULL patch was for.
Do you have automated equipment to test 400 button presses or did you do that manually? I tried to do it myself but ran out of patience! :)
from zephyr.js.
We add the following code to arduino/digital/Button.js
gpio.open({pin:pins.IO2}).then(function(pin){
var test = true;
var con = 0;
setInterval(function () {
con ++;
test = !test;
pin.write(test);
print(con);
},500);
});
And connect IO2 and IO4. after reboot, the console has output, after about 300+ times. have "exit" and the test stop.
ButtonLEDs.js use the same method. :)
from zephyr.js.
You guys are smart! :)
from zephyr.js.
:)
After the PR#101 merged, we retest the two samples. the issue still exist, after click button about 400 times, Will have "exit" message in the output and the button events will stop arriving.
from zephyr.js.
This should really be fixed in #117 now. I've added samples/AutoButton.js that includes the code expecting a loopback wire to simulate button presses. But I also hope you'll test the original two samples the way you did before.
from zephyr.js.
Verified this issue has been fixed in #117.
from zephyr.js.
Related Issues (20)
- Add MQTT APIs
- [PnP] Arduino101 boot-timestamps samples increase obviously compared with master commit 3d4a43c. HOT 1
- [websocket] Fail to connect with WebsocketServer after zephyr updated to 1.11 HOT 3
- [BLE] Primary Service UUID not found HOT 1
- WebUSB device can't be found on windows platform HOT 2
- Fail to build STM32F407G-DISC1 and Olimex STM32-E407 images HOT 3
- [ashell] Ctrl+X still saves input through load command
- [jerryscript-debugger] Fail to resume/step into/step over when debugging with /bin/jerry built in JerryScript HOT 2
- [jerryscript-debugger] Fail to add breakpoint on Chrome 66+ HOT 1
- Introduce source map to allow debugging
- [MacOS] Make qemu and frdm_k64f target failed
- [ocf] Ocf Client cannot connect to OcfServer on K64F HOT 2
- [PnP]I2C and WebBluetoothGroveLcdDemo ROM sample increase obviously compared with master commit f90d9d.
- [arduino] An obvious increase of ROM cause building failure HOT 1
- [dynamic] make dynamic failed HOT 1
- [k64f] quit debugger mode cause BUS FAULT error
- FYI: Changes required for Zephyr 1.13 HOT 1
- ESP32 build failure HOT 1
- Upgrading to Zephyr 1.14 LTS HOT 4
- connection event listener registration error HOT 2
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 zephyr.js.