-
Notifications
You must be signed in to change notification settings - Fork 113
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
segfault in getDriverStatistics() when connect() has not been called #393
Comments
I suggest you to switch to https://github.com/zwave-js |
I'm not sure an issue report is the right place to advertise for another project. |
@nouknouk I'm the only one maintainer of this project right now (from about a year or so), mine is a suggestion, I will not maintain this project anymore. If you wonder why: https://github.com/zwave-js/zwavejs2mqtt#why-zwavejs |
Ok, my bad, I didn't understood that. Maybe a statement in readme.md could help other développers understand this project reached its end of life ? |
@nouknouk I know lot of users are still using ozw, so maybe one day someone will ask to maintain this, the switch to zwavejs is easy but there will be breaking changes for sure in the switch. IMO it is worth, but someone could don't agree with me |
Yes, I'm one of them too. openzwave is 'de facto' the reference in term of devices database, and even if the concept of 'pure js' library sounds very well to me at first sight, I have several reason for the moment to not switch to zwave-js:
In this context, the maintenance of zwave opensource software will become harder and harder because the number of développers interested will become low. Thus, focusing efforts on only one project (the biggest, ozw) makes more sense to my mind. Just my little opinion of a lonesome coder of its little homemade app, probably far from the point of view of other apps (hass, jeedom, domoticz, gladys, etc...) used by a large community of users. |
This is not really a problem right now, there is an open PR for this waiting to be approved
node serial is just a really tiny layer compared to zwave-shared, now you can debug everything at low level with a nodejs debugger. Much easier to integrate and find what's going on
That's an opinion, I respect it but sincerly I dunno, could happen the opposite too :)
If you check OZW development you will notice that the main (and only) author is disappiared from more then 4 months. Also if you open an issue or ask for support there even when he is active you will never get an answer (maybe after some months if you are lucky). In this situation I cannot use OZW anymore, there are also some other reasons behind my choice but I think this is enought |
Hi,
I face a segfault, apparently when using getDriverStatistics in my node application too early, when driver has not yet been connected.
To reproduce:
let driver = new OpenZwave(driverConfig);
driver.connect(...)
has not been called yet.let statistics = driver.getDriverStatistics();
makes a segfault.To my mind:
this is not a big deal, a call to
getDriverStatistics()
makes no sense before a (successfull) call toconnect()
. I should (and I will) rather fix the logic in my application to prevent calls to driver before the call toconnect
on the other hand:
node-openzwave-shared
should fail gracefully rather than causing a segfault.The stack trace:
(grabbed with package
segfault-handler
)My env:
10.6
, or debian based distributions:bullseye/sid
),1.6.1548
openzwave-shared
:1.7.2
(was also the same with an earlier version of openzwave-shared).Best regards,
And, btw, thanks again for this marvelous work 👍
The text was updated successfully, but these errors were encountered: