-
Notifications
You must be signed in to change notification settings - Fork 168
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
segfaults #168
Comments
Are you able to get a stack trace or more detail as to when your build is segfaulting? Maybe reduce an example to reproduce the issue? You could also try with node-debug to pinpoint the issue. With all the libraries involved, I likely can't help determine the issue. It might be an issue in gaze (although I haven't seen that issue reported here yet) or it could be an issue any of those other libraries. Feel free to try another file watcher if you can. It might give some indication but without a reproducible example, I won't be able to help. Sorry! |
Okay when I get a chance I will try to use node-debug to get a stack trace, thanks! It's really hard for me to get a reproducible example---it happens in so many different configurations, including without the watcher running. running gulp-modernizr might work 5 times in a row, and it might segfault 5 times in a row. I could leave out gulp-modernizr, and node-sass might segfault (though, rarely). I'm pretty stuck on this one, so thanks for the node-debug tip. I'll report back when/if I've found out more. |
@shama on a side note, I know you're working on a big gaze update; is there anywhere that you have posted a list of improved features? |
@noahgrant Just what is in the issue tracker and mostly focused on #137. |
@shama Awesome, can't wait! Do you have a date in mind for the next release? |
I'm going to keep the release date a surprise. |
Ah okay, we're having some issues with it that i think might be solved by the new release, so we may have to swap it out for something else in the meantime, then. |
As an update, I was able to use this segfault stack trace helper to generate this trace (the top entry is from the library):
I'm not sure how to go about diagnosing this, but at least this is a start. I've seen segfault github issues for the fsevents library and for chokidar. |
maybe we need something like this that swallows the error? |
Nice, I'll have to check out that segfault stack trace helper as I have no idea how to read the above. I'm totally open to a PR to swallow the error too. If you've got a change that fixes it by swallowing, feel free to open and I'll port it to https://github.com/shama/navelgazer or just open a PR there. Thanks! |
Well, I'm certainly down to take a look, but I'd need some help getting the project set up to edit any c files. Do I just run |
With navelgazer cloned and If you want to test integrating into gaze, run The I appreciate your help! |
also, is there a number of watched files at which gaze might stop working as well? |
@shama you can close this issue--it turns out that the version of |
Thanks for letting me know and the work you put in looking into this! |
This is a repeat issue that I had originally posted in gulp, but it looks like it's a gaze issue, and I'm wondering if anyone can give me any insight, or if maybe I should try one of the other watchers like chokidar for the time being. Thank you!!
I've searched and searched and haven't come across anyone else who has experienced this issue, but my gulp tasks segfault fairly often. The thing is, it's hard to pinpoint, because it happens with multiple tasks. Most often, it happens while gulp-modernizr is building a custom modernizr file, causing all tasks, including my local server (with gulp-webserver) and watcher to stop. If I run
gulp modernizr
separately from my other default tasks, it caches the file, and then won't segfault—most of the time. But sometimes it still does. And sometimes, when I remove the modernizr task completely from my list of tasks, it still segfaults (though much less often). Even if I include the modernizr tool but don't launch the webserver or watcher. In fact, I've gone through every combination of tasks trying to single the problem out, and after doing some more looking, it might be a common issue with both node-sass (much less often) and gaze (much more common). Here is a common output from the modernizr task when it fails:(it fails as it's doing the actual file-building. When it succeeds, the last line prints
...........OK
.)I'm on OS X Yosemite, I'm using browserify/watchify for js, gulp-sass with node-sass/libsass for sass, and I've had to up the limit on the number of watchable files, and here's my offending gulp task looks something like:
Any insight as to why this might be happening regularly with gaze or what can be done about it would be greatly, greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: