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

ScreenManager tries to upload images even if they are not supported (SDL 2.0) #1738

Closed
bilal-alsharifi opened this issue Sep 24, 2021 · 1 comment · Fixed by #1811
Closed
Labels
bug A defect in the library manager-screen Relating to the manager layer - screen managers

Comments

@bilal-alsharifi
Copy link
Contributor

bilal-alsharifi commented Sep 24, 2021

Bug Report

It seems the ScreenManager tries to upload images on Sync 2 even if the dynamic images are not supported. That doesn't crash the app but it just sends RPCs when there is no need for that. It also logs some error messages like the following:

E/FileManager: 5.2.0: File named icon.png failed to upload. Max number of upload attempts reached.
E/FileManager: 5.2.0: File named image1.png failed to upload. Max number of upload attempts reached.
E/SoftButtonReplaceOperation: 5.2.0: Error uploading soft button artworks: [image1.png]
E/FileManager: 5.2.0: File named image2.png failed to upload. Max number of upload attempts reached.
E/SoftButtonReplaceOperation: 5.2.0: Error uploading soft button artworks: [image2.png]

The potential reason for the issue is that Sync 2 sends RegisterAppInterfaceResponse with the following values:

RegisterAppInterfaceResponse.displayCapabilities.graphicSupported = false
RegisterAppInterfaceResponse.softButtonCapabilities.imageSupported = true

The SoftButtonManager (and possibly other managers) depends on ImageSupported and thinks the images are supported when in reality they are not.

Reproduction Steps
  1. Run SDL app on Sync 2 TDK
  2. Use the SoftButtonManager to set buttons with images
Expected Behavior

Images for the buttons shouldn't be uploaded because the TDK doesn't support dynamic images.

Observed Behavior

SoftButtonManager tries to upload the images then fail

OS & Version Information
  • Android Version: 11
  • SDL Android Version: 5.2
  • Testing Against: Sync 2
@jordynmackool jordynmackool added bug A defect in the library manager-screen Relating to the manager layer - screen managers labels Sep 24, 2021
@joeljfischer joeljfischer changed the title ScreenManager tries to upload images even if they are not supported ScreenManager tries to upload images even if they are not supported (SDL 2.0) Oct 27, 2021
@JulianKast
Copy link
Contributor

Fixed with #1811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library manager-screen Relating to the manager layer - screen managers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants