Comments (9)
This works in the normal build, so what hardware are you running this on? And is it a build we supply or one you did yourself?
from espruino.
This is running on an ESP8266 with firmware downloaded from the releases page (here to be specific)
I tried it on a second chip just to rule out bad hardware. But I get the same issue there.
from espruino.
Also tried on a completely fresh install, no JS loaded whatsoever. Just cli using Espruino binary from NPM
from espruino.
Ok, thanks!
Also tried on a completely fresh install,
Are you sure? Because it says Loading 5717 bytes from flash...
like you might have some code already in there which might be causing some kind of issue? You could try running reset(1)
which should hopefully get rid of that
from espruino.
Yes, initial bug report was indeed on a chip that had other JS loaded on it. Here's the output after running reset(1)
>reset(1)
Erasing saved code.
____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|____|___| _|_| |___|_|_|_|___|
|_| espruino.com
2v19 (c) 2021 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xd8 chip 0x4016
>new Uint8Array(3)
=new
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8
2nd boot version : 1.6
SPI Speed : 80MHz
SPI Mode : DIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000
nÇrn
l`rlÄlþ
____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|____|___| _|_| |___|_|_|_|___|
|_| espruino.com
2v19 (c) 2021 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xd8 chip 0x4016
from espruino.
Ok, thanks - it's interesting this one lacks the F 0
- I'll try and take a look when I get a second. I know ESP8266 is very picky about accessing non-word aligned RAM areas and it's possible something's crept in which causes a problem
from espruino.
Another interesting observation; it will allows me to create signed integers once, but if I do it twice then it will reset. Reproducible every time.
>reset(1)
Erasing saved code.
____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|____|___| _|_| |___|_|_|_|___|
|_| espruino.com
2v19 (c) 2021 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xd8 chip 0x4016
>new Int8Array(3)
=new Int8Array([111, 114, 121])
>new Int8Array(3)
=F 0
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8
2nd boot version : 1.6
SPI Speed : 80MHz
SPI Mode : DIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000
from espruino.
This appears to be fixed now - I'm pretty sure it was due to an overflow in the JsVar union for arraybuffers, which only showed up on devices with little RAM
from espruino.
Great, thanks!
I can confirm. Tested my old code on v2.20 and it's running fine now.
from espruino.
Related Issues (20)
- Build LINUX board on Mac Os X Intel HOT 5
- Storage.writeJSON and Storage.readJSON are incompatible when numeric keys are present HOT 3
- Global error capture HOT 6
- wifi.stopAP() does not work, AP is still up.... HOT 3
- Wifi.connect(ssid, options, callback) does not handle callback HOT 2
- Multiple uploads of code with wifi command can cause " New interpreter error" HOT 1
- Debugger feature: add backtrace command HOT 2
- E.getPowerUsage to estimate power consumption HOT 2
- BLE/NRF and esp32_gatts_func.c HOT 1
- Promise handling rewrite break BLE device use HOT 3
- ESP32_IDF4 (ESP32C3) support HOT 4
- Any plans to switch to python3? HOT 5
- `Object.defineProperty(<function>, ...)` HOT 1
- `Object.clone()` returning function HOT 2
- Using different pins for neopixel on ESP32 does not work correct HOT 1
- Loss of errors when executing require() HOT 4
- banglejs_iflash build: error running `.bootcde`, compacting corrupts `.boot0` and deletes most files HOT 3
- Static fields in classes HOT 1
- Bad text alignment when rendering Unicode centered
- overlays are cut off from the top instead of landing at desired y position 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 espruino.