Clon1998 / mobileraker

A Flutter mobile app for Klipper/Moonraker
Other
490 stars 56 forks source link

Swipe left or right on machine title bar doesn't always refresh or show the new selected machine #430

Open wikolii opened 2 weeks ago

wikolii commented 2 weeks ago

Bug Report

Description

When swiping left or right rather fast on the machine title bar to switch to cycle through machines the screen freezes. It refreshes when tapping the machine name to show the complete list and (haven't checked) maybe also when changing app focus.

Steps to Reproduce

  1. Have multiple machines added
  2. Go to 'any individual machine screen'
  3. Swipe left or right on 'machine title bar'
  4. Randomly see the error, it will still be showing the previous machine but frozen (no position update, temp change, etc)

Expected Behavior

Show the next machine on the list

Screenshots

Sorry, I haven't been able to reproduce the bug on purpose

Version Information

Debug Logs

mobileraker_2024-11-08T14-17-11.log mobileraker_2024-11-08T16-19-14.log mobileraker_2024-11-09T01-20-52.log mobileraker_2024-11-11T12-11-10.log

Additional Context

I think it's been happening since 1 version prior to the current one


Checklist

To help us diagnose the issue, please ensure you've completed the following steps:

Clon1998 commented 2 weeks ago

Hey thanks for reporting the issue. I will look into it but I was unable to reproduce the issue on my end. If it happens again please provide a recording and the new log files

wikolii commented 2 weeks ago

Update: Changing focus to the homescreen and returning to the app bypasses the bug.

New logs: mobileraker_2024-11-11T12-16-42.log

Recording: https://github.com/user-attachments/assets/b3148beb-e12f-4f9a-bd87-98d1aa3cc36a

Thanks!

Clon1998 commented 2 weeks ago

Hey, just to confirm. The app is sometimes showing the dashboard/values of a previously selected machine rather then the dashboard/values of the currently selected one?

wikolii commented 2 weeks ago

Yes, but only when swiping to change machines and the values are frozen on screen, showing the last "frame", to put a name on it. Algo just realized that tapping anywhere on the screen unblocks this behavior. If this is too much of a hassle to solve or you can't even reproduce the bug, as long as it's just me reporting this i can live with it.

Clon1998 commented 2 weeks ago

Yes, but only when swiping to change machines and the values are frozen on screen, showing the last "frame", to put a name on it.

Algo just realized that tapping anywhere on the screen unblocks this behavior.

If this is too much of a hassle to solve or you can't even reproduce the bug, as long as it's just me reporting this i can live with it.

Okay. I didn't check the logs yet but so far you're the only one reporting it. I'll see if there is something obvious standing out in the logs.