• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Switching between tab and list-view stops gui
#1
Hi!

I've posted this before in an other thread. To keep the problems separate here once again:

Version is 7.0-233

Switching between modes by double-tap leads to the following error

Code:
[Sep 07 09:26:12:997379] pilight-daemon: ERROR: could not parse response to: {"action":"registry","type":"set","key":"webgui.tabs","value":0}

After this message the gui stops responding and the service must be restarted

Uli
 
Reply
#2
Can reproduce, will investigate Smile



just putting this here for now so I don't lose it:

Code:
[Sep 13 13:35:25:984614] pilight-daemon: DEBUG: socket recv: {"action":"registry","type":"set","key":"webgui.tabs","value":0}
[Sep 13 13:35:25:984655] pilight-daemon: ERROR: could not parse response to: {"action":"registry","type":"set","key":"webgui.tabs","value":0}
[Sep 13 13:35:25:984665] pilight-daemon: DEBUG: client disconnected, ip 127.0.0.1, port 56928
[Sep 13 13:35:25:997260] pilight-daemon: DEBUG: new client, ip: 127.0.0.1, port: 56930
[Sep 13 13:35:25:997275] pilight-daemon: DEBUG: client fd: 19
pilight-daemon: /home/martin/git/pilight/pilight/libs/libuv/unix/core.c:888: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.

Thread 1 "pilight-daemon" received signal SIGABRT, Aborted.
0x00007ffff57858d7 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: zypper install libdbus-1-3-debuginfo-1.8.22-5.1.x86_64 liblua5_2-debuginfo-5.2.4-6.1.x86_64 libnl3-200-debuginfo-3.2.23-6.3.x86_64 libpcap1-debuginfo-1.8.1-8.1.x86_64 libunwind-debuginfo-1.1-14.4.x86_64
(gdb) bt full
#0  0x00007ffff57858d7 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007ffff5786caa in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007ffff577e866 in __assert_fail_base () from /lib64/libc.so.6
No symbol table info available.
#3  0x00007ffff577e912 in __assert_fail () from /lib64/libc.so.6
No symbol table info available.
#4  0x00007ffff73c79bf in uv__io_stop (loop=0x7ffff7dd5fe0 <default_loop_struct>, w=0x637088, events=8199) at /home/martin/git/pilight/pilight/libs/libuv/unix/core.c:888
        __PRETTY_FUNCTION__ = "uv__io_stop"
#5  0x00007ffff73d0fc2 in uv__poll_stop (handle=0x637020) at /home/martin/git/pilight/pilight/libs/libuv/unix/poll.c:100
No locals.
#6  0x00007ffff73d10cb in uv_poll_start (handle=0x637020, pevents=1, poll_cb=0x7ffff73e2dad <uv_custom_poll_cb>) at /home/martin/git/pilight/pilight/libs/libuv/unix/poll.c:121
        events = 0
        __PRETTY_FUNCTION__ = "uv_poll_start"
#7  0x00007ffff73e2b9d in eventpool_update_poll (req=0x637020) at /home/martin/git/pilight/pilight/libs/pilight/core/eventpool.c:424
        custom_poll_data = 0x6370d0
        send_io = 0x637328
        action = 1
        r = 0
#8  0x00007ffff73e3b2b in uv_custom_read (req=0x637020) at /home/martin/git/pilight/pilight/libs/pilight/core/eventpool.c:839
        custom_poll_data = 0x6370d0
#9  0x00007ffff73f0d9c in server_read_cb (req=0x634770, nread=0x7ffff76a4b00 <one>, buf=0x0) at /home/martin/git/pilight/pilight/libs/pilight/core/webserver.c:1672
        pth_cur_id = 140737353852736
        __PRETTY_FUNCTION__ = "server_read_cb"
        servaddr = {sin_family = 2, sin_port = 25310, sin_addr = {s_addr = 16777343}, sin_zero = "\000\000\000\000\000\000\000"}
        server_poll_data = 0x634820
        custom_poll_data = 0x6370d0
        socklen = 16
        buffer = "127.0.0.1", '\000' <repeats 1015 times>
        client = 19
        r = 0
        fd = 11
        data = 0x611140
        arg = 2
        poll_req = 0x637020
        c = 0x637370
#10 0x00007ffff73e376a in uv_custom_poll_cb (req=0x634770, status=0, events=1) at /home/martin/git/pilight/pilight/libs/pilight/core/eventpool.c:719
        pth_cur_id = 140737353852736
        __PRETTY_FUNCTION__ = "uv_custom_poll_cb"
        custom_poll_data = 0x634820
        send_io = 0x634a78
        buffer = '\000' <repeats 1024 times>
        fd = 11
        fromlen = 0
        r = 0
        n = -1
#11 0x00007ffff73d0e50 in uv__poll_io (loop=0x7ffff7dd5fe0 <default_loop_struct>, w=0x6347d8, events=1) at /home/martin/git/pilight/pilight/libs/libuv/unix/poll.c:64
        handle = 0x634770
        pevents = 1
#12 0x00007ffff73c451d in uv__io_poll (loop=0x7ffff7dd5fe0 <default_loop_struct>, timeout=786) at /home/martin/git/pilight/pilight/libs/libuv/unix/linux-core.c:400
        max_safe_timeout = 1789569
        no_epoll_pwait = 0
        no_epoll_wait = 0
        events = {{events = 1, data = 11}, {events = 1, data = 19}, {events = 0, data = 0} <repeats 353 times>, {events = 0, data = 140737315268128}, {events = 4121880096, data = 17860797748693991423}, {events = 32767, data = 3576}, {events = 4160485792,
            data = 55834607615}, {events = 0, data = 18}, {events = 4160475656, data = 17860801244797370367}, {events = 32767, data = 1129}, {events = 4118159104, data = 17869150412112691199}, {events = 32767, data = 140737488341880}, {events = 4294953844,
            data = 17860801244797370367}, {events = 32767, data = 16}, {events = 4126493640, data = 18446687242702323711}, {events = 32767, data = 140737311547136}, {events = 4118105440, data = 17869168244816904191}, {events = 32767, data = 10}, {events = 18,
            data = 17869106878324146176}, {events = 32767, data = 140737351929882}, {events = 222, data = 17723149149278339071}, {events = 32767, data = 140737353877976}, {events = 4294953976, data = 18446686847565332479}, {events = 32767, data = 140737351929068}, {
            events = 44, data = 17869150412112691199}, {events = 32767, data = 13}, {events = 4160489944, data = 42949705727}, {events = 0, data = 140737351929068}, {events = 10, data = 17869168244816871424}, {events = 32767, data = 10}, {events = 18,
            data = 17869106878324146176}, {events = 32767, data = 140737351929882}, {events = 197, data = 17723149149278306304}, {events = 32767, data = 140737353877976}, {events = 4119015897, data = 17703340210353373183}, {events = 32767, data = 2064}, {
            events = 6495664, data = 17689269936146350080}, {events = 32767, data = 5}, {events = 4118584963, data = 32767}, {events = 0, data = 4095}, {events = 4294963200, data = 580546434433023}, {events = 0, data = 6496256}, {events = 135168,
            data = 27829876249591808}, {events = 0, data = 140737315268216}, {events = 4121880096, data = 9002251485183}, {events = 0, data = 2049}, {events = 9999, data = 8864812498944}, {events = 0, data = 140737311976209}, {events = 129,
            data = 17703340588310462464}, {events = 32767, data = 32}, {events = 4158540819, data = 47244673023}, {events = 0, data = 140737353877976}, {events = 10, data = 77309411328}, {events = 0, data = 140737353863688}, {events = 4158541036, data = 528281010175},
          {events = 110, data = 140737353873824}, {events = 13, data = 77309411328}, {events = 0, data = 140737353863688}, {events = 4158541850, data = 2439541456895}, {events = 32767, data = 140737311547136}, {events = 4160485792, data = 18446688857610027007}, {
            events = 32767, data = 140737488342468}, {events = 0, data = 167503724544}, {events = 32767, data = 140737341163592}, {events = 4294954656, data = 17687358671404695551}, {events = 32767, data = 140737311493472}, {events = 4126485516,
            data = 17814411225723830272}, {events = 32767, data = 140737488342672}, {events = 4294954436, data = 18446688857610027007}, {events = 32767, data = 568}, {events = 4118098764, data = 2059160596200325119}, {events = 0, data = 0}, {events = 4160711488,
            data = 0}, {events = 0, data = 140737354098664}, {events = 4294954840, data = 18446690403798253567}, {events = 32767, data = 140737353864096}, {events = 4160711488, data = 4295000063}, {events = 0, data = 140737354098664}, {events = 4158544652,
            data = 32767}, {events = 0, data = 140737353864096}, {events = 1, data = 0}, {events = 0, data = 1}, {events = 4160710632, data = 18446689579164532735}, {events = 32767, data = 140737488342624}, {events = 3015774339, data = 17814583715905404928}, {
            events = 32767, data = 0}, {events = 4160711488, data = 18446689785322962943}, {events = 32767, data = 140737488342672}, {events = 479435687, data = 17814560381348085760}, {events = 32767, data = 4294967295}, {events = 4118594592,
            data = 17687186735273902079}, {events = 32767, data = 140737353873824}, {events = 4294954720, data = 17817822327405051903}, {events = 32767, data = 32}, {events = 4, data = 0}, {events = 0, data = 0}, {events = 0, data = 17723414049976221696}, {
            events = 32767, data = 0}, {events = 6497584, data = 17179869184}, {events = 0, data = 140737344325648}, {events = 0, data = 18446721533721182208}, {events = 32767, data = 0}, {events = 0, data = 21474836480}, {events = 32767, data = 140737351950535}, {
            events = 1, data = 0}, {events = 49, data = 0}, {events = 0, data = 390842023936}, {events = 110, data = 0}, {events = 0, data = 511101108224}, {events = 124, data = 6480416}, {events = 6478688, data = 17818478345004777472}, {events = 32767,
            data = 140733193388032}, {events = 64, data = 18094456699879424}, {events = 0, data = 140737488350080}, {events = 0, data = 0}, {events = 0, data = 140737311982624}, {events = 230, data = 3343757135153463296}, {events = 1852797802, data = 140737488347344},
          {events = 4212944, data = 18446721533721182208}, {events = 32767, data = 0}, {events = 0, data = 17816678049333116928}, {events = 32767, data = 2251821288521728}, {events = 4148643168, data = 563018672930815}, {events = 1505309716, data = 281474976715707}, {
            events = 2, data = 69699}, {events = 196618, data = 212305276023}, {events = 851976, data = 4503621102207976}, {events = 6, data = 4296081413}, {events = 262152, data = 7599858730927580}, {events = 0, data = 1966088}, {events = 2031624,
            data = 9007233614479364}, {events = 1, data = 4297129989}, {events = 393223, data = 29037}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 65546, data = 154917969320388}, {events = 131082,
            data = 281474976710655}, {events = 458848, data = 34250800831939563}, {events = 4251624373, data = 807202649}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {
            events = 1507516, data = 14435307}, {events = 7974636, data = 18260587636911505408}, {events = 4, data = 807202649}, {events = 0, data = 0} <repeats 12 times>, {events = 0, data = 7321338691715072}, {events = 131196, data = 65656}, {events = 0,
            data = 4294967296}, {events = 1, data = 4294967297}, {events = 1, data = 0}, {events = 1, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 1, data = 0}, {events = 0, data = 0}, {events = 0, data = 4294967306000}, {events = 0,
            data = 281509337104952}, {events = 2147483648, data = 281470682071060}, {events = 2289672, data = 4294967319868}, {events = 131236, data = 274877906944}, {events = 1500, data = 4294967297}, {events = 1, data = 12884901889}, {events = 4000,
            data = 4294968296}, {events = 604800, data = 12884988288}, {events = 600, data = 16}, {events = 0, data = 18446700917878161408}, {events = 32767, data = 140737488345264}, {events = 4148567094, data = 47244673023}, {events = 0, data = 0}, {
            events = 4118385844, data = 4294967328767}, {events = 1, data = 0}, {events = 1, data = 0}, {events = 1, data = 845679060582400}, {events = 36, data = 17179869184}, {events = 0, data = 324}, {events = 4294957360, data = 18446701330195054591}...}
        pe = 0x7fffffffb9e0
        e = {events = 1, data = 19}
        real_timeout = 786
        q = 0x634c28
        w = 0x6347d8
        sigset = {__val = {0 <repeats 16 times>}}
        sigmask = 0
        base = 50147341
        have_signals = 0
        nevents = 0
        count = 48
        nfds = 1
        fd = 11
        op = 0
        i = 0
        __PRETTY_FUNCTION__ = "uv__io_poll"
#13 0x00007ffff73c694c in uv_run (loop=0x7ffff7dd5fe0 <default_loop_struct>, mode=UV_RUN_DEFAULT) at /home/martin/git/pilight/pilight/libs/libuv/unix/core.c:362
        timeout = 786
        r = 1
        ran_pending = 0
#14 0x000000000040c6f2 in main (argc=4, argv=0x7fffffffeb88) at /home/martin/git/pilight/pilight/daemon.c:3423
        ret = 0
 
Reply
#3
@curlymo

This bug still exists in the latest development code, but I don't have time to track it down atm. If it's a simple fix that I missed, it would be good to have before the next release Smile

To reproduce in a webbrowser, open the pilight webgui and press Ctrl+Alt+Shift+t to switch to tabbed mode. The pilight-daemon will then crash, and the webgui will go down.
 
Reply
#4
Fixed
 
Reply
#5
I've just downloaded 7.0-252. I can confirm the problem is solved and the issue can be closed.

Thanks Uli
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Solved] Rules switching state based on another device state not working apartmedia 6 2,733 09-27-2017, 01:41 PM
Last Post: apartmedia

Forum Jump:


Browsing: 1 Guest(s)