wallpanel-android icon indicating copy to clipboard operation
wallpanel-android copied to clipboard

[BUG] It is the MQTT connection which made crash

Open kizovinh opened this issue 3 years ago • 9 comments

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):

  • Device: Redmi Note 3 Pro
  • OS: [e.g. Android 6.0.1

kizovinh avatar Sep 16 '21 16:09 kizovinh

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 avatar Sep 19 '21 13:09 thanksmister

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

thanksmister avatar Sep 19 '21 13:09 thanksmister

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 avatar Sep 19 '21 17:09 kizovinh

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

kizovinh avatar Sep 19 '21 17:09 kizovinh

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

kizovinh avatar Sep 20 '21 04:09 kizovinh

I will check for a crash report

thanksmister avatar Sep 24 '21 14:09 thanksmister

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

thanksmister avatar Sep 24 '21 14:09 thanksmister

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

kizovinh avatar Sep 24 '21 15:09 kizovinh

I will check for a crash report

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

BillyFKidney avatar Dec 29 '21 16:12 BillyFKidney