Domoticz webserver crash after adding SmartVirtualThermostat hardware on stable Release 2021.1

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jeremushka
Posts: 3
Joined: Saturday 27 November 2021 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz webserver crash after adding SmartVirtualThermostat hardware on stable Release 2021.1

Post by jeremushka »

Hi,

I have installed a ne fresh release of Domoticz on a Rpi. Details of the releases below.

##########RASPBERRY####
Raspberry PI OS (32-bit)
A port of Debian with the Rpi Desktop (Release 2021-10-30)


##########DOMOTICZ####
Version: 2021.1 (stable version)
Build: 13191
Build Hash: 8547c5b7e
Compile Date: 2021-04-17 17:29:11
dzVents Version: 3.1.7
Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]


After installing, the first thing i have done is to install the SmartVirtualThermostat. I did that, because i had this issue before after installing all my SmartHome systems.

Indeed, just after clicking on "ADD" Button in hardware section for this SMartVirtualThermostat plugin, the webserver crashes. If i uninstalled the SVT plugin, i can reach my webserver again.

I have read (some old post) that some update on BETA versions can solved the problems. However, i have tried it before making a new fresh installation without success.

I am adding the logs below it anyone as an idea, i will really appreciate :)

Code: Select all

pi@raspberrypi:~/domoticz $ ./domoticz
2021-11-27 17:14:07.013  Status: Domoticz V2021.1 (c)2012-2021 GizMoCuz
2021-11-27 17:14:07.013  Status: Build Hash: 8547c5b7e, Date: 2021-04-17 17:29:1    1
2021-11-27 17:14:07.013  Status: Startup Path: /home/pi/domoticz/
2021-11-27 17:14:07.304  Status: PluginSystem: Started, Python version '3.9.2'.
2021-11-27 17:14:07.312  Active notification Subsystems: fcm, http (2/13)
2021-11-27 17:14:07.315  Status: WebServer(HTTP) started on address: :: with por    t 8080
2021-11-27 17:14:07.338  Error: WebServer(SSL) startup failed on address 0.0.0.0     with port: 443: bind: Permission denied
2021-11-27 17:14:07.338  Error: WebServer(SSL) check privileges for opening port    s below 1024
2021-11-27 17:14:07.341  Starting shared server on: :::6144
2021-11-27 17:14:07.342  Status: TCPServer: shared server started...
2021-11-27 17:14:07.343  Status: RxQueue: queue worker started...
2021-11-27 17:14:09.344  Thermostat hardware started.
2021-11-27 17:14:09.344  Status: Thermostat: (Thermostat) Entering work loop.
2021-11-27 17:14:09.344  Status: Thermostat: (Thermostat) Started.
2021-11-27 17:14:09.345  Status: NotificationSystem: thread started...
2021-11-27 17:14:09.347  Status: EventSystem: reset all events...
2021-11-27 17:14:09.349  Status: EventSystem: reset all device statuses...
2021-11-27 17:14:09.545  Status: PluginSystem: 1 plugins started.
2021-11-27 17:14:09.613  Status: Python EventSystem: Initalizing event module.
2021-11-27 17:14:09.614  Status: EventSystem: Started
2021-11-27 17:14:09.615  Status: EventSystem: Queue thread started...
2021-11-27 17:14:10.373  Status: Thermostat: (Thermostat) Initialized version 0.    4.11, author 'logread'
2021-11-27 17:14:10.377  Thermostat: (Thermostat) Debug logging mask set to: NON    E
2021-11-27 17:14:10.377  Status: Thermostat: (Thermostat) This version of domoti    cz allows status logging by the plugin (in verbose mode)
Fatal Python error: Segmentation fault

Current thread 0x6ecff200 (most recent call first):
  File "/home/pi/domoticz/plugins/SmartVirtualThermostat/plugin.py", line 142 in     onStart
  File "/home/pi/domoticz/plugins/SmartVirtualThermostat/plugin.py", line 619 in     onStart
2021-11-27 17:14:10.379  Error: Domoticz(pid:3000, tid:3013('Thermostat')) recei    ved fatal signal 11 (Segmentation fault)
2021-11-27 17:14:10.380  Error: siginfo address=0xbb8, address=(nil)
2021-11-27 17:14:15.383  Error: Did not find stack frame for thread (LWP 3013)),     printing full gdb output:

2021-11-27 17:14:15.383  Error: > [New LWP 3001]
2021-11-27 17:14:15.383  Error: > [New LWP 3002]
2021-11-27 17:14:15.383  Error: > [New LWP 3003]
2021-11-27 17:14:15.383  Error: > [New LWP 3004]
2021-11-27 17:14:15.383  Error: > [New LWP 3005]
2021-11-27 17:14:15.383  Error: > [New LWP 3006]
2021-11-27 17:14:15.383  Error: > [New LWP 3007]
2021-11-27 17:14:15.383  Error: > [New LWP 3008]
2021-11-27 17:14:15.384  Error: > [New LWP 3009]
2021-11-27 17:14:15.384  Error: > [New LWP 3010]
2021-11-27 17:14:15.384  Error: > [New LWP 3011]
2021-11-27 17:14:15.384  Error: > [New LWP 3012]
2021-11-27 17:14:15.384  Error: > [New LWP 3013]
2021-11-27 17:14:15.384  Error: > [New LWP 3014]
2021-11-27 17:14:15.384  Error: > [New LWP 3015]
2021-11-27 17:14:15.384  Error: > [New LWP 3016]
2021-11-27 17:14:15.384  Error: > [New LWP 3017]
2021-11-27 17:14:15.384  Error: > [Thread debugging using libthread_db enabled]
2021-11-27 17:14:15.384  Error: > Using host libthread_db library "/lib/arm-linu    x-gnueabihf/libthread_db.so.1".
2021-11-27 17:14:15.384  Error: > 0x76a87f8c in __GI___clock_nanosleep_time64 (c    lock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7e970218, req@entry=0x7e970    210, rem=0x7e970228, rem@entry=0x7e970220) at ../sysdeps/unix/sysv/linux/clock_n    anosleep.c:52
2021-11-27 17:14:15.385  Error: > 52    ../sysdeps/unix/sysv/linux/clock_nanosle    ep.c: No such file or directory.
2021-11-27 17:14:15.385  Error: >   Id   Target Id                                          Frame
2021-11-27 17:14:15.385  Error: > * 1    Thread 0x76fdc040 (LWP 3000) "domoticz"            0x76a87f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0,     flags=flags@entry=0, req=0x7e970218, req@entry=0x7e970210, rem=0x7e970228, rem@e    ntry=0x7e970220) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2021-11-27 17:14:15.385  Error: >   2    Thread 0x75a84200 (LWP 3001) "Watchdog"            0x76a87f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0,     flags=flags@entry=0, req=0x75a83b70, req@entry=0x75a83b68, rem=0x75a83b80, rem@e    ntry=0x75a83b78) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2021-11-27 17:14:15.385  Error: >   3    Thread 0x75283200 (LWP 3002) "SQLHelper    "       syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.385  Error: >   4    Thread 0x74a82200 (LWP 3003) "PluginMgr    "       syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.385  Error: >   5    Thread 0x73c47200 (LWP 3004) "InfluxPus    h"      syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.385  Error: >   6    Thread 0x73446200 (LWP 3005) "Webem_ssn    cleane" 0x76ac763c in epoll_wait (epfd=14, events=0x73445358, maxevents=128, tim    eout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2021-11-27 17:14:15.385  Error: >   7    Thread 0x72c45200 (LWP 3006) "WebServer    _8080"  0x76ac763c in epoll_wait (epfd=10, events=0x72c44328, maxevents=128, tim    eout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2021-11-27 17:14:15.385  Error: >   8    Thread 0x722ff200 (LWP 3007) "Scheduler    "       syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.385  Error: >   9    Thread 0x71afe200 (LWP 3008) "TCPServer    "       0x76ac763c in epoll_wait (epfd=17, events=0x71afd358, maxevents=128, tim    eout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2021-11-27 17:14:15.385  Error: >   10   Thread 0x710ff200 (LWP 3009) "MainWorke    r"      syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.385  Error: >   11   Thread 0x708fe200 (LWP 3010) "MainWorke    rRxMsg" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x708fd    b80, clockid=<optimized out>, expected=0, futex_word=0xb229a0 <m_mainworker+3960    >) at ../sysdeps/nptl/futex-internal.h:323
2021-11-27 17:14:15.386  Error: >   12   Thread 0x6feff200 (LWP 3011) "WebServer    _8080"  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.386  Error: >   13   Thread 0x6f6fe200 (LWP 3012) "WebServer    _8080"  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.386  Error: >   14   Thread 0x6ecff200 (LWP 3013) "Thermosta    t"      0x76a8e4d4 in __GI___wait4 (pid=3018, stat_loc=0x6e325580, options=0, us    age=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
2021-11-27 17:14:15.386  Error: >   15   Thread 0x6e2ff200 (LWP 3014) "Notificat    ionSys" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x6e2fe    bb0, clockid=<optimized out>, expected=0, futex_word=0xb22484 <m_mainworker+2652    >) at ../sysdeps/nptl/futex-internal.h:323
2021-11-27 17:14:15.386  Error: >   16   Thread 0x6d6ff200 (LWP 3015) "Plugin_AS    IO"     futex_wait_cancelable (private=0, expected=0, futex_word=0x1a309c8) at .    ./sysdeps/nptl/futex-internal.h:186
2021-11-27 17:14:15.386  Error: >   17   Thread 0x6cefe200 (LWP 3016) "EventSyst    em"     syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2021-11-27 17:14:15.386  Error: >   18   Thread 0x6c6fd200 (LWP 3017) "EventSyst    emQueu" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x6c6fc    ac0, clockid=<optimized out>, expected=0, futex_word=0xb21b80 <m_mainworker+344>    ) at ../sysdeps/nptl/futex-internal.h:323
2021-11-27 17:14:15.386  Error: >
2021-11-27 17:14:15.386  Error: > Thread 18 (Thread 0x6c6fd200 (LWP 3017) "Event    SystemQueu"):
2021-11-27 17:14:15.386  Error: > #0  futex_abstimed_wait_cancelable (private=<o    ptimized out>, abstime=0x6c6fcac0, clockid=<optimized out>, expected=0, futex_wo    rd=0xb21b80 <m_mainworker+344>) at ../sysdeps/nptl/futex-internal.h:323
2021-11-27 17:14:15.386  Error: > #1  __pthread_cond_wait_common (abstime=0x6c6f    cac0, clockid=<optimized out>, mutex=0x6c6fca60, cond=0xb21b58 <m_mainworker+304    >) at pthread_cond_wait.c:520
2021-11-27 17:14:15.387  Error: > #2  __pthread_cond_timedwait (cond=0xb21b58 <m    _mainworker+304>, mutex=0x6c6fca60, abstime=0x6c6fcac0) at pthread_cond_wait.c:6    56
2021-11-27 17:14:15.387  Error: > #3  0x0020e0d0 in CEventSystem::EventQueueThre    ad() ()
2021-11-27 17:14:15.387  Error: > #4  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.387  Error: > #5  0x76c03300 in start_thread (arg=0x6c6fd200    ) at pthread_create.c:477
2021-11-27 17:14:15.387  Error: > #6  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.387  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.387  Error: >
2021-11-27 17:14:15.387  Error: > Thread 17 (Thread 0x6cefe200 (LWP 3016) "Event    System"):
2021-11-27 17:14:15.387  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.387  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.387  Error: > #2  0x002054b4 in CEventSystem::Do_Work() ()
2021-11-27 17:14:15.387  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.387  Error: > #4  0x76c03300 in start_thread (arg=0x6cefe200    ) at pthread_create.c:477
2021-11-27 17:14:15.388  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.388  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.388  Error: >
2021-11-27 17:14:15.388  Error: > Thread 16 (Thread 0x6d6ff200 (LWP 3015) "Plugi    n_ASIO"):
2021-11-27 17:14:15.388  Error: > #0  futex_wait_cancelable (private=0, expected    =0, futex_word=0x1a309c8) at ../sysdeps/nptl/futex-internal.h:186
2021-11-27 17:14:15.388  Error: > #1  __pthread_cond_wait_common (abstime=0x0, c    lockid=0, mutex=0x0, cond=0x1a309a0) at pthread_cond_wait.c:508
2021-11-27 17:14:15.388  Error: > #2  __pthread_cond_wait (cond=0x1a309a0, mutex    =0x0) at pthread_cond_wait.c:638
2021-11-27 17:14:15.388  Error: > #3  0x003c7494 in boost::asio::detail::schedul    er::run(boost::system::error_code&) ()
2021-11-27 17:14:15.388  Error: > #4  0x0064ca24 in Plugins::BoostWorkers() ()
2021-11-27 17:14:15.388  Error: > #5  0x008197bc in thread_proxy ()
2021-11-27 17:14:15.388  Error: > #6  0x76c03300 in start_thread (arg=0x6d6ff200    ) at pthread_create.c:477
2021-11-27 17:14:15.388  Error: > #7  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.388  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.388  Error: >
2021-11-27 17:14:15.389  Error: > Thread 15 (Thread 0x6e2ff200 (LWP 3014) "Notif    icationSys"):
2021-11-27 17:14:15.389  Error: > #0  futex_abstimed_wait_cancelable (private=<o    ptimized out>, abstime=0x6e2febb0, clockid=<optimized out>, expected=0, futex_wo    rd=0xb22484 <m_mainworker+2652>) at ../sysdeps/nptl/futex-internal.h:323
2021-11-27 17:14:15.389  Error: > #1  __pthread_cond_wait_common (abstime=0x6e2f    ebb0, clockid=<optimized out>, mutex=0x6e2feb58, cond=0xb22458 <m_mainworker+260    8>) at pthread_cond_wait.c:520
2021-11-27 17:14:15.389  Error: > #2  __pthread_cond_timedwait (cond=0xb22458 <m    _mainworker+2608>, mutex=0x6e2feb58, abstime=0x6e2febb0) at pthread_cond_wait.c:    656
2021-11-27 17:14:15.389  Error: > #3  0x00271270 in CNotificationSystem::QueueTh    read() ()
2021-11-27 17:14:15.389  Error: > #4  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.389  Error: > #5  0x76c03300 in start_thread (arg=0x6e2ff200    ) at pthread_create.c:477
2021-11-27 17:14:15.389  Error: > #6  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.389  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.389  Error: >
2021-11-27 17:14:15.389  Error: > Thread 14 (Thread 0x6ecff200 (LWP 3013) "Therm    ostat"):
2021-11-27 17:14:15.390  Error: > #0  0x76a8e4d4 in __GI___wait4 (pid=3018, stat    _loc=0x6e325580, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
2021-11-27 17:14:15.390  Error: > #1  0x0028b14c in dumpstack_gdb(bool) ()
2021-11-27 17:14:15.390  Error: > #2  0x0028b718 in signal_handler(int, siginfo_    t*, void*) ()
2021-11-27 17:14:15.390  Error: > #3  <signal handler called>
2021-11-27 17:14:15.390  Error: > #4  raise (sig=11) at ../sysdeps/unix/sysv/lin    ux/raise.c:50
2021-11-27 17:14:15.390  Error: > #5  <signal handler called>
2021-11-27 17:14:15.390  Error: > #6  0x00000012 in ?? ()
2021-11-27 17:14:15.390  Error: > #7  0x75b0647c in _PyEval_EvalFrameDefault ()     from /lib/arm-linux-gnueabihf/libpython3.9.so
2021-11-27 17:14:15.390  Error: > #8  0x7004371c in ?? ()
2021-11-27 17:14:15.390  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.390  Error: >
2021-11-27 17:14:15.390  Error: > Thread 13 (Thread 0x6f6fe200 (LWP 3012) "WebSe    rver_8080"):
2021-11-27 17:14:15.390  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.391  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.391  Error: > #2  0x006f5034 in http::server::CWebsocketHand    ler::Do_Work() ()
2021-11-27 17:14:15.391  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.391  Error: > #4  0x76c03300 in start_thread (arg=0x6f6fe200    ) at pthread_create.c:477
2021-11-27 17:14:15.391  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.391  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.391  Error: >
2021-11-27 17:14:15.391  Error: > Thread 12 (Thread 0x6feff200 (LWP 3011) "WebSe    rver_8080"):
2021-11-27 17:14:15.391  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.391  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.391  Error: > #2  0x006f5034 in http::server::CWebsocketHand    ler::Do_Work() ()
2021-11-27 17:14:15.391  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.392  Error: > #4  0x76c03300 in start_thread (arg=0x6feff200    ) at pthread_create.c:477
2021-11-27 17:14:15.392  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.392  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.392  Error: >
2021-11-27 17:14:15.392  Error: > Thread 11 (Thread 0x708fe200 (LWP 3010) "MainW    orkerRxMsg"):
2021-11-27 17:14:15.392  Error: > #0  futex_abstimed_wait_cancelable (private=<o    ptimized out>, abstime=0x708fdb80, clockid=<optimized out>, expected=0, futex_wo    rd=0xb229a0 <m_mainworker+3960>) at ../sysdeps/nptl/futex-internal.h:323
2021-11-27 17:14:15.392  Error: > #1  __pthread_cond_wait_common (abstime=0x708f    db80, clockid=<optimized out>, mutex=0x76bfea1c, cond=0xb22978 <m_mainworker+392    0>) at pthread_cond_wait.c:520
2021-11-27 17:14:15.392  Error: > #2  __pthread_cond_timedwait (cond=0xb22978 <m    _mainworker+3920>, mutex=0x76bfea1c, abstime=0x708fdb80) at pthread_cond_wait.c:    656
2021-11-27 17:14:15.392  Error: > #3  0x0025d76c in MainWorker::Do_Work_On_Rx_Me    ssages() ()
2021-11-27 17:14:15.392  Error: > #4  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.392  Error: > #5  0x76c03300 in start_thread (arg=0x708fe200    ) at pthread_create.c:477
2021-11-27 17:14:15.392  Error: > #6  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.393  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.393  Error: >
2021-11-27 17:14:15.393  Error: > Thread 10 (Thread 0x710ff200 (LWP 3009) "MainW    orker"):
2021-11-27 17:14:15.393  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.393  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.393  Error: > #2  0x002595d0 in MainWorker::Do_Work() ()
2021-11-27 17:14:15.393  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.393  Error: > #4  0x76c03300 in start_thread (arg=0x710ff200    ) at pthread_create.c:477
2021-11-27 17:14:15.393  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.393  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.393  Error: >
2021-11-27 17:14:15.393  Error: > Thread 9 (Thread 0x71afe200 (LWP 3008) "TCPSer    ver"):
2021-11-27 17:14:15.393  Error: > #0  0x76ac763c in epoll_wait (epfd=17, events=    0x71afd358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.    c:30
2021-11-27 17:14:15.393  Error: > #1  0x003c53b4 in boost::asio::detail::epoll_r    eactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_o    peration>&) ()
2021-11-27 17:14:15.394  Error: > #2  0x003c73ac in boost::asio::detail::schedul    er::run(boost::system::error_code&) ()
2021-11-27 17:14:15.394  Error: > #3  0x006a2220 in std::thread::_State_impl<std    ::thread::_Invoker<std::tuple<tcp::server::CTCPServer::StartServer(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    &)::{lambda()#1}> > >::_M_run() ()
2021-11-27 17:14:15.394  Error: > #4  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.394  Error: > #5  0x76c03300 in start_thread (arg=0x71afe200    ) at pthread_create.c:477
2021-11-27 17:14:15.394  Error: > #6  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.394  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.394  Error: >
2021-11-27 17:14:15.394  Error: > Thread 8 (Thread 0x722ff200 (LWP 3007) "Schedu    ler"):
2021-11-27 17:14:15.394  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.395  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.395  Error: > #2  0x002825c0 in CScheduler::Do_Work() ()
2021-11-27 17:14:15.395  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.395  Error: > #4  0x76c03300 in start_thread (arg=0x722ff200    ) at pthread_create.c:477
2021-11-27 17:14:15.395  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.395  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.395  Error: >
2021-11-27 17:14:15.395  Error: > Thread 7 (Thread 0x72c45200 (LWP 3006) "WebSer    ver_8080"):
2021-11-27 17:14:15.395  Error: > #0  0x76ac763c in epoll_wait (epfd=10, events=    0x72c44328, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.    c:30
2021-11-27 17:14:15.395  Error: > #1  0x003c53b4 in boost::asio::detail::epoll_r    eactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_o    peration>&) ()
2021-11-27 17:14:15.395  Error: > #2  0x003c73ac in boost::asio::detail::schedul    er::run(boost::system::error_code&) ()
2021-11-27 17:14:15.395  Error: > #3  0x006ed098 in http::server::server_base::r    un() ()
2021-11-27 17:14:15.396  Error: > #4  0x002d2664 in std::thread::_State_impl<std    ::thread::_Invoker<std::tuple<http::server::CWebServer::StartServer(http::server    ::server_settings&, std::__cxx11::basic_string<char, std::char_traits<char>, std    ::allocator<char> > const&, bool)::{lambda()#278}> > >::_M_run() ()
2021-11-27 17:14:15.396  Error: > #5  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.396  Error: > #6  0x76c03300 in start_thread (arg=0x72c45200    ) at pthread_create.c:477
2021-11-27 17:14:15.396  Error: > #7  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.396  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.396  Error: >
2021-11-27 17:14:15.396  Error: > Thread 6 (Thread 0x73446200 (LWP 3005) "Webem_    ssncleane"):
2021-11-27 17:14:15.396  Error: > #0  0x76ac763c in epoll_wait (epfd=14, events=    0x73445358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.    c:30
2021-11-27 17:14:15.396  Error: > #1  0x003c53b4 in boost::asio::detail::epoll_r    eactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_o    peration>&) ()
2021-11-27 17:14:15.396  Error: > #2  0x003c73ac in boost::asio::detail::schedul    er::run(boost::system::error_code&) ()
2021-11-27 17:14:15.396  Error: > #3  0x006bd5e0 in std::thread::_State_impl<std    ::thread::_Invoker<std::tuple<http::server::cWebem::cWebem(http::server::server_    settings const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::a    llocator<char> > const&)::{lambda()#2}> > >::_M_run() ()
2021-11-27 17:14:15.396  Error: > #4  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.397  Error: > #5  0x76c03300 in start_thread (arg=0x73446200    ) at pthread_create.c:477
2021-11-27 17:14:15.397  Error: > #6  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.397  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.397  Error: >
2021-11-27 17:14:15.397  Error: > Thread 5 (Thread 0x73c47200 (LWP 3004) "Influx    Push"):
2021-11-27 17:14:15.397  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.397  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.397  Error: > #2  0x00384634 in CInfluxPush::Do_Work() ()
2021-11-27 17:14:15.397  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.397  Error: > #4  0x76c03300 in start_thread (arg=0x73c47200    ) at pthread_create.c:477
2021-11-27 17:14:15.397  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.397  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.397  Error: >
2021-11-27 17:14:15.397  Error: > Thread 4 (Thread 0x74a82200 (LWP 3003) "Plugin    Mgr"):
2021-11-27 17:14:15.398  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.398  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.398  Error: > #2  0x0064d114 in Plugins::CPluginSystem::Do_W    ork() ()
2021-11-27 17:14:15.398  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.398  Error: > #4  0x76c03300 in start_thread (arg=0x74a82200    ) at pthread_create.c:477
2021-11-27 17:14:15.398  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.398  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.398  Error: >
2021-11-27 17:14:15.398  Error: > Thread 3 (Thread 0x75283200 (LWP 3002) "SQLHel    per"):
2021-11-27 17:14:15.398  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/a    rm/syscall.S:37
2021-11-27 17:14:15.398  Error: > #1  0x0097f014 in std::__atomic_futex_unsigned    _base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::durat    ion<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::rat    io<1ll, 1000000000ll> >) ()
2021-11-27 17:14:15.398  Error: > #2  0x002a31ac in CSQLHelper::Do_Work() ()
2021-11-27 17:14:15.399  Error: > #3  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.399  Error: > #4  0x76c03300 in start_thread (arg=0x75283200    ) at pthread_create.c:477
2021-11-27 17:14:15.399  Error: > #5  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.399  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.399  Error: >
2021-11-27 17:14:15.399  Error: > Thread 2 (Thread 0x75a84200 (LWP 3001) "Watchd    og"):
2021-11-27 17:14:15.399  Error: > #0  0x76a87f8c in __GI___clock_nanosleep_time6    4 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x75a83b70, req@entry=0x7    5a83b68, rem=0x75a83b80, rem@entry=0x75a83b78) at ../sysdeps/unix/sysv/linux/clo    ck_nanosleep.c:52
2021-11-27 17:14:15.399  Error: > #1  0x76a88080 in __GI___clock_nanosleep (cloc    k_id=clock_id@entry=0, flags=flags@entry=0, req=<optimized out>, rem=0x75a83bb0)     at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:92
2021-11-27 17:14:15.399  Error: > #2  0x76a8e830 in __GI___nanosleep (requested_    time=<optimized out>, remaining=<optimized out>) at nanosleep.c:27
2021-11-27 17:14:15.399  Error: > #3  0x0021f744 in sleep_milliseconds(long) ()
2021-11-27 17:14:15.399  Error: > #4  0x0028b880 in Do_Watchdog_Work() ()
2021-11-27 17:14:15.399  Error: > #5  0x009a15a4 in execute_native_thread_routin    e ()
2021-11-27 17:14:15.400  Error: > #6  0x76c03300 in start_thread (arg=0x75a84200    ) at pthread_create.c:477
2021-11-27 17:14:15.400  Error: > #7  0x76ac7208 in ?? () at ../sysdeps/unix/sys    v/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2021-11-27 17:14:15.400  Error: > Backtrace stopped: previous frame identical to     this frame (corrupt stack?)
2021-11-27 17:14:15.400  Error: >
2021-11-27 17:14:15.400  Error: > Thread 1 (Thread 0x76fdc040 (LWP 3000) "domoti    cz"):
2021-11-27 17:14:15.400  Error: > #0  0x76a87f8c in __GI___clock_nanosleep_time6    4 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7e970218, req@entry=0x7    e970210, rem=0x7e970228, rem@entry=0x7e970220) at ../sysdeps/unix/sysv/linux/clo    ck_nanosleep.c:52
2021-11-27 17:14:15.400  Error: > #1  0x76a88080 in __GI___clock_nanosleep (cloc    k_id=clock_id@entry=0, flags=flags@entry=0, req=<optimized out>, rem=0x7e970258)     at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:92
2021-11-27 17:14:15.400  Error: > #2  0x76a8e830 in __GI___nanosleep (requested_    time=<optimized out>, remaining=<optimized out>) at nanosleep.c:27
2021-11-27 17:14:15.400  Error: > #3  0x0021f6b0 in sleep_seconds(long) ()
2021-11-27 17:14:15.400  Error: > #4  0x001af338 in main ()
2021-11-27 17:14:15.400  Error: >
2021-11-27 17:14:15.400  Error: > Main thread:
2021-11-27 17:14:15.400  Error: > #0  0x76a87f8c in __GI___clock_nanosleep_time6    4 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7e970218, req@entry=0x7    e970210, rem=0x7e970228, rem@entry=0x7e970220) at ../sysdeps/unix/sysv/linux/clo    ck_nanosleep.c:52
2021-11-27 17:14:15.401  Error: > #1  0x76a88080 in __GI___clock_nanosleep (cloc    k_id=clock_id@entry=0, flags=flags@entry=0, req=<optimized out>, rem=0x7e970258)     at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:92
2021-11-27 17:14:15.401  Error: > #2  0x76a8e830 in __GI___nanosleep (requested_    time=<optimized out>, remaining=<optimized out>) at nanosleep.c:27
2021-11-27 17:14:15.401  Error: > #3  0x0021f6b0 in sleep_seconds(long) ()
2021-11-27 17:14:15.401  Error: > #4  0x001af338 in main ()
2021-11-27 17:14:15.401  Error: > [Inferior 1 (process 3000) detached]
Segmentation fault

Thanks the team for the support
User avatar
waltervl
Posts: 5714
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz webserver crash after adding SmartVirtualThermostat hardware on stable Release 2021.1

Post by waltervl »

If your Raspbian is now using bullseye instead of buster this is a known issue viewtopic.php?f=6&t=37376
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jeremushka
Posts: 3
Joined: Saturday 27 November 2021 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz webserver crash after adding SmartVirtualThermostat hardware on stable Release 2021.1

Post by jeremushka »

Thank you to mention the other thread. It seems it is not an issue linked to a specific plugin.

By the way, i have solved my issue by using python 3.7.3 with the latest Domoticz stable release.

I have tried the following configuration and i will indicate below the results for my case:

#####TEST CONFIG 1 ########## (Fresh Install)
Raspberry PI OS (32-bit)
Release: Bullseye
Domoticz: Version: 2021.1 (stable version) Build: 13191
python 3.9.2.
RESULT: FAILED

#####TEST CONFIG 2 ########## (Fresh Install)
Raspberry PI OS (32-bit)
Release: Bullseye
Domoticz: Version: 2021.1 (stable version) Build: 13191
python 3.7 I have removed uninstalled python 3.9
RESULT: FAILED => Very strange DOmoticz continues to detect version python 3.9 even after clearing cache of the browser.

#####TEST CONFIG 3 ########## (Fresh Install)
Raspberry PI OS (32-bit)
Release: Buster (Debian version 10.11)
Python release with Buster: 2.7.16
Domoticz: Version: 2021.1 (stable version) Build: 13191
Domoticz does not detect the version python 2.7 which is installed with RPI OS.
Install python via de command:

Code: Select all

sudo apt install libpython3.5 python3-dev
sudo systemctl restart domoticz.service
After the installation i can see that the version 3.7.3 has been installed and it is recognized by Domoticz.
I have no error code at all.
RESULT: I have installed successfully the plugin SMartVirtualThermostat.

I think there is compatible issue in between python lib and the different release of PI OS. Not linked to domoticz. Seems it has some conflicts to downgrade python 3.7 on Bullseye OS.

I will also put this comment on the other thread for the people who are facing this issues. I will share what is working for my config at least.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest