Skip to content
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

Abort (crash) on network.stop() with error: Manager.cpp:405 - InvalidHomeIDError (100) Msg: Invalid HomeId passed to GetDriver #202

Open
sphakka opened this issue Jun 25, 2020 · 0 comments

Comments

@sphakka
Copy link

sphakka commented Jun 25, 2020

Testing a ZME_UZB1 controller. Abort-crash on network.stop(). There are also some possibly unrelated errors at start-up; testing in a virtualenv with OZW config in /var/lib/openzwave/ (script modified accordingly):

$ python hello_world.py --device=/dev/ttyACM0 --log=Debug
...
INFO:openzwave:Start Openzwave network.
***** Waiting for network to become ready : 
.ERROR:libopenzwave:notif_callback exception
Traceback (most recent call last):
  File "src-lib/libopenzwave/libopenzwave.pyx", line 512, in libopenzwave.notif_callback
IndexError: list index out of range
UnboundLocalError: local variable 'n' referenced before assignment
Exception ignored in: 'libopenzwave.notif_callback'
UnboundLocalError: local variable 'n' referenced before assignment
ERROR:libopenzwave:notif_callback exception
Traceback (most recent call last):
  File "src-lib/libopenzwave/libopenzwave.pyx", line 512, in libopenzwave.notif_callback
IndexError: list index out of range
UnboundLocalError: local variable 'n' referenced before assignment
Exception ignored in: 'libopenzwave.notif_callback'
UnboundLocalError: local variable 'n' referenced before assignment
ERROR:libopenzwave:notif_callback exception
Traceback (most recent call last):
  File "src-lib/libopenzwave/libopenzwave.pyx", line 512, in libopenzwave.notif_callback
IndexError: list index out of range
UnboundLocalError: local variable 'n' referenced before assignment
Exception ignored in: 'libopenzwave.notif_callback'
UnboundLocalError: local variable 'n' referenced before assignment
INFO:openzwave:Driver ready using library Static Controller version Z-Wave 4.61
INFO:openzwave:home_id 0xff5b930c, controller node id is 1
Hello from network : I'm started : homeid ff5b930c - 1 nodes were found.
Hello from network : I'm ready : 1 nodes were found.
Hello from network : my controller is : home_id: [0xff5b930c] id: [1] name: [Hello name] product: [ZME_UZB1 USB Stick] capabilities: {'staticUpdateController', 'primaryController'} library: [Static Controller version Z-Wave 4.61]
***** Network is ready
Update controller name
Hello from node : home_id: [0xff5b930c] id: [1] name: [Hello name] model: [ZME_UZB1 USB Stick].
Update controller location
Hello from node : home_id: [0xff5b930c] id: [1] name: [Hello name] model: [ZME_UZB1 USB Stick].
INFO:openzwave:Stop Openzwave network.
INFO:openzwave:ZWave configuration written to user directory.
terminate called after throwing an instance of 'OpenZWave::OZWException'
  what():  Manager.cpp:405 - InvalidHomeIDError (100) Msg: Invalid HomeId passed to GetDriver
Aborted

Debug log here

pyozw_check -i ... runs OK:

$ pyozw_check --config_path /var/lib/openzwave/ -i -d /dev/ttyACM0 --user_path=${HOME}/tmp/OZW
...
2020-06-25 12:37:20.294 Info, Saving Cache
2020-06-25 12:37:20.294 Info, Node001, Cache Save for Node 1 as its QueryStage_CacheLoad
2020-06-25 12:37:20.295 Info, Stopping DNSThread
2020-06-25 12:37:22.296 Info, mgr,     Driver for controller /dev/ttyACM0 removed
Try to remove watcher
Try to destroy manager
Try to destroy options
Retrieve HomeID
ff5b930c

Debug log here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant