Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-receiver stops working after several days (memory is bleeding) #1488

Closed
fenyvesi opened this issue Feb 26, 2023 · 7 comments
Closed

multi-receiver stops working after several days (memory is bleeding) #1488

fenyvesi opened this issue Feb 26, 2023 · 7 comments

Comments

@fenyvesi
Copy link

Describe the bug
After several days of continuos work it doesn't send any message.
To Reproduce
Started 3 times with the same result.

Screenshots

{"uptime":136597,"version":"v1.4.0","freemem":139608,"mqttport":"1883","mqttsecure":false,"tempc":56.66667,"freestack":4456,"rssi":-87,"SSID":"MADOX3G","BSSID":"14:CF:92:4A:4F:E8","ip":"192.168.0.173","mac":"30:AE:A4:02:8B:3C","actRec":3,"mhz":433.92,"RTLRssiThresh":-81,"RTLRssi":-92,"RTLAVGRssi":-90,"RTLCnt":5543,"modules":["RF","RF2","Pilight","RTL_433"]}

Environment (please complete the following information):

  • OpenMQTTGateway version used: precomplied V1.4.0 with defaults

Additional context
The Heltec version (v1.4.0) seems to be OK.

I suggest that the memory is bleeding. The free memory decreases 4-500 bytes/hour.

@NorthernMan54
Copy link
Collaborator

Can you share a bit more about how you are using the device, so we try to recreate.

@fenyvesi
Copy link
Author

What shall I say?
The v1.4.0 is installed from the web. The RF is a CC1101 module. After giving the credentials I use it to catch 3 thermometer's data receiving by each minute.
I can see the proper MQTT messages for a while, but after several days it stops sending. I tried it twice, but didn't try to send MQTT message to the device when it was inactive. If it stops now, I shall try it, also.

The only suspicious fact I realized that the free memory in the SYStoMQTT messages decreases 4-500 bytes/hour, but momentary after 2 days it stagnates around 136kBytes.
The last message is:
{"uptime":175598,"version":"v1.4.0","freemem":136296,"mqttport":"1883","mqttsecure":false,"tempc":57.22222,"freestack":4456,"rssi":-86,"SSID":"MADOX3G","BSSID":"14:CF:92:4A:4F:E8","ip":"192.168.0.173","mac":"30:AE:A4:02:8B:3C","actRec":3,"mhz":433.92,"RTLRssiThresh":-82,"RTLRssi":-92,"RTLAVGRssi":-91,"RTLCnt":7263,"modules":["RF","RF2","Pilight","RTL_433"]}

It might be a connection problem, but the router is 3 meters away.

Please advice me, what else should I say.

@fenyvesi
Copy link
Author

16 hours more ~6 kB:

{"uptime":238358,"version":"v1.4.0","freemem":130992,"mqttport":"1883","mqttsecure":false,"tempc":57.22222,"freestack":4456,"rssi":-86,"SSID":"MADOX3G","BSSID":"14:CF:92:4A:4F:E8","ip":"192.168.0.173","mac":"30:AE:A4:02:8B:3C","actRec":3,"mhz":433.92,"RTLRssiThresh":-81,"RTLRssi":-92,"RTLAVGRssi":-90,"RTLCnt":10026,"modules":["RF","RF2","Pilight","RTL_433"]}

@NorthernMan54
Copy link
Collaborator

Looking at the memory leak numbers, I don’t think this is the issue. 130k plus on esp32 is a lot of memory available.

but I think it is a re-occurrence of this issue

NorthernMan54/rtl_433_ESP#16

@fenyvesi
Copy link
Author

Yeah, you are probably right.
Relating to memory leak: it is right that 130k is more than enough, but it has been decreasing continually. On the other hand the LilyGo version has stable160k for 3 days.

Is there anythnig we can do to avoid it or should I use the Heltec version?

I have a LilyGo/Heltec version, also, The only reason I hesitate to use it is, that I am afraid of the screen would burn in because of the constant, not really changing content.

Thank you for your investigation.

@DigiH
Copy link
Collaborator

DigiH commented Feb 27, 2023

I have a LilyGo/Heltec version, also, The only reason I hesitate to use it is, that I am afraid of the screen would burn in because of the constant, not really changing content.

Hi @fenyvesi , there is something in the pipeline to reduce the burn-in issue

#1484

but you could also remove the display lib_deps and build_flags from your environment altogether to only have the MQTT publishing functionality.

@fenyvesi
Copy link
Author

Thank you, I will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants