OpenZWave / zwave4j

MIT License
44 stars 26 forks source link

Fatal error with removeWatcher() and removeDriver() #44

Open mcicolella opened 7 years ago

mcicolella commented 7 years ago

Hi, a fatal error is raised by JVM when I try to remove watcher and driver to stop our plugin. This is the block code protected void onStop() { manager.removeWatcher(watcher, null); manager.removeDriver(controllerPort); Manager.destroy(); Options.destroy(); LOG.info("Zwave plugin stopped "); }

The error is

SIGSEGV (0xb) at pc=0xa1ed565c, pid=2649, tid=2702179136

JRE version: Java(TM) SE Runtime Environment (8.0_66-b17) (build 1.8.0_66-b17)

Java VM: Java HotSpot(TM) Client VM (25.66-b17 mixed mode linux-x86 )

Problematic frame:

C [native-lib-1026292380136096656.tmp+0x10965c] Java_org_zwave4j_Manager_removeWatcher+0x87

Any idea to fix it?

mcicolella commented 7 years ago

@zgmnkv @EliteScientist any solution for this?

EliteScientist commented 7 years ago

I've resolved this and many other exceptions in my fork: https://github.com/EliteScientist/zwave4j

I've modified the build script in my fork to build from Visual Studio when under windows because I had so many issues with the gnu stuff building for x64 and x86.

I do have one pending bug with my build script where doesn't include the dll files in the jar. right now I just open the jar with winrar and add them manually until' I get time to fix it.

Also, my fork requires the latest openzwave since I started implementing some of the later functions as needed.

mcicolella commented 7 years ago

@EliteScientist Thanks! Any possibility to update the artifact on Maven? I'm using it for our plugin.

zgmnkv commented 7 years ago

@EliteScientist Thank you, feel free to submit pull requests with fixes.