-
Notifications
You must be signed in to change notification settings - Fork 918
Handle unresponsive event #2102
Comments
Sorry to hear. Handling an unresponsive event is on my short list which would make the force quit less painful. I'll leave this open to look into this. The losing work sucks and will be covered by #1700 |
Looked into handling unresponsive event by adding the following before this line: window.on("unresponsive", function() {
console.log("PWNED!");
alert("HANG!");
window.destroy();
}); Didn't see it handled. Pull requests welcome until we can dig into this more |
@snakecharmer1024 I was curious if you are (or were) encountering the same thing I just ran into, but I just noticed the title change. My Light Table window is also (visibly) unresponsive and the entire window is blank (and gray): Activity Monitor reports the CPU Time of the process as 16:27. In 'realtime', I've had it open for at least a few days, tho I haven't been using it, or this computer, extensively. This is the first time I've run into this problem. Activity Monitor also reports a "Virtual Memory Size" of 3.6 GB for the LT app process, which seems like it might be rather high. The "Electron Helper" process has a 2.5 GB virtual memory size. I'm running OS X 10.11.2. I'm running a source build a few commits behind 0.8.0 (I think), but I don't expect any more-recent commits significantly affect this. My log file is empty. |
It seems this is an open issue upstream with Electron – see electron/electron#2409. I commented on that issue and linked to a Gist with my crash dump file contents. It looks like an out-of-memory issue, tho I can't tell if it's Node that's the culprit or if it's just handling the out-of-memory condition. |
@snakecharmer1024 If you would, please upload a crash dump (e.g. as a GitHub Gist or something similar) and link to it in a comment here and in electron/electron#2409. If you don't want to get bitten again by losing unsaved work, maybe it'd be sufficient just to open LT and leave it running, without actually using it. |
@kenny-evitt Yes that is exactly what I saw. I'll leave it on and post the crash dump. Where do I find the crash dump, again? |
You might need to open the directory by running That said, an Electron person replied to me on their issue and stated that LT is to blame in my case and that we should track down the likely memory leak on our end. So we should be running with Dev Inspector open and periodically checking memory usage (if that's not too much of a pain). |
I love LightTable, but I'll be switching back to Sublime Text until this is fixed.
I'm using it on Mac OSX 10.10.5
Happens consistently, but only after about a day. I force quit, restart it and it works fine. Is troublesome when it does it while I'm working because I lose all my work since last save.
The text was updated successfully, but these errors were encountered: