Release v2.0.0-dev7 - possible Bug in Controller

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#21 Post by toffel969 » 04 May 2017, 23:48

Yes please! ;-)
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#22 Post by Shardan » 05 May 2017, 14:50

toffel969 wrote: 04 May 2017, 23:48 Yes please! ;-)
A 4096-memsized one? Or do you need another flashsize?

Regards
Shardan
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#23 Post by toffel969 » 05 May 2017, 16:18

Shardan wrote: 05 May 2017, 14:50
toffel969 wrote: 04 May 2017, 23:48 Yes please! ;-)
A 4096-memsized one? Or do you need another flashsize?

Regards
Shardan
Yes a 4096-mesized. Target node is a Wemos D1 mini pro with 2 D18B20 Temperature probes, 4 buttons, analog soil moisture probe and an SSR connected directly to GPIO as output actuator.

regards

Sebastian
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#24 Post by Shardan » 05 May 2017, 17:01

Here you go.
This is the version i used for bulk testing, it is running on nodeMCU and WeMos for around 2 days without issues.
It is compiled with the "normal" option, so no testing or development parts are compiled in.
firmware_normal4096.zip
(346.57 KiB) Downloaded 372 times
.
Anyone who wants to use it:
This is NOT an official release from the developers but one i compiled myself.
Don't expect support. Further the 2.0.0 is a work in progress so instability and crashing may occur.

Use at own risk!

Regards
Shardan
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#25 Post by toffel969 » 05 May 2017, 19:13

Shardan wrote: 05 May 2017, 17:01 Here you go.
This is the version i used for bulk testing, it is running on nodeMCU and WeMos for around 2 days without issues.
It is compiled with the "normal" option, so no testing or development parts are compiled in.

firmware_normal4096.zip

.
Anyone who wants to use it:
This is NOT an official release from the developers but one i compiled myself.
Don't expect support. Further the 2.0.0 is a work in progress so instability and crashing may occur.

Use at own risk!

Regards
Shardan
Thanks, its flashed. I had dev-dev8 installed on the node, did OTA (node is already "in the field"). It reset all my devices and settings, will try to replace the devices (what were the gpios that I used !?! lack of documentation
is a bi**ch , particularly when there is nobody to blame but yourself :D ) and connect it to domoticz later when my daughter is sleeping.

Regards
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#26 Post by Shardan » 05 May 2017, 19:21

You're welcome :)
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#27 Post by toffel969 » 05 May 2017, 20:42

Shardan wrote: 05 May 2017, 19:21 You're welcome :)
Correction to above post... I flashed the wrong node :cry: :D it was still running RC147, so no wonder I lost the devices and settings. However now I flashed the correct node, it didn't reset the settings. Now on the correct node I can also find my sensors :). Its reporting the data correctly to domoticz and seems to run stable. will let it run at least until tomorrow morning.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#28 Post by Shardan » 05 May 2017, 21:04

Thanks for testing.
Check the free RAM on the webside, it should not decrease over time.

Regards
Shardan
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#29 Post by toffel969 » 05 May 2017, 22:55

Shardan wrote: 05 May 2017, 21:04 Thanks for testing.
Check the free RAM on the webside, it should not decrease over time.

Regards
Shardan
After 2h30 operation
Free Mem: 22064 (11720)
so far stable and reporting values to domoticz. So it seems to be working.

If I feel adventurous I will try to flash dev8 back tomorrow morning. Gegenversuch

Regards
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#30 Post by Shardan » 05 May 2017, 23:51

Would be interesting indeed.

Regards
Shardan
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#31 Post by toffel969 » 06 May 2017, 12:31

Shardan wrote: 05 May 2017, 23:51 Would be interesting indeed.

Regards
Shardan
Update:
Uptime: 0 days 15 hours 57 minutes
Free Mem: 21408 (11720)

still going strong. I consider this working and will now try to flash dev-dev8 to see if "this unknown sniplet of code ;-)" (at least to me) fixes the problem with the controller/unresponsiveness or if it was somewhat already included in the binaries of version dev.8
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#32 Post by toffel969 » 06 May 2017, 13:32

I flashed the dev-dev8 version. It just continues to work and send values to Domoticz. Now running for 1h stable , web interface is responsive, Data is reported to Domoticz.

Free Mem: 21840 (28520)

With the previous bug, it would have stopped working quite some time ago. Now I am not sure if the problem arises when you setup the controller, because thus far, this is where it always started going wrong. Now i setup the controller in the "shardan"-version and just OTA the dev8.

I will continue to let it run on Dev8 for now
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#33 Post by Shardan » 06 May 2017, 15:00

Okay.

I analyzed the failing connection with help from psy0rz and we found the memory
rapidly decreasing when my FHEM controller is connected, a memory leak.
Psy0rz was able to reproduce the bug and fixed it, That's what is compiled into
the binary.

So it would be nice if you check the free RAM now and then.

Regards
Shardan
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#34 Post by toffel969 » 06 May 2017, 21:57

GIT version: v2.0.0-dev8
Local Time: 2017-05-06 21:55
Uptime: 0 days 9 hours 18 minutes
Load: 10% (LC=26251)
Free Mem: 21472 (28520)

still going strong. maybe psy0orz has an explanation. next would be dev 7 though im thinking thats a bit pointless
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

maluko
Normal user
Posts: 112
Joined: 02 Sep 2015, 00:49

Re: Release v2.0.0-dev7 - possible Bug in Controller

#35 Post by maluko » 07 May 2017, 01:46

GIT version: v2.0.0-dev8
Local Time: 2017-05-07 0:39
Uptime: 2 days 13 hours 51 minutes
Load: 20% (LC=22798)
Free Mem: 23656 (16312)

this work with 12 tasks ( 8 mpc switch, 1 wifi info, 1 uptime, 1 lux, 1 temp) all sending to domotiz.

edit: more rules for each mpc switch with timerset

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#36 Post by toffel969 » 07 May 2017, 10:45

maybe i jumped the gun. last night at 0:00 i checked again and the webserver was not responding. it was still reporting sensor data to domoticz and responding to pings. i also managed to reboot it via http , but webserver was definitly not working anymore. however after reboot it has now 9h uptime again. this is not the same behaviour i saw with dev7 (after reboot i had to hurry to ota to set itback to rc148) unfortunatly i cant give serial output though the node is already installed in a ip54 box outdoors.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#37 Post by Shardan » 07 May 2017, 15:27

Hello toffel,

how long is the delay for reporting?
The memory leak occurred here every time the ESP reported to my FHEM server.
If i disabled the "Send data" in the tasks it stopped leaking.

So for testing we used delays of 1s and 5s bringing down the free ram very fast
until the ESP first stopped website, then stopped reporting and at last crashed.
Keep in mind I'm using FHEM, with other servers it may behave different.

Have a nice sunday

Regards
Shardan

PS: If that is possible with your server, maybe use "System Info" in an additional task and
report "Free RAM" to your server. I've logged the data with FHEM for being lazy ;)
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#38 Post by toffel969 » 08 May 2017, 12:30

After the last crash I just restarted the node.

Unit: 12 GIT version: v2.0.0-dev8
Local Time: 2017-05-08 12:23 Uptime: 1 days 11 hours 57 minutes
Load: 8% (LC=26666) Free Mem: 21656 (28520)

Now its starting to get weird. I am running with a 60 second delay.


So maybe it wasn't the controller bug after all. Not sure what to think....
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#39 Post by Shardan » 08 May 2017, 13:47

hmm... interesting (Spock would say "fascinating"..)

Did you re-download the dev8 or is it the same file as before?

Would be the easiest explanation.

Regards
Shardan.
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#40 Post by toffel969 » 08 May 2017, 21:00

Shardan wrote: 08 May 2017, 13:47 hmm... interesting (Spock would say "fascinating"..)

Did you re-download the dev8 or is it the same file as before?

Would be the easiest explanation.

Regards
Shardan.
I didnt reflash between the crashes. So its still the very same version that malfunctioned
Unit: 12 GIT version: v2.0.0-dev8
Local Time: 2017-05-08 21:00 Uptime: 1 days 20 hours 30 minutes
Load: 14% (LC=24912) Free Mem: 20984 (28520)

Free mem now dropping a little bit
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#41 Post by toffel969 » 09 May 2017, 19:31

Unit: 12 GIT version: v2.0.0-dev8
Local Time: 2017-05-09 19:30 Uptime: 2 days 18 hours 50 minutes
Load: 10% (LC=26397) Free Mem: 21840 (28520)
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#42 Post by Shardan » 09 May 2017, 20:52

Strange.
Well i have to pass on that point.
With FHEM the issue was reproducable easily.
I've not hte slightest idea why it disappeared on your settings.

Regards
Shardan
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#43 Post by toffel969 » 10 May 2017, 10:07

Shardan wrote: 09 May 2017, 20:52 Strange.
Well i have to pass on that point.
With FHEM the issue was reproducable easily.
I've not hte slightest idea why it disappeared on your settings.

Regards
Shardan
Ya I also give up on understanding it... I will keep the dev8 on there and monitor.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

pppp33
Normal user
Posts: 71
Joined: 25 Oct 2015, 17:53

Re: Release v2.0.0-dev7 - possible Bug in Controller

#44 Post by pppp33 » 14 May 2017, 19:36

Hi there,
while definitely solved the reboot issue, with uptime of days, now (with 2.0.0-dev8) I can't read my pulse counter (that worked in dev7)
Am I the only one ?
Thx & regards
Paolo

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Release v2.0.0-dev7 - possible Bug in Controller

#45 Post by Shardan » 14 May 2017, 20:22

Hi Paolo,

i don't use a pulse counter atm so i can't say.
It might be better to open a new thread for that as noone will find your posting here.

Regards
Shardan
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest