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

presentChoiceSet failed with "INVALID_ID, null" #1336

Closed
yingchun1 opened this issue Apr 10, 2020 · 7 comments
Closed

presentChoiceSet failed with "INVALID_ID, null" #1336

yingchun1 opened this issue Apr 10, 2020 · 7 comments
Labels
bug A defect in the library manager-screen Relating to the manager layer - screen managers

Comments

@yingchun1
Copy link

yingchun1 commented Apr 10, 2020

Bug Report

presentChoiceSet work well If just new ChoiceCell with text but will fail if i add the ChoiceCell with VrCommands in it.

Reproduction Steps
  1. Follow the sample in sdl to add VR strings in ChoiceCell to support VR commands
  2. run the code
Expected Behavior

it should show the choice set successful

Observed Behavior

but it returns error with message "INVALID_ID, null"

OS & Version Information
  • Android Version: android 8.0.0
  • SDL Android Version: 4.10.1
Test Case, Sample Code, and / or Example App
ChoiceCell cell1 = new ChoiceCell("Item 1", Arrays.asList("Item 1"), null);
ArrayList choiceCellList = new ArrayList<>(Arrays.asList(cell1));
sdlManager.getScreenManager().preloadChoices(choiceCellList, success -> {if(success) {
    Logger.i(TAG, " preloadChoices success ");
    ChoiceSet choiceSet = new ChoiceSet("Choose an Item from the list", choiceCellList, new ChoiceSetSelectionListener() {
        @Override
        public void onChoiceSelected(ChoiceCell choiceCell, TriggerSource triggerSource, int rowIndex) {
            Logger.i(TAG, choiceCell.getText() + " was selected");
        }
        @Override
        public void onError(String error) {
            Logger.e(TAG, "There was an error showing the perform interaction: "+ error);
        }
    });
    sdlManager.getScreenManager().presentChoiceSet(choiceSet, InteractionMode.BOTH);
} else {
    Logger.i(TAG, " preloadChoices fail ");
}});
@bilal-alsharifi
Copy link
Contributor

Hi @yingchun1 What head unit are you testing against. I tried your code on Manticore and it worked well.

@yingchun1
Copy link
Author

i am using Ford TDK SYNC3, software version 2.3 build 17109_DEVTEST

@bilal-alsharifi
Copy link
Contributor

i am using Ford TDK SYNC3, software version 2.3 build 17109_DEVTEST

@yingchun1 do you mean version 3.2? I thought SYNC3 versions will always be something like 3.X

@joeljfischer joeljfischer added bug A defect in the library manager-screen Relating to the manager layer - screen managers labels May 7, 2020
@bilal-alsharifi
Copy link
Contributor

bilal-alsharifi commented May 12, 2020

I tried to run the provided code on a similar TDK which is Ford SYNC3 v3.4 build 19353_DEVTEST_r133796 as I don't have access to a TDK with the exact same version that you provided. I haven't seen the issue. Also, wasn't able to see it on Manticore.
It could be an issue from that specific TDK. Would it be possible to reproduce the issue on Manticore? also, does this issue happen every time when you run that code?

@bilal-alsharifi
Copy link
Contributor

@yingchun1 just checking to see if you are able to reproduce the issue on Mantoicre

@JulianKast JulianKast mentioned this issue Jul 7, 2020
5 tasks
@theresalech
Copy link
Contributor

@yingchun1 could you please test PR #1405 with both Manticore and your TDK? We believe #1405 should resolve the issue you've reported. Thanks!

@theresalech
Copy link
Contributor

Closing as we believe this issue to be resolved via #1405. Please let us know if you are still experiencing the issue. Thank you!

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

No branches or pull requests

4 participants