edit_area_full.js.gz missing

Here we can discuss about the problem found
Post Reply
Stuart
Posts: 126
Joined: Fri Feb 19, 2021 7:46 pm
Has thanked: 5 times
Been thanked: 20 times

edit_area_full.js.gz missing

Post by Stuart »

I'm getting this message when my system hangs from time to time. When it happens, editor access has stopped (it shows part of the editor but doesn't connect) but when the hardware is re-powered the app works ok including its web page, though not the editor. Ideas?

[1.43.3 on the ESP32, Firefox and Ubuntu accessing it]

Stuart
Stuart
Posts: 126
Joined: Fri Feb 19, 2021 7:46 pm
Has thanked: 5 times
Been thanked: 20 times

Re: edit_area_full.js.gz missing

Post by Stuart »

And now, after 3 hours from the restart the editor has started to load properly again. Very odd. I need this system to run continuously without intervention so understanding the problem would be helpful.
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: edit_area_full.js.gz missing

Post by cicciocb »

Hi Stuart,
this message means that the module is not working as this file "edit_area_full.js.gz" is loaded from the module itself.
User avatar
Electroguard
Posts: 836
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 268 times
Been thanked: 317 times

Re: edit_area_full.js.gz missing

Post by Electroguard »

Try copying on another edit_area_full.js.gz first.
Then try re-instating the file contents after re-flashing the device with the same Annex version.
If problems persist, try those same file contents on a different device with the same Annex version.
Stuart
Posts: 126
Joined: Fri Feb 19, 2021 7:46 pm
Has thanked: 5 times
Been thanked: 20 times

Re: edit_area_full.js.gz missing

Post by Stuart »

Thanks for the input. I'm curious now -

Is this file necessary for normal operation? I ask because it does not seem to be present in File Manager, yet the system is now working normally as far as I can tell. I suppose the most important thing is, what caused this error to happen (and to hang the system) and how do I ensure it doesn't do it again?

s
User avatar
Electroguard
Posts: 836
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 268 times
Been thanked: 317 times

Re: edit_area_full.js.gz missing

Post by Electroguard »

Normally flash would only be used infrequently for installing firmware.
All storage mediums are prone to degrade and fail with use, and cheap mass-produced flash is certainly no exception.
Flash memory manufacturers specify the chip lifetime as the number of writes before unreliability failures can be expected.
Annex hammers that typical usage scenario to the extreme with continued editing and data storage updating... which can 'wear out' its write lifetime in the weakest areas, causing unreliability and failures.

I know that SPIFFS jumps through hoops to avoid prematurely wearing out flash by re-mapping re-written files to less used areas of memory to prevent the same area being continuously re-written over itself when updating the same file(s).

I believe the file you mention is used for the Editor, so would be read every time you edit, therefore if located in a weaker part of flash that is becoming unreliable it could obviously start causing problems.

But by writing the file to the device again, instead of it being written back to that same problem area, it should get written elsewhere, hopefully avoiding the problem area.
Well, that's my understanding of things anyway.
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: edit_area_full.js.gz missing

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Mar 09, 2022 8:55 pm Thanks for the input. I'm curious now -

Is this file necessary for normal operation? I ask because it does not seem to be present in File Manager, yet the system is now working normally as far as I can tell. I suppose the most important thing is, what caused this error to happen (and to hang the system) and how do I ensure it doesn't do it again?

s
Stuart,
this file is hosted internally in the module (it is not visible from the file manager) and is part of the firmware itself (it is not present in the internal file system but is sent by the module on request).
This file contains the text editor included in the edit page.

If this message appears, means that the wi-fi connection of the module is lost.
Post Reply