thecowan / wallpanel-android

WallPanel is an Android application for Web Based Dashboards and Home Automation Platforms
https://wallpanel.app
Apache License 2.0
750 stars 103 forks source link

[BUG] It is the MQTT connection which made crash #318

Open kizovinh opened 3 years ago

kizovinh commented 3 years ago

Describe the bug I have already post an issue here https://github.com/thanksmister/wallpanel-android/issues/309 After all this time, I have firgue out that the MQTT connection is the reason of every crash on my Redmi Note 3. I turn off MQTT client and it work fine for weeks without any crash. So I wonder you can check the MQTT traffic, maybe allow the device to choose which sensor to send, or add bounced delay within face detection and motion detection , v.v Thank you!

To Reproduce Steps to reproduce the behavior: Turn on MQTT client

Smartphone (please complete the following information):

thanksmister commented 3 years ago

Can you just turn off sensor publishing? That is optional. This way you can test just MQTT client functionality on its own. I checked for crashes on the latest version but didn’t see one for Android 6. I see MQTT crashes for Android 10.

thanksmister commented 3 years ago

Also, can you tell me again which application version you are using?

kizovinh commented 3 years ago

Also, can you tell me again which application version you are using?

Hmmm it's the v0.9.5 Build 7, i tried turn on Mqtt client and turn off sensor publishing for 2 days, it seems fine. Maybe sensor publishing is the reason? When i turned on camera test, i saw that the motion detected and face detected is repeated very rapidly. I am trying to turn on sensor publishing without movement detection and make it publish per 30mins, let me see in the next few days

kizovinh commented 3 years ago

Can you add the reset time function for face detection, just like motion detection?

kizovinh commented 3 years ago

Also, can you tell me again which application version you are using?

Hmmm it's the v0.9.5 Build 7, i tried turn on Mqtt client and turn off sensor publishing for 2 days, it seems fine. Maybe sensor publishing is the reason? When i turned on camera test, i saw that the motion detected and face detected is repeated very rapidly. I am trying to turn on sensor publishing without movement detection and make it publish per 30mins, let me see in the next few days

Oh, it crashed last night

thanksmister commented 3 years ago

I will check for a crash report

thanksmister commented 3 years ago

It could be the MQTT message you are sending has bad characters causing a parser error. It treats the commands as JSON.

kizovinh commented 3 years ago

It could be the MQTT message you are sending has bad characters causing a parser error. It treats the commands as JSON.

nice job, thank you

BillyFKidney commented 2 years ago

I will check for a crash report

How can I pull a crash report? After setting up MQTT I find WallPanel crashes every evening.