Page 1 of 1
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 04 May 2017, 23:48
by toffel969
Yes please!

Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 14:50
by Shardan
A 4096-memsized one? Or do you need another flashsize?
Regards
Shardan
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 16:18
by toffel969
Shardan wrote: ↑05 May 2017, 14:50
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 17:01
by Shardan
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.
.
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 19:13
by toffel969
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

) and connect it to domoticz later when my daughter is sleeping.
Regards
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 19:21
by Shardan
You're welcome

Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 20:42
by toffel969
Shardan wrote: ↑05 May 2017, 19:21
You're welcome
Correction to above post... I flashed the wrong node

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.
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 21:04
by Shardan
Thanks for testing.
Check the free RAM on the webside, it should not decrease over time.
Regards
Shardan
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 22:55
by toffel969
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 05 May 2017, 23:51
by Shardan
Would be interesting indeed.
Regards
Shardan
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 06 May 2017, 12:31
by toffel969
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 06 May 2017, 13:32
by toffel969
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 06 May 2017, 15:00
by Shardan
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 06 May 2017, 21:57
by toffel969
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 07 May 2017, 01:46
by maluko
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 07 May 2017, 10:45
by toffel969
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.
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 07 May 2017, 15:27
by Shardan
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

Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 08 May 2017, 12:30
by toffel969
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....
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 08 May 2017, 13:47
by Shardan
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.
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 08 May 2017, 21:00
by toffel969
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 09 May 2017, 19:31
by toffel969
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)
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 09 May 2017, 20:52
by Shardan
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 10 May 2017, 10:07
by toffel969
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.
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 14 May 2017, 19:36
by pppp33
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
Re: Release v2.0.0-dev7 - possible Bug in Controller
Posted: 14 May 2017, 20:22
by Shardan
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