-
Notifications
You must be signed in to change notification settings - Fork 229
Better handling of zombie node.exe #1167
Comments
Will give some thought to this -- seems like one of the main problems atm is that db compaction requires file deletion, something that is contentious when other processes have a handle on the file on windows. I'll think about ways to avoid deletetion when doing db compaction or maybe finding a different way of storing our db entirely to avoid the issue. |
I think compaction is not the only problem.
I think suggesting a reboot is a safer instruction. |
I agree, and have been recommending reboot. I only provide that detail for those that might understand it, but yeah, I'll stop :)
So, I don't know why there is a |
@springmeyer @BergWerkGIS if we rename our node binary we should do it across all 3 platforms to keep this code consolidated: https://github.com/mapbox/mapbox-studio/blob/mb-pages/index-shell.js#L9 |
Realizing that renaming |
Under these circumstances it doesn't make sense. |
Agree. So, we'll need to find a different way to identify a running |
When the zombies attacked, where there just the 2 ideas:
|
Flagging that I just saw "Renaming atom.exe no longer breaks native modules." in the atom shell changelog: https://github.com/atom/atom-shell/releases/tag/v0.23.0. Not sure if that means this is fixed for node.exe or not upstream.... |
Quick braindump while I'm debugging on windows.
Currently if there are zombie mapbox-studio.exe running when you try to re-install this will block the installer from running: f3415c0.
But
node.exe
zombies can still be running and installer will continue on. The result is that Mapbox studio will likely not be able to start because app.db cannot be compacted (because node.exe has a hold of it). Also the .mapbox-studio folder can't be manually deleted because the node.exe has ahold of it. So this will occur if you manually try to delete:I also found that
app.db.compacted
could get left behind when a process could not start. Then all subsequent tries to restart would fail until the app.db and app.db.compacted are delected (only tested deleting the whole .mapbox-studio folder).Takehome for support: always recommend deleting .mapbox-studio folder if a user is experience windows startup trouble. And if it can't be deleted then restart the machine to dispatch the zombies or kill all
node.exe
andmapbox-studio.exe
processes in the task manager.The text was updated successfully, but these errors were encountered: