Stacktrace decryption please


#1

Hi,

I have a simple electron app that acts as a image/video gallery, it stays alive for a long time and adds/removes DOM nodes with images/videos, after a while I face a “White screen of death” i.e. the renderer process dies.

Before I venture into debugging the wonders of memory leaks in my js code, I was wondering if someone could tell me if this stacktrace points to an error in chromium/electron or my app code?

Heap snapshots don’t seem too large going from 8MB to 24MB.
process.getProcessMemoryInfo().workingSetSize starts at around 600MB and grows to 2.5GB before it dies…
Resource monitor shows high usage of the renderer process:

Thx

process.versions:{“http_parser”:“2.7.0”,“node”:“7.4.0”,“v8”:“5.6.326.50”,“uv”:“1.10.1”,“zlib”:“1.2.8”,“ares”:“1.10.1-DEV”,“modules”:“53”,“openssl”:“1.0.2j”,“electron”:“1.6.2”,“chrome”:“56.0.2924.87”,“atom-shell”:“1.6.2”}"


#2


#3

Turns out setting a var to null or [] instead of overwriting it tells js to kill all references, also setting iframe src to about:blank before destroying it helps a lot… if anyone else wonders :wink: