Domoticz crashes when changing a property of a zwave sensor

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post
User avatar
Lectere
Posts: 47
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Domoticz crashes when changing a property of a zwave sensor

Postby Lectere » Tuesday 13 December 2016 20:02

Version: 3.6136
Platform: Raspi Jesse Debian
SD card; 16GB LEXAR MICROSDHC UHS-I 633X 95MB/S
Linux kernel: 4.4.34-v7+ / "Raspbian GNU/Linux 8 (jessie)"
APC BE700G-GR Power
Pi 2 Model B v1.1 1GB a01041 (Sony, UK)

Description: I have Domoticz with a Zwave Aeonlabs Zwave stick Gen5, with around 31 zwave devices. One of these devices is a Aeotect ZW089 Recessed Door Sensor Gen5.

When I try to change the option 121/Report type to 'Sensor Binairy Rerport' Domoticz crashes with this message;

Code: Select all

2016-12-13 16:05:15.717 Error: Domoticz received fatal signal 11 !...
2016-12-13 16:05:15.721 Error: /home/pi/domoticz/domoticz() [0x1a7b00]
2016-12-13 16:05:15.721 Error: /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1a7bb8]
2016-12-13 16:05:15.721 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76ab1180]


The Domoticz process stops on my Pi, and I need to start domoticz again.

Things I've tried;
-I've disabled all hardware (except the zwave stick), and disabled all events (blocky's/lua).
-I did a total reinstall of my Pi, installation according to the manual. (import database)
-Enable verbose/debug log, no more info.
-Changed the hardware, got a new door sensor from my shop.
-Reset the door sensor (20 seconds button press)
-Remove/add the sensor several times to the zwave network
-I just started with zwave, I have a new setup, it never worked.
-changing the properties of other zwave devices works without a problem.

I want to test this with only 2 zwave devices in my setup; how can I easely backup my zwave devices, delete them, do my test, and restore them?

Thanks
Last edited by Lectere on Sunday 18 December 2016 0:44, edited 1 time in total.
Effictent and redundant two-factor authentication? http://www.smspassword.com

User avatar
Lectere
Posts: 47
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor

Postby Lectere » Thursday 15 December 2016 22:20

Update:
-updated to version 3.6154
-2nd time total reinstallation of the Raspi, on a new SD card
-removed some zombi nodes from the zwave network
-chancing the sensor binary report toggle works (1)
-changing the basic set toggle does work (3)
-changing the low battery check does work (101)
-changing the 'Lock/Unlock config' does work (252)
-changing the device tag does work (254)
-changing the wake-up interval does work (2000)
-changing the report type into anything else results in a crash of domoticz (off, binary, basic + binary), also when changed from the OpenZwave control panel :(

The error message in the GUI: 'Problem updating Node Configuration!'

Code: Select all

        <Value type="list" genre="config" instance="1" index="121" label="Report Type" size="4" value="256">
            <Help>Configure which sensor report will be sent when the sensor is Opened/Closed</Help>
            <Item label="Disabled" value="0"/>
            <Item label="Basic Set" value="256"/>
            <Item label="Sensor Binary Report" value="16"/>
            <Item label="Basic Set and Sensor Binary Report" value="272"/>
        </Value>


Value should be set to 256 and then send to;

Code: Select all

  if (valueList!="") {
                $.ajax({
                     url: "json.htm?type=command&param=applyzwavenodeconfig" +
                        "&idx=" + idx +
                        "&valuelist=" + valueList,
                     async: false,
                     dataType: 'json',
                     success: function(data) {
                        bootbox.alert($.t('Configuration send to node. If the node is asleep, this could take a while!'));
                     },
                     error: function(){
                            ShowNotify($.t('Problem updating Node Configuration!'), 2500, true);
                     }
                });
            }


Is there a way to find out when exactly was passed to json.htm?
Last edited by Lectere on Saturday 17 December 2016 11:52, edited 2 times in total.
Effictent and redundant two-factor authentication? http://www.smspassword.com

elmortero
Posts: 96
Joined: Sunday 29 November 2015 21:46
Target OS: Raspberry Pi
Domoticz version: 2.3852
Location: Spain
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor

Postby elmortero » Friday 16 December 2016 14:01

I have the same happening.
My z-wave controller is a razberry.
Noticed it first in 3.6150 and happening also in 3.6154 and 3.6156

Happens indeed when changing any setting of a z-wave device.
Including/excluding seems to be ok.

Raspbian Wheezy

User avatar
Lectere
Posts: 47
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor

Postby Lectere » Friday 16 December 2016 15:51

Can you please specify exactly what you do, and also include the error message...
Effictent and redundant two-factor authentication? http://www.smspassword.com

User avatar
Lectere
Posts: 47
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor

Postby Lectere » Saturday 17 December 2016 12:26

Ultimately this URL is fired;

Code: Select all

http://myurl:myport/json.htm?type=command&param=applyzwavenodeconfig&idx=50&valueList=121_16_
Effictent and redundant two-factor authentication? http://www.smspassword.com

elmortero
Posts: 96
Joined: Sunday 29 November 2015 21:46
Target OS: Raspberry Pi
Domoticz version: 2.3852
Location: Spain
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor

Postby elmortero » Saturday 17 December 2016 13:09

Did some tests this morning, and it works now.
Have no clue why, but I am not complaining.

User avatar
Lectere
Posts: 47
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor

Postby Lectere » Saturday 17 December 2016 23:51

Since my crash ultimately is triggered by a call to the json.htm, I've re-enabled the http server on 8080, and I've noticed a slightly quicker system. Is that my imagination?, our could this be a fact?

Is it better to also enable the 8080 web server?
Effictent and redundant two-factor authentication? http://www.smspassword.com

User avatar
Lectere
Posts: 47
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor

Postby Lectere » Sunday 18 December 2016 0:22

Reverted back to last stable using this guide; https://www.domoticz.com/wiki/Going_bac ... us_version

And finally, the problem is gone...
Effictent and redundant two-factor authentication? http://www.smspassword.com

geezerrr
Posts: 119
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby geezerrr » Sunday 18 December 2016 15:27

I run info the same problem this morning. Running Dominicz (last beta) on a pi 2B also with the razberry 2.
If I go back to the last stable release and change the report type to binary and than update again, should this work?

geezerrr
Posts: 119
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby geezerrr » Sunday 18 December 2016 15:27

I run info the same problem this morning. Running Dominicz (last beta) on a pi 2B also with the razberry 2.
If I go back to the last stable release and change the report type to binary and than update again, should this work?

User avatar
gizmocuz
Posts: 7925
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby gizmocuz » Sunday 18 December 2016 16:13

Try building domoticz in debug mode, then we know where the error is
Or maybe easier, set up VS2015, compile domoticz in debug mode and see where the crash happens and if possible also make a patch for it
Quality outlives Quantity!

geezerrr
Posts: 119
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby geezerrr » Sunday 18 December 2016 16:35

Here is my log, the last line is when Domotiz is crashing

Code: Select all

2016-12-18 15:20:03.158 Detail, Node006, Removing current message
2016-12-18 15:20:03.158 Detail, Notification: ControllerCommand - Completed
2016-12-18 15:20:03.159 Info, Assigning return route from node 6 to node 1
2016-12-18 15:20:03.159 Detail, Node006, Queuing (Command) ControllerCommand_AssignReturnRoute (Node=6): 0x01, 0x06, 0x00, 0x46, 0x06, 0x01, 0xab, 0x13
2016-12-18 15:20:03.159 Detail, Notification: ControllerCommand - Starting
2016-12-18 15:20:03.159 Detail,
2016-12-18 15:20:03.159 Info, Node006, Sending (Command) message (Callback ID=0xab, Expected Reply=0x46) - ControllerCommand_AssignReturnRoute (Node=6): 0x01, 0x06, 0x00, 0x46, 0x06, 0x01, 0xab, 0x13
2016-12-18 15:20:04.109 Detail, Node006,   Received: 0x01, 0x04, 0x01, 0x46, 0x01, 0xbd
2016-12-18 15:20:04.109 Detail,
2016-12-18 15:20:04.109 Info, Node006, Received reply to FUNC_ID_ZW_ASSIGN_RETURN_ROUTE - command in progress
2016-12-18 15:20:04.109 Detail, Notification: ControllerCommand - InProgress
2016-12-18 15:20:05.764 Detail, Node006,   Received: 0x01, 0x05, 0x00, 0x46, 0xab, 0x00, 0x17
2016-12-18 15:20:05.764 Detail,
2016-12-18 15:20:05.764 Info, Node006, Received reply to FUNC_ID_ZW_ASSIGN_RETURN_ROUTE for node 6 - SUCCESS
2016-12-18 15:20:05.765 Detail,   Expected callbackId was received
2016-12-18 15:20:05.765 Detail,   Expected reply was received
2016-12-18 15:20:05.765 Detail,   Message transaction complete
2016-12-18 15:20:05.765 Detail,
2016-12-18 15:20:05.765 Detail, Node006, Removing current message
2016-12-18 15:20:05.765 Detail, Notification: ControllerCommand - Completed
2016-12-18 15:20:05.765 Info, Deleting all return routes from node 7
2016-12-18 15:20:05.765 Detail, Node007, Queuing (Command) ControllerCommand_DeleteAllReturnRoutess (Node=7): 0x01, 0x05, 0x00, 0x47, 0x07, 0xac, 0x16
2016-12-18 15:20:05.765 Detail, Notification: ControllerCommand - Starting
2016-12-18 15:20:05.766 Detail,
2016-12-18 15:20:05.766 Info, Node007, Sending (Command) message (Callback ID=0xac, Expected Reply=0x47) - ControllerCommand_DeleteAllReturnRoutess (Node=7): 0x01, 0x05, 0x00, 0x47, 0x07, 0xac, 0x16
2016-12-18 15:20:05.772 Detail, Node007,   Received: 0x01, 0x04, 0x01, 0x47, 0x01, 0xbc
2016-12-18 15:20:05.772 Detail,
2016-12-18 15:20:05.772 Info, Node007, Received reply to FUNC_ID_ZW_DELETE_RETURN_ROUTE - command in progress
2016-12-18 15:20:05.772 Detail, Notification: ControllerCommand - InProgress
2016-12-18 15:20:06.333 Detail, Node032,   Received: 0x01, 0x0c, 0x00, 0x04, 0x00, 0x20, 0x06, 0x31, 0x05, 0x04, 0x22, 0x00, 0x00, 0xc3
2016-12-18 15:20:06.334 Detail,
2016-12-18 15:20:06.334 Info, Node032, Received SensorMultiLevel report from node 32, instance 1, Power: value=0.0W
2016-12-18 15:20:06.334 Detail, Node032, Initial read of value
2016-12-18 15:20:06.334 Detail, Node032, Notification: ValueChanged
2016-12-18 15:20:07.882 Detail, Node007,   Received: 0x01, 0x05, 0x00, 0x47, 0xac, 0x00, 0x11
2016-12-18 15:20:07.882 Detail,
2016-12-18 15:20:07.882 Info, Node007, Received reply to FUNC_ID_ZW_DELETE_RETURN_ROUTE for node 7 - SUCCESS
2016-12-18 15:20:07.882 Detail,   Expected callbackId was received
2016-12-18 15:20:07.882 Detail,   Expected reply was received
2016-12-18 15:20:07.882 Detail,   Message transaction complete
2016-12-18 15:20:07.883 Detail,
2016-12-18 15:20:07.883 Detail, Node007, Removing current message
2016-12-18 15:20:07.883 Detail, Notification: ControllerCommand - Completed
2016-12-18 15:20:07.883 Info, Assigning return route from node 7 to node 1
2016-12-18 15:20:07.883 Detail, Node007, Queuing (Command) ControllerCommand_AssignReturnRoute (Node=7): 0x01, 0x06, 0x00, 0x46, 0x07, 0x01, 0xad, 0x14
2016-12-18 15:20:07.883 Detail, Notification: ControllerCommand - Starting
2016-12-18 15:20:07.883 Detail,
2016-12-18 15:20:07.884 Info, Node007, Sending (Command) message (Callback ID=0xad, Expected Reply=0x46) - ControllerCommand_AssignReturnRoute (Node=7): 0x01, 0x06, 0x00, 0x46, 0x07, 0x01, 0xad, 0x14
2016-12-18 15:20:08.424 Warning, Invalid Index Set on ValueList
 

geezerrr
Posts: 119
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Domoticz crashes when changing a property of a zwave sensor [solved]

Postby geezerrr » Sunday 18 December 2016 16:35

Here is my log, the last line is when Domotiz is crashing, ow and node 77 is the zw089 sensor.

Code: Select all

2016-12-18 15:20:03.158 Detail, Node006, Removing current message
2016-12-18 15:20:03.158 Detail, Notification: ControllerCommand - Completed
2016-12-18 15:20:03.159 Info, Assigning return route from node 6 to node 1
2016-12-18 15:20:03.159 Detail, Node006, Queuing (Command) ControllerCommand_AssignReturnRoute (Node=6): 0x01, 0x06, 0x00, 0x46, 0x06, 0x01, 0xab, 0x13
2016-12-18 15:20:03.159 Detail, Notification: ControllerCommand - Starting
2016-12-18 15:20:03.159 Detail,
2016-12-18 15:20:03.159 Info, Node006, Sending (Command) message (Callback ID=0xab, Expected Reply=0x46) - ControllerCommand_AssignReturnRoute (Node=6): 0x01, 0x06, 0x00, 0x46, 0x06, 0x01, 0xab, 0x13
2016-12-18 15:20:04.109 Detail, Node006,   Received: 0x01, 0x04, 0x01, 0x46, 0x01, 0xbd
2016-12-18 15:20:04.109 Detail,
2016-12-18 15:20:04.109 Info, Node006, Received reply to FUNC_ID_ZW_ASSIGN_RETURN_ROUTE - command in progress
2016-12-18 15:20:04.109 Detail, Notification: ControllerCommand - InProgress
2016-12-18 15:20:05.764 Detail, Node006,   Received: 0x01, 0x05, 0x00, 0x46, 0xab, 0x00, 0x17
2016-12-18 15:20:05.764 Detail,
2016-12-18 15:20:05.764 Info, Node006, Received reply to FUNC_ID_ZW_ASSIGN_RETURN_ROUTE for node 6 - SUCCESS
2016-12-18 15:20:05.765 Detail,   Expected callbackId was received
2016-12-18 15:20:05.765 Detail,   Expected reply was received
2016-12-18 15:20:05.765 Detail,   Message transaction complete
2016-12-18 15:20:05.765 Detail,
2016-12-18 15:20:05.765 Detail, Node006, Removing current message
2016-12-18 15:20:05.765 Detail, Notification: ControllerCommand - Completed
2016-12-18 15:20:05.765 Info, Deleting all return routes from node 7
2016-12-18 15:20:05.765 Detail, Node007, Queuing (Command) ControllerCommand_DeleteAllReturnRoutess (Node=7): 0x01, 0x05, 0x00, 0x47, 0x07, 0xac, 0x16
2016-12-18 15:20:05.765 Detail, Notification: ControllerCommand - Starting
2016-12-18 15:20:05.766 Detail,
2016-12-18 15:20:05.766 Info, Node007, Sending (Command) message (Callback ID=0xac, Expected Reply=0x47) - ControllerCommand_DeleteAllReturnRoutess (Node=7): 0x01, 0x05, 0x00, 0x47, 0x07, 0xac, 0x16
2016-12-18 15:20:05.772 Detail, Node007,   Received: 0x01, 0x04, 0x01, 0x47, 0x01, 0xbc
2016-12-18 15:20:05.772 Detail,
2016-12-18 15:20:05.772 Info, Node007, Received reply to FUNC_ID_ZW_DELETE_RETURN_ROUTE - command in progress
2016-12-18 15:20:05.772 Detail, Notification: ControllerCommand - InProgress
2016-12-18 15:20:06.333 Detail, Node032,   Received: 0x01, 0x0c, 0x00, 0x04, 0x00, 0x20, 0x06, 0x31, 0x05, 0x04, 0x22, 0x00, 0x00, 0xc3
2016-12-18 15:20:06.334 Detail,
2016-12-18 15:20:06.334 Info, Node032, Received SensorMultiLevel report from node 32, instance 1, Power: value=0.0W
2016-12-18 15:20:06.334 Detail, Node032, Initial read of value
2016-12-18 15:20:06.334 Detail, Node032, Notification: ValueChanged
2016-12-18 15:20:07.882 Detail, Node007,   Received: 0x01, 0x05, 0x00, 0x47, 0xac, 0x00, 0x11
2016-12-18 15:20:07.882 Detail,
2016-12-18 15:20:07.882 Info, Node007, Received reply to FUNC_ID_ZW_DELETE_RETURN_ROUTE for node 7 - SUCCESS
2016-12-18 15:20:07.882 Detail,   Expected callbackId was received
2016-12-18 15:20:07.882 Detail,   Expected reply was received
2016-12-18 15:20:07.882 Detail,   Message transaction complete
2016-12-18 15:20:07.883 Detail,
2016-12-18 15:20:07.883 Detail, Node007, Removing current message
2016-12-18 15:20:07.883 Detail, Notification: ControllerCommand - Completed
2016-12-18 15:20:07.883 Info, Assigning return route from node 7 to node 1
2016-12-18 15:20:07.883 Detail, Node007, Queuing (Command) ControllerCommand_AssignReturnRoute (Node=7): 0x01, 0x06, 0x00, 0x46, 0x07, 0x01, 0xad, 0x14
2016-12-18 15:20:07.883 Detail, Notification: ControllerCommand - Starting
2016-12-18 15:20:07.883 Detail,
2016-12-18 15:20:07.884 Info, Node007, Sending (Command) message (Callback ID=0xad, Expected Reply=0x46) - ControllerCommand_AssignReturnRoute (Node=7): 0x01, 0x06, 0x00, 0x46, 0x07, 0x01, 0xad, 0x14
2016-12-18 15:20:08.424 Warning, Invalid Index Set on ValueList
 

User avatar
gizmocuz
Posts: 7925
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby gizmocuz » Sunday 18 December 2016 16:40

this is an OZW log, if you compile domoticz in debug mode

git pull
cmake -DCMAKE_BUILD_TYPE=Debug CMakeLists.txt

launch it from the command line

./domoticz

then when it crashes it should indicate where it is

I do not have this error for an aeotec sensor where i can change the type

did you try to change it from the openzwave control panel ? does it crash there?
Quality outlives Quantity!

geezerrr
Posts: 119
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby geezerrr » Sunday 18 December 2016 16:51

Hmm maybe I'm running a little short in Linux skills but if navigate to my donoticz folder and type git pull the command line says: fatal: not a git repository (or any of the parents directories) : .git.

User avatar
gizmocuz
Posts: 7925
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby gizmocuz » Sunday 18 December 2016 16:53

See here, installing from soure

http://www.domoticz.com/wiki/Installing ... spberry_PI

but how about changing the parameter from the control panel ?
Quality outlives Quantity!

geezerrr
Posts: 119
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby geezerrr » Sunday 18 December 2016 17:01

When changing from the control panel the domoticz service is crashing as well.

User avatar
gizmocuz
Posts: 7925
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby gizmocuz » Sunday 18 December 2016 17:08

It seems when you post that you always post 2 messages, i removed the last 3
Maybe you double click ?
Quality outlives Quantity!

User avatar
Lectere
Posts: 47
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby Lectere » Sunday 18 December 2016 21:49

I'd like to help, I have knowledge of VS2015. I have it installed in a hyper-v VM, that possible?, or does it need the USB dongle? Can I just add GIT and pull from the repro?
Effictent and redundant two-factor authentication? http://www.smspassword.com

User avatar
gizmocuz
Posts: 7925
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz crashes when changing a property of a zwave sensor [solved]

Postby gizmocuz » Monday 19 December 2016 9:22

You could use a vmware, if you have an debian (raspberry) machine with the real usb stick, you can also use ser2net, but the easiest is to plug the usb stick directly into the machine
There is a readme file in the repo explaining how to setup visual studio, it's the project file (in the msbuild folder), and the libraries you need to install there
Quality outlives Quantity!


Return to “Bugs and Problems”

Who is online

Users browsing this forum: No registered users and 17 guests