• 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
[Solved] connection to main pilight daemon lost
#11
This latest issue is with pilight-daemon version v7.0-230-g5199090

The URL is http://raspberrypi-desiree:5001/control?device=boekenkast&state=on
 
Reply
#12
Can you upgrade to the latest version 231?
 
Reply
#13
Done. Till now running fine. Will keep you posted. Thanks
 
Reply
#14
Code:
pilight-daemon: malloc.c:3760: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed.

Thread 1 "pilight-daemon" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: Bestand of map bestaat niet.
(gdb) backtrace
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x763e3824 in __GI_abort () at abort.c:89
#2  0x76423354 in __malloc_assert (assertion=<optimized out>, file=<optimized out>,
    line=line@entry=3760, function=<optimized out>) at malloc.c:301
#3  0x764267a8 in _int_malloc (av=0x764f3078 <lock>, av@entry=0x764f2794 <main_arena>,
    bytes=bytes@entry=40) at malloc.c:3760
#4  0x76429058 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3274
#5  0x767cab30 in mknode (tag=4) at /home/pilight/source/daemon-dev/libs/pilight/core/json.c:491
#6  0x767cac08 in mkstring (s=0x41760 "control")
    at /home/pilight/source/daemon-dev/libs/pilight/core/json.c:512
#7  0x767cac4c in json_mkstring (s=0x76867888 "control")
    at /home/pilight/source/daemon-dev/libs/pilight/core/json.c:519
#8  0x767dd05c in parse_rest (req=0x6f3e8)
    at /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c:575
#9  0x767ddda4 in request_handler (req=0x6f3e8)
    at /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c:753
#10 0x767e14d4 in client_read_cb (req=0x6f3e8, nread=0x6f85c, buf=0x3a2b8 "GET")
    at /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c:1550
#11 0x767c0fc4 in uv_custom_poll_cb (req=0x6f3e8, status=0, events=1)
    at /home/pilight/source/daemon-dev/libs/pilight/core/eventpool.c:702
#12 0x7679ed2c in uv__poll_io (loop=0x76fbe648 <default_loop_struct>, w=0x6f41c, events=1)
    at /home/pilight/source/daemon-dev/libs/libuv/unix/poll.c:64
#13 0x76798500 in uv__io_poll (loop=0x76fbe648 <default_loop_struct>, timeout=204)
    at /home/pilight/source/daemon-dev/libs/libuv/unix/linux-core.c:400
#14 0x7678e444 in uv_run (loop=0x76fbe648 <default_loop_struct>, mode=UV_RUN_DEFAULT)
    at /home/pilight/source/daemon-dev/libs/libuv/unix/core.c:362
#15 0x00013e2c in main (argc=2, argv=0x7efff7c4) at /home/pilight/source/daemon-dev/daemon.c:3423
(gdb) frame 14
#14 0x7678e444 in uv_run (loop=0x76fbe648 <default_loop_struct>, mode=UV_RUN_DEFAULT)
    at /home/pilight/source/daemon-dev/libs/libuv/unix/core.c:362
362     /home/pilight/source/daemon-dev/libs/libuv/unix/core.c: Bestand of map bestaat niet.
(gdb) frame 13
#13 0x76798500 in uv__io_poll (loop=0x76fbe648 <default_loop_struct>, timeout=204)
    at /home/pilight/source/daemon-dev/libs/libuv/unix/linux-core.c:400
400     /home/pilight/source/daemon-dev/libs/libuv/unix/linux-core.c: Bestand of map bestaat niet.(gdb) frame 12
#12 0x7679ed2c in uv__poll_io (loop=0x76fbe648 <default_loop_struct>, w=0x6f41c, events=1)
    at /home/pilight/source/daemon-dev/libs/libuv/unix/poll.c:64
64      /home/pilight/source/daemon-dev/libs/libuv/unix/poll.c: Bestand of map bestaat niet.
(gdb) frame 11
#11 0x767c0fc4 in uv_custom_poll_cb (req=0x6f3e8, status=0, events=1)
    at /home/pilight/source/daemon-dev/libs/pilight/core/eventpool.c:702
702     /home/pilight/source/daemon-dev/libs/pilight/core/eventpool.c: Bestand of map bestaat niet.
(gdb) frame 10
#10 0x767e14d4 in client_read_cb (req=0x6f3e8, nread=0x6f85c, buf=0x3a2b8 "GET")
    at /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c:1550
1550    /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c: Bestand of map bestaat niet.
(gdb) frame 9
#9  0x767ddda4 in request_handler (req=0x6f3e8)
    at /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c:753
753     in /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c
(gdb) frame 8
#8  0x767dd05c in parse_rest (req=0x6f3e8)
    at /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c:575
575     in /home/pilight/source/daemon-dev/libs/pilight/core/webserver.c
(gdb) frame 7
#7  0x767cac4c in json_mkstring (s=0x76867888 "control")
    at /home/pilight/source/daemon-dev/libs/pilight/core/json.c:519
519     /home/pilight/source/daemon-dev/libs/pilight/core/json.c: Bestand of map bestaat niet.
(gdb) frame 6
#6  0x767cac08 in mkstring (s=0x41760 "control")
    at /home/pilight/source/daemon-dev/libs/pilight/core/json.c:512
512     in /home/pilight/source/daemon-dev/libs/pilight/core/json.c
(gdb) frame 5
#5  0x767cab30 in mknode (tag=4) at /home/pilight/source/daemon-dev/libs/pilight/core/json.c:491
491     in /home/pilight/source/daemon-dev/libs/pilight/core/json.c
(gdb) frame 4
#4  0x76429058 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3274
3274    malloc.c: Bestand of map bestaat niet.
(gdb) frame 3
#3  0x764267a8 in _int_malloc (av=0x764f3078 <lock>, av@entry=0x764f2794 <main_arena>,
    bytes=bytes@entry=40) at malloc.c:3760
3760    in malloc.c
(gdb) frame 2
#2  0x76423354 in __malloc_assert (assertion=<optimized out>, file=<optimized out>,
    line=line@entry=3760, function=<optimized out>) at malloc.c:301
301     in malloc.c
(gdb) frame 1
#1  0x763e3824 in __GI_abort () at abort.c:89
89      abort.c: Bestand of map bestaat niet.
(gdb) frame 0
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: Bestand of map bestaat niet.
 
Reply
#15
Again, what's the URL that breaks it?
 
Reply
#16
@curlymo
(09-08-2017, 09:19 AM)TopdRob Wrote: The URL is http://raspberrypi-desiree:5001/control?device=boekenkast&state=on

Can't reproduce the issue on latest development branch though.
 
Reply
#17
Maybe this was a different URL. Can't reproduce either.
 
Reply
#18
This happened via http://raspberrypi-desiree:5001/values
 
Reply
#19
No issue here with that url either. Can you post your config?
 
Reply
#20
Code:
{
    "devices": {
        "koplamp": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 8945842,
                "unit": 2
            }],
            "state": "off"
        },
        "boekenkast": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 100
            }],
            "state": "off"
        },
        "kleurenbol": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 200
            }],
            "state": "off"
        },
        "wittelamp": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 8945842,
                "unit": 1
            }],
            "state": "off"
        },
        "groenelamp": {
            "protocol": [ "kaku_dimmer", "kaku_switch" ],
            "id": [{
                "id": 8945842,
                "unit": 3
            }],
            "state": "off",
            "dimlevel": 10
        },
        "staandelamp": {
            "protocol": [ "kaku_dimmer", "kaku_switch" ],
            "id": [{
                "id": 8945842,
                "unit": 0
            }],
            "state": "off",
            "dimlevel": 11
        },
        "spotjes": {
            "protocol": [ "kaku_dimmer" ],
            "id": [{
                "id": 8945842,
                "unit": 4
            }],
            "state": "off",
            "dimlevel": 15
        },
        "kooldraadjes": {
            "protocol": [ "kaku_dimmer" ],
            "id": [{
                "id": 8945842,
                "unit": 5
            }],
            "state": "off",
            "dimlevel": 14
        },
        "groep": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 22505146,
                "unit": 0
            }],
            "state": "off"
        },
        "zonsondergang": {
            "protocol": [ "sunriseset" ],
            "id": [{
                "longitude": ####,
                "latitude": ####
            }],
            "sunrise": 7.57,
            "sunset": 19.01,
            "sun": "rise"
        },
        "datum": {
            "protocol": [ "datetime" ],
            "id": [{
                "longitude": ####,
                "latitude": ####
            }],
            "year": 2016,
            "month": 10,
            "day": 9,
            "hour": 15,
            "minute": 15,
            "second": 22,
            "weekday": 1,
            "dst": 1
        },
        "weatherunderground": {
            "protocol": [ "wunderground" ],
            "id": [{
                "api": "####",
                "location": "alblasserdam",
                "country": "nl"
            }],
            "humidity": 96,
            "temperature": 5.50,
            "sunrise": 7.56,
            "sunset": 18.59,
            "sun": "rise",
            "update": 1
        },
        "printer": {
            "protocol": [ "kaku_switch_old" ],
            "id": [{
                "id": 1,
                "unit": 0
            }],
            "state": "off"
        }
    },
    "rules": {},
    "gui": {
        "groep": {
            "name": "Alles aan/uit",
            "group": [ "Woonkamer" ],
            "media": [ "all" ]
        },
        "koplamp": {
            "name": "Koplamp",
            "group": [ "Woonkamer" ],
            "media": [ "all" ]
        },
        "staandelamp": {
            "name": "Staande lamp",
            "group": [ "Woonkamer" ],
            "media": [ "all" ]
        },
        "boekenkast": {
            "name": "Boekenkast",
            "group": [ "Woonkamer" ],
            "media": [ "all" ]
        },
        "kleurenbol": {
            "name": "Kleurenbol",
            "group": [ "Woonkamer" ],
            "media": [ "all" ]
        },
        "kooldraadjes": {
            "name": "Kooldraadjes",
            "group": [ "Woonkamer" ],
            "media": [ "all" ]
        },
        "spotjes": {
            "name": "Spotjes",
            "group": [ "Woonkamer" ],
            "media": [ "all" ]
        },
        "zonsondergang": {
            "name": "Zon",
            "group": [ "Buiten" ],
            "media": [ "all" ]
        },
        "weatherunderground": {
            "name": "Weer",
            "group": [ "Buiten" ],
            "media": [ "all" ]
        },
        "printer": {
            "name": "Printer",
            "group": [ "Blauwe kamer" ],
            "media": [ "all" ],
            "confirm": 1
        },
        "datum": {
            "name": "Datum & Tijd",
            "group": [ "Testhoek" ],
            "media": [ "all" ]
        }
    },
    "settings": {
        "log-level": 6,
        "port": 5000,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "webserver-enable": 1,
        "webserver-root": "/usr/local/pilight/webgui",
        "webserver-http-port": 5001,
        "webserver-cache": 1,
        "gpio-platform": "raspberrypi2",
        "ntp-servers": [ "0.nl.pool.ntp.org", "1.nl.pool.ntp.org" ]
    },
    "hardware": {
        "433gpio": {
            "sender": 0,
            "receiver": 1
        }
    },
    "registry": {
        "pilight": {
            "firmware": {
                "version": 3,
                "lpf": 80,
                "hpf": 16000
            },
            "version": {
                "current": "7.0"
            }
        },
        "webgui": {
            "tabs": 1
        }
    }
}
removed API key and Latitude/Longitude values.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Triggering generic_switch leads to segfault Ulrich.Arnold 19 2,294 10-23-2019, 09:03 AM
Last Post: Ulrich.Arnold
  Protocol options defined as JSON_ARRAY getting lost Niek 6 2,195 01-01-2019, 11:03 AM
Last Post: curlymo
  ][solved]Segfault when retrieving big chunked http message Niek 21 6,522 11-29-2018, 03:17 PM
Last Post: curlymo
  pilight-control not able to connect with port and server setting apartmedia 10 4,593 10-22-2018, 08:00 AM
Last Post: apartmedia
  [Solved] config.json not updated Niek 6 1,754 12-31-2017, 03:19 PM
Last Post: curlymo
  [Solved] callback not executing when dns lookup fails Niek 1 869 10-08-2017, 11:44 AM
Last Post: curlymo
  [Solved] Rules switching state based on another device state not working apartmedia 6 2,733 09-27-2017, 01:41 PM
Last Post: apartmedia
  homebridge and pilight with scenes ebini 2 1,468 09-16-2017, 10:37 PM
Last Post: apartmedia
  [Solved] dimmer protocol kaku_dimmer does not react on dimmervalue apartmedia 25 4,799 09-16-2017, 10:29 PM
Last Post: apartmedia
  [Solved] Webgui not working in IE Ulrich.Arnold 7 2,085 09-12-2017, 05:22 PM
Last Post: Ulrich.Arnold

Forum Jump:


Browsing: 1 Guest(s)