kiwix-js-pwa
kiwix-js-pwa copied to clipboard
NWJS app crashes randomly with some Wikipedia articles in Service Worker mode
The NWJS app is crashing on some Wikipedia articles in Service Worker mode only. It is a complete app crash and exit, with an exit code of 3221225477, which seems to represent a memory segmentation fault at a very low level, which is quite bizarre. An example of an article which causes this crash systematically is "Atmospheric carbon dioxide".
The same articles trigger no fault in the UWP or Electron apps in Service Worker mode.
As a workaround, for now, release 1.9.3 sets JQuery mode as the default for the NWJS app, since the fault does not occur in JQuery mode.
App still randomly crashes and exits when running in SW mode even with NWJS vestion 0.70.0.
Confirmed to be an issue still in v2.5.0. Module memory management hasn't fixed it. The use case for NWJS is almost non-existent: the only reason to use it now is for Windows XP/Vista, and in those contexts this bug does not occur (because they only support jQuery mode).
Updated NWJS app to 64bit. Let's see if it helps.