-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some strange crash with chokidar watcher #86
Comments
That's a chokidar known issue, apparently: Still reproduced after forcing the upgrade to 1.6.0 (roomjs was requiring 1.4.x). |
Ah, pinpointed it, apparently. Thus:
The second patch is somewhat unrelated, it's notably triggered when deleting a directory from outside the game (so there might be a loophole elsewhere, chokidar notifiying roomjs, and then the object deletion triggering another fs-db action?), but also if the directory is not empty (e.g. I had the bad idea to put a non-game file in a directory, in the form of a readme.md :) - So it's probably still a reasonable safeguard to have a try/catch here.) So far, no more random crashing observed. |
Has been running now for a while without showing crashes on object / deletion, whether from in-game destroy() or from the exterior (e.g. manual file removal). We get a warning log in both cases.
Has been running now for a while without showing crashes on object / deletion, whether from in-game destroy() or from the exterior (e.g. manual file removal). We get a warning log in both cases.
Observed on my Windows box:
someObject.destroy()
sometimes (but neither systematically nor even frequently) causes an abrupt exit with an "uncaughtException" trapped in 'on-exit.js', due to an EPERM error. The stack trace doesn't tell much beyond that and doesn't tell which file/directory caused it, but after having added try/catch's around all fs stuff in fs-db.js, it was still occurring - It only stopped (so far as it seems at least) when I commented out the chokidar watcher. (Sure, that's a pretty mean workaround, lol.)Tracked here for the record, in any case it would be observed by others, but no investigation required yet, the point is maybe moot:
The text was updated successfully, but these errors were encountered: