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

Missing error handling for unsupported samples on Android #1050

Closed
SaschaWillems opened this issue May 19, 2024 · 0 comments · Fixed by #1051
Closed

Missing error handling for unsupported samples on Android #1050

SaschaWillems opened this issue May 19, 2024 · 0 comments · Fixed by #1051
Assignees
Labels
bug Something isn't working

Comments

@SaschaWillems
Copy link
Collaborator

SaschaWillems commented May 19, 2024

Afair we had proper error handling for samples with e.t. unsupported extensions on Android. Running such a sample would show an error message and gracefully returned to the samples list. With a current build, this is no longer the case. Instead unsupported samples just sit there with a blank screen.

Update: It looks like we miss a permission required with Android 13 and newer. The samples do have code to request permissions, but that's unused and non-working :(

@SaschaWillems SaschaWillems added the bug Something isn't working label May 19, 2024
@SaschaWillems SaschaWillems self-assigned this May 19, 2024
SaschaWillems added a commit to SaschaWillems/Vulkan-Samples that referenced this issue May 19, 2024
Use a proper alert dialog displaying the last error message instead of a toast that just links to the log file
This method also does not require on any permissions (unlike toasts)
Fixes KhronosGroup#1050
marty-johnson59 pushed a commit that referenced this issue Jun 5, 2024
* Clean up api sample base class interfaces

* Revert "Clean up api sample base class interfaces"

This reverts commit 7504395.

* Rework error handling and display on Android

Use a proper alert dialog displaying the last error message instead of a toast that just links to the log file
This method also does not require on any permissions (unlike toasts)
Fixes #1050
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant