zwave4j icon indicating copy to clipboard operation
zwave4j copied to clipboard

Fatal error with removeWatcher() and removeDriver()

Open mcicolella opened this issue 9 years ago • 4 comments
trafficstars

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 avatar Oct 18 '16 13:10 mcicolella

@zgmnkv @EliteScientist any solution for this?

mcicolella avatar Jan 15 '17 16:01 mcicolella

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.

EliteScientist avatar Jan 15 '17 18:01 EliteScientist

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

mcicolella avatar Jan 16 '17 17:01 mcicolella

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

zgmnkv avatar Jan 16 '17 17:01 zgmnkv