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

Android: Vehicle Setup page crashes app #12174

Open
k-kleber opened this issue Dec 5, 2024 · 7 comments
Open

Android: Vehicle Setup page crashes app #12174

k-kleber opened this issue Dec 5, 2024 · 7 comments

Comments

@k-kleber
Copy link

k-kleber commented Dec 5, 2024

Current Behavior

When accessing the Vehicle Setup page the app crashes.
When disconnected, it always crashes.
When connected to a vehicle it works after the second attempt, crashes once, reopen app then works.

Steps to Reproduce:

Please provide an unambiguous set of steps to reproduce the current behavior

  1. Just have the android app open without being connected to a vehicle and select the Vehicle Setup Page.

System Information

When posting bug reports, include the following information

  • Operating System: Android 9
  • QGC Version: 99a7c6f (master)
  • QGC build: daily
  • Flight Controller: Independent
  • Autopilot (with version): Ardupilot 4.5.3
@HTRamsey
Copy link
Collaborator

HTRamsey commented Dec 5, 2024

Hmm not able to reproduce this
edit: nvm it's apparently Android 9 only

@DonLakeFlyer
Copy link
Contributor

I just go the Herelink version updated to daily and I'm not seeing it there either

@k-kleber
Copy link
Author

k-kleber commented Dec 9, 2024

i managed a temp fix of this by not having the summary page load initially, just when clicking the summary button. As this only happens on the very old Android 9 system I don't think it makes sense to create a PR for this fix, but leaving the solution here in case someone else struggles with it.

@HTRamsey
Copy link
Collaborator

HTRamsey commented Dec 9, 2024

Probably should use more loaders for things like that in general but it makes the QML a lot more messy and harder to read

@DonLakeFlyer
Copy link
Contributor

@k-kleber So this is happening when QGC does the automatic switch to vehicle setup when there is setup still not done?

@HTRamsey That's also the case which causes the dialog parenting problem isn't it?

Might be simplest to just remove that automatic view switch and fix both of these. Sometimes that view switfch thing is helpful other things it's just flat out annoying anyway.

@HTRamsey
Copy link
Collaborator

HTRamsey commented Dec 9, 2024

It's one of them. But there are several more ways to trigger the dialog issue. It seems to me this issue was any time accessing the vehicle setup page rather than the automatic switch

@k-kleber
Copy link
Author

Hey, this happens when the vehicle setup is selected, not through an automatic switch.

The summary is then selected per Default which makes it crash the first time after a reboot.

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

No branches or pull requests

3 participants