• 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
[Already fixed in 8.1.2] Loss of webserver-connection
#21
(04-24-2019, 06:33 PM)curlymo Wrote: Can you guide me to the error lines?

Except for log13.log, which ran for 10 min without error and was terminated by me, all other runs quit after the last line 
Code:
pilight-daemon: /home/pilight/source/daemon-dev/libs/libuv/threadpool.c:312: uv__queue_done: Assertion `(((const QUEUE *) (&(req->loop)->active_reqs) == (const QUEUE *) (*(QUEUE **) &((*(&(req->loop)->active_reqs))[0]))) == 0)' failed.

Just a thought: As you can't reproduce it, could it be some external signal from the receiver which causes the failure? I see some 
Code:
[Apr 14 13:41:44:803752] pilight-daemon: DEBUG: **** RAW CODE ****
[Apr 14 13:41:44:803846] pilight-daemon: DEBUG: **** RAW CODE ****
in the logs
Uli
 
Reply
#22
I have a few ideas that could be causing this, but i have to think some more about the solution.
 
Reply
#23
Currently testing my fixes myself.
 
Reply
#24
There are still some small issues left, but i'm wondering if you are still encountering the same issue?
 
Reply
#25
(05-09-2019, 08:10 PM)curlymo Wrote: There are still some small issues left, but i'm wondering if you are still encountering the same issue?

Which version shall i test ?

Uli
 
Reply
#26
(05-09-2019, 08:29 PM)Ulrich.Arnold Wrote:
(05-09-2019, 08:10 PM)curlymo Wrote: There are still some small issues left, but i'm wondering if you are still encountering the same issue?

Which version shall i test ?

Uli

Hi curlymo

Today I installed nightly 8.1.4-49. Looks good until now. Running for more than 2 hours,  before it did quit after some minutes.
Out of curiosity: what was special about my config and what did you change?

Thanks Uli
 
Reply
#27
You can check github for all changed made in the code. That's the most time efficient answer.
 
Reply
#28
(05-12-2019, 12:59 PM)Ulrich.Arnold Wrote: Hi curlymo

Today I installed nightly 8.1.4-49. Looks good until now. Running for more than 2 hours,  before it did quit after some minutes.
Out of curiosity: what was special about my config and what did you change?

Thanks Uli

Hi curlymo!

I'm sorry to report, that the issue is not yet solved. The time until crashing is a lot longer, but I still get the crash after some hours in the full config.

This is the debug-output
Code:
 Start and end in log21.txt

pilight.log ends with:
Code:
[May 12 18:50:45:888334] pilight-daemon: INFO: executed rule: SetArbeitstagAus
[May 12 18:50:45:905402] pilight-daemon: INFO: executed rule: SetLabelEGArbeit2
[May 12 18:50:45:907166] pilight-daemon: INFO: executed rule: SetLabelEG2
[May 12 18:50:45:908594] pilight-daemon: INFO: executed rule: SetLabelEG4
[May 12 18:50:45:910236] pilight-daemon: INFO: executed rule: SetLabelOG1
[May 12 18:50:45:911579] pilight-daemon: INFO: executed rule: SetLabelRollos1
[May 12 18:50:45:916262] pilight-daemon: ERROR: attempt to index a number value
[May 12 18:50:45:916262] pilight-daemon: ERROR: attempt to index a number value

This is a second case:
Code:
Start and end in log22.txt

and the pilight.log end in:
Code:
ERROR: attempt to index a number value

Uli


Attached Files
.zip   Log2x.zip (Size: 9.33 KB / Downloads: 1)
 
Reply
#29
It seems that this is a new error unknown before because it crashed too soon. Can you open a new one for this one?
 
Reply
#30
I believe i FINALLY fixed it.

For those interested in the background.

The lua c metatables i built where not concurrent, therefor when multiple threads (lua states) where writing to the same metatable index, it errored. Making data-structures properly thread safe is pretty difficult (hence my long development time). I tried using existing concurrent hashtable implementations, but none of them worked the way i wanted, to i decided to fix my own implementation. Which i believe i did.

I'm currently running this code myself first, i will push this weekend.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 39 Yesterday, 10:25 PM
Last Post: DominikB1993
  WebSocket connection failed: One or more reserved bits gregnau 8 2,162 02-16-2018, 10:02 PM
Last Post: curlymo
Thumbs Up Newbie problems, usbnano connection and rsl366 pukington 1 503 02-14-2018, 07:36 PM
Last Post: pukington
  Windows HTTP connection andbehtls 1 1,087 01-14-2018, 02:24 PM
Last Post: bnk72
  Webserver (REST API) - POST TopdRob 7 1,752 10-25-2017, 11:17 PM
Last Post: curlymo
  Illumina, cannot obtain connection hansrijn2 5 1,342 05-31-2017, 04:29 PM
Last Post: hansrijn2
  webserver-authentication problem with some browsers MorfelPi 4 1,905 09-21-2016, 06:59 PM
Last Post: Emiks5
  [solved] another pilight ssdp missed connection on RPI segalion 2 3,024 08-24-2016, 10:51 PM
Last Post: Hauke
  [Solved] pilight 7.0 LAN interact connection - 2 Raspberrys mvasi90 4 1,965 07-10-2016, 03:50 PM
Last Post: mvasi90
  pilight-receive: NOTICE: no pilight ssdp connection found bumtheduke 10 12,553 03-29-2016, 10:58 AM
Last Post: pilino1234

Forum Jump:


Browsing: 1 Guest(s)