In my project everything is working fine without GPhoto2 or without Socket.IO. Im using very fast loops with setInterval to redo certain tasks which have nothing to do with GPhoto2 nor Socket.IO. In fact all I do right now with GPhoto2 is this:
var gphoto2 = require('gphoto2');
var GPhoto = new gphoto2.GPhoto2();
And I'm not even using the GPhoto object. If I uncomment this last line everything works fine again. With this line in my code I get either a Bus Error 10(rare) or a Segmentation fault 11 either at the beginning or after a short while. If I don't use Socket.IO no error occurs either.
In my project everything is working fine without GPhoto2 or without Socket.IO. Im using very fast loops with
setInterval
to redo certain tasks which have nothing to do with GPhoto2 nor Socket.IO. In fact all I do right now with GPhoto2 is this:And I'm not even using the GPhoto object. If I uncomment this last line everything works fine again. With this line in my code I get either a
Bus Error 10
(rare) or aSegmentation fault 11
either at the beginning or after a short while. If I don't use Socket.IO no error occurs either.I created a dump of my Segfault:
Im using:
Project dependencies:
I have a repo to replicate my issue:
https://github.com/Fabiansson/socket.io-fiddle
You should start the application from
server.js
and shortly after it should throw the errors.Thanks for any help!