Page 1 of 1

Crash after update beta 13104

Posted: Tuesday 23 March 2021 22:12
by tomyc
Hello,
I have installed update beta 13104 and Domoticz now crash after about one minute. After restart works again one minute. I have tried to reinstall it but after recovery database problem appears again. It is strange because backup has been created before domoticz upgrade. Last lines in log file:

2021-03-23 21:59:00.541 Error: Domoticz(pid:7205, tid:7210('SQLHelper')) received fatal signal 6 (Aborted)
2021-03-23 21:59:00.541 Error: siginfo address=0x1c25, address=(nil)

Code: Select all

2021-03-23 23:00:13.701  [67efe220] Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2021-03-23 23:00:13.747  [7538c220] Debug: SQLH: Do Task ItemType:14 Cmd: Value:710.0;nil
terminate called after throwing an instance of 'std::invalid_argument'
  what():  stof
Fatal Python error: Aborted

Thread 0x76fdf190 (most recent call first):
2021-03-23 23:00:13.749  [7538c220] Error: Domoticz(pid:14171, tid:14177('SQLHelper')) received fatal signal 6 (Aborted)
2021-03-23 23:00:13.749  [7538c220] Error: siginfo address=0x375b, address=(nil)
2021-03-23 23:00:13.769  [72d59220] Debug: web: Host:192.168.0.115 Uri;/json.htm?type=devices&filter=all&used=true&lastupdate=1616536805
2021-03-23 23:00:13.799  [72d59220] Debug: web: Host:192.168.0.133 Uri;/json.htm?type=command&param=getlog&lastlogtime=1616536807&loglevel=268435455
2021-03-23 23:00:13.800  [72d59220] Debug: WEBS GetJSon :getlog :/json.htm?type=command&param=getlog&lastlogtime=1616536807&loglevel=268435455
2021-03-23 23:00:18.156  [7538c220] Error: Thread 3 (Thread 0x7538c220 (LWP 14177)):
2021-03-23 23:00:18.156  [7538c220] Error: #0  __waitpid (options=0, stat_loc=0x7538a1c8, pid=19000) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2021-03-23 23:00:18.156  [7538c220] Error: #1  __waitpid (pid=19000, stat_loc=0x7538a1c8, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2021-03-23 23:00:18.156  [7538c220] Error: #2  0x002859b4 in dumpstack_gdb(bool) ()
2021-03-23 23:00:18.156  [7538c220] Error: #3  0x00285f80 in signal_handler(int, siginfo_t*, void*) ()
2021-03-23 23:00:18.156  [7538c220] Error: #4  <signal handler called>
2021-03-23 23:00:18.156  [7538c220] Error: #5  raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:50
2021-03-23 23:00:18.156  [7538c220] Error: #6  <signal handler called>
2021-03-23 23:00:18.156  [7538c220] Error: #7  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
2021-03-23 23:00:18.157  [7538c220] Error: #8  0x769fe230 in __GI_abort () at abort.c:79
2021-03-23 23:00:18.157  [7538c220] Error: #9  0x009a415c in __gnu_cxx::__verbose_terminate_handler() ()
2021-03-23 23:00:18.157  [7538c220] Error: #10 0x00907514 in __cxxabiv1::__terminate(void (*)()) ()
2021-03-23 23:00:18.157  [7538c220] Error: #11 0x00907588 in std::terminate() ()
2021-03-23 23:00:18.157  [7538c220] Error: #12 0x00912038 in __cxa_throw ()
2021-03-23 23:00:18.157  [7538c220] Error: #13 0x00940a90 in std::__throw_invalid_argument(char const*) ()
2021-03-23 23:00:18.157  [7538c220] Error: #14 0x002c1b78 in float __gnu_cxx::__stoa<float, float, char>(float (*)(char const*, char**), char const*, char const*, unsigned int*) ()
2021-03-23 23:00:18.157  [7538c220] Error: #15 0x0029c864 in CSQLHelper::UpdateValueInt(int, char const*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) ()
2021-03-23 23:00:18.157  [7538c220] Error: #16 0x002bed64 in CSQLHelper::UpdateValue(int, char const*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) ()
2021-03-23 23:00:18.157  [7538c220] Error: #17 0x00259e2c in MainWorker::UpdateDevice(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, bool) ()
2021-03-23 23:00:18.157  [7538c220] Error: #18 0x0025a754 in MainWorker::UpdateDevice(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, bool) ()
2021-03-23 23:00:18.157  [7538c220] Error: #19 0x0029e7c0 in CSQLHelper::Do_Work() ()
2021-03-23 23:00:18.158  [7538c220] Error: #20 0x0097b82c in execute_native_thread_routine ()
2021-03-23 23:00:18.158  [7538c220] Error: #21 0x76c0b494 in start_thread (arg=0x7538c220) at pthread_create.c:486
Neúspěšně ukončen (SIGABRT)

Could you please help? Or does anybody have older version of domoticz?

Thank you very much
Tomyc

Re: Crash after update beta 13104

Posted: Wednesday 24 March 2021 12:51
by tomyc
I tried to reinstall domoticz, roll back my database version for several days but same problem. After switch off one LUA script it seem to works. But this script has not been changed last days and works without problem with old version of domoticz. Does anybody have idea?
Thank you very much

EDIT: It seems problem is at devices Electricity(instant + counter). I use many these virtual devices but only one works at same time( pic01)
When I change settings "Energy read" from Computed to From device so this settings is coppied to all other device of this type (Electricity). No possible to set each device separately (pic02)

Re: Crash after update beta 13104

Posted: Wednesday 24 March 2021 14:46
by FireWizard
Hi, @tomyc,

Have a look at viewtopic.php?f=6&t=35855&hilit=13102, which contains a link to: https://github.com/domoticz/domoticz/issues/4736.

So, developers work on a solution and some patience is required.

Regards

Re: Crash after update beta 13104

Posted: Wednesday 24 March 2021 18:03
by Toulon7559
2*RPI3B+ and 2*RPI0W all with beta 13104 without problems (or at least not visible related to installed applications).
However only 1 *RPI3B+ successfully downloads&installs subsequent beta 13111:
other 3 report download problems after full download cycle.
Strangely, later all 4 show to have 'promoted' to beta 13111.

Re: Crash after update beta 13104

Posted: Wednesday 24 March 2021 19:25
by tomyc
After upgrade to 13111 still same problem. When I turn on script which works with Electricity devices Domoticz do not answer. Same error in log

Re: Crash after update beta 13104

Posted: Saturday 27 March 2021 14:51
by FireWizard
Solved in version 13119.

Re: Crash after update beta 13104

Posted: Saturday 27 March 2021 19:08
by tomyc
From version 13119 everything OK again. Thank you very much
Tomyc