Description
I'm trying to migrate away from Z-Wave integrated in HASS to qt-openzwave. I started container with these parameters:
docker run -it --restart always --name ozwdaemon --security-opt seccomp=unconfined --device=/dev/ttyAMAzwave -v /opt/ozw/config:/opt/ozw -e MQTT_SERVER="192.168.178.250" -e USB_PATH=/dev/ttyAMAzwave -p1983:1983 -p 5901:5901 -p7800:7800 openzwave/ozwdaemon:allinone-latest
The container starts and I can connect to port 7800 and start VNC.
Then as soon as I click on 'Configuration' from the File menu, the VNC connection is closed and I see that ozw-admin was terminated:
2020-06-09 10:18:35,994 INFO success: ozw-admin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-09 10:18:35,995 INFO success: websockify entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-09 10:18:44,321 INFO success: ozwdaemon entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
2020-06-09 10:18:59,362 INFO exited: ozw-admin (terminated by SIGSEGV (core dumped); not expected)
2020-06-09 10:18:59,374 INFO spawned: 'ozw-admin' with pid 25
2020-06-09 10:19:00,372 INFO success: ozw-admin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-09 10:20:50,169 INFO exited: ozw-admin (terminated by SIGSEGV (core dumped); not expected)
2020-06-09 10:20:51,181 INFO spawned: 'ozw-admin' with pid 27
2020-06-09 10:20:52,538 INFO success: ozw-admin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
I can reproduce this over and over.
The same issue occurs when I click on 'Open', enter /dev/ttyAMAzwave as device and click on 'Start'. As soon as I click on Start, the VNC connection is closed and ozw-admin is terminated by SIGSEGV.
I created /opt/ozw/crashes and /opt/ozw/config/crashes but I see no core-dumps.
The same occurs when I manually start ozwadmin from within the container and specify a device:
root@8a93fdf8d34e:/opt/ozw# /usr/local/bin/ozwadmin -platform vnc:port=5901 -s /dev/ttyAMAzwave
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
ozwadmin: Checking "/opt/ozw/" for manufacturer_specific.xml
ozwadmin: Checking "/opt/ozw/" for options.xml
ozwadmin: DBPath: "/opt/ozw/"
ozwadmin: userPath: "/opt/ozw/"
[20200609 10:24:37.898 UTC] [default] [warning]: QVncServer created on port 5901
[20200609 10:24:37.913 UTC] [ozwadmin] [debug]: Doing Local Connection: "/dev/ttyAMAzwave" false
[20200609 10:24:37.916 UTC] [ozw.manager] [debug]: Database Path: "/opt/ozw/" User Path "/opt/ozw/"
[20200609 10:24:37.916 UTC] [ozw.manager] [debug]: OpenZWave Options Class Creating
[20200609 10:24:37.917 UTC] [ozw.manager] [debug]: OpenZWave Options Class Set
[20200609 10:24:37.917 UTC] [ozw.manager] [debug]: Models Created
[20200609 10:24:37.917 UTC] [ozw.manager] [debug]: QTOZWManager Ready!
[20200609 10:24:37.917 UTC] [ozwadmin] [debug]: QTOZW Ready
[20200609 10:24:37.917 UTC] [ozwadmin] [debug]: Updating Option "ConfigPath" to QVariant(QString, "/opt/ozw/")
[20200609 10:24:37.918 UTC] [ozwadmin] [debug]: Updating Option "UserPath" to QVariant(QString, "/opt/ozw/")
[20200609 10:24:38.085 UTC] [ozw.manager] [debug]: QTOZWLog Ready!
Segmentation fault (core dumped)
Any ideas?