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

HMI Uncaught SyntaxError after processing SetDisplayLayout(displayLayout = DEFAULT) for media and non-media apps #609

Closed
GetmanetsIrina opened this issue Sep 15, 2021 · 3 comments
Labels

Comments

@GetmanetsIrina
Copy link

GetmanetsIrina commented Sep 15, 2021

Description:

HMI Uncaught ReferenceError during processing SetDisplayLayout(displayLayout = DEFAULT) for media and non-media apps

Precondition:

  1. SDL and HMI are started
  2. Media/non-media mobile app is registered and activated

Steps to reproduce:

  1. App requests SetDisplayLayout(displayLayout = DEFAULT)

Expected result:

HMI responds with
{"success":true,"resultCode":"SUCCESS"}
HMI applies appropriate template

Actual result:

for media app
SDL -> HMI [9:36:41:813]: {"id":178,"jsonrpc":"2.0","method":"UI.SetDisplayLayout","params":{"appID":1812981488,"displayLayout":"DEFAULT"}}
UIRPC.js:160 FFW.UI.onRPCRequest
UIRPC.js:506 FFW.UI.SetDisplayLayoutResponse
RPCClient.js:323 HMI -> SDL [9:36:41:815]: {"jsonrpc":"2.0","id":178,"result":{"displayCapabilities":{"displayType":"GEN2_8_DMA","displayName":"SDL_HMI","textFields":[{"name":"mainField1","characterSet":"UTF_8","width":500,"rows":1},{"name":"mainField2","characterSet":"UTF_8","width":500,"rows":1},{"name":"statusBar","characterSet":"UTF_8","width":500,"rows":1},{"name":"mediaClock","characterSet":"UTF_8","width":500,"rows":1},{"name":"mediaTrack","characterSet":"UTF_8","width":500,"rows":1},{"name":"templateTitle","characterSet":"UTF_8","width":100,"rows":1},{"name":"alertText1","characterSet":"UTF_8","width":500,"rows":1},{"name":"alertText2","characterSet":"UTF_8","width":500,"rows":1},{"name":"alertText3","characterSet":"UTF_8","width":500,"rows":1},{"name":"scrollableMessageBody","characterSet":"UTF_8","width":500,"rows":1},{"name":"initialInteractionText","characterSet":"UTF_8","width":500,"rows":1},{"name":"navigationText1","characterSet":"UTF_8","width":500,"rows":1},{"name":"navigationText2","characterSet":"UTF_8","width":500,"rows":1},{"name":"ETA","characterSet":"UTF_8","width":500,"rows":1},{"name":"totalDistance","characterSet":"UTF_8","width":500,"rows":1},{"name":"audioPassThruDisplayText1","characterSet":"UTF_8","width":500,"rows":1},{"name":"audioPassThruDisplayText2","characterSet":"UTF_8","width":500,"rows":1},{"name":"sliderHeader","characterSet":"UTF_8","width":500,"rows":1},{"name":"sliderFooter","characterSet":"UTF_8","width":500,"rows":1},{"name":"menuName","characterSet":"UTF_8","width":500,"rows":1},{"name":"secondaryText","characterSet":"UTF_8","width":500,"rows":1},{"name":"tertiaryText","characterSet":"UTF_8","width":500,"rows":1},{"name":"timeToDestination","characterSet":"UTF_8","width":500,"rows":1},{"name":"turnText","characterSet":"UTF_8","width":500,"rows":1},{"name":"menuTitle","characterSet":"UTF_8","width":10,"rows":1},{"name":"locationName","characterSet":"UTF_8","width":500,"rows":1},{"name":"locationDescription","characterSet":"UTF_8","width":500,"rows":1},{"name":"addressLines","characterSet":"UTF_8","width":500,"rows":1},{"name":"phoneNumber","characterSet":"UTF_8","width":500,"rows":1}],"imageFields":[{"name":"softButtonImage","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"choiceImage","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"choiceSecondaryImage","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"vrHelpItem","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"turnIcon","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"menuIcon","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"cmdIcon","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"graphic","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"secondaryGraphic","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"showConstantTBTIcon","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"showConstantTBTNextTurnIcon","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"showConstantTBTNextTurnIcon","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":64,"resolutionHeight":64}},{"name":"alertIcon","imageTypeSupported":["GRAPHIC_BMP","GRAPHIC_JPEG","GRAPHIC_PNG"],"imageResolution":{"resolutionWidth":105,"resolutionHeight":65}}],"mediaClockFormats":["CLOCK1","CLOCK2","CLOCK3","CLOCKTEXT1","CLOCKTEXT2","CLOCKTEXT3","CLOCKTEXT4"],"graphicSupported":true,"imageCapabilities":["DYNAMIC","STATIC"],"templatesAvailable":["MEDIA","NON-MEDIA","NAV_FULLSCREEN_MAP","WEB_VIEW"],"screenParams":{"resolution":{"resolutionWidth":800,"resolutionHeight":480},"touchEventAvailable":{"pressAvailable":true,"multiTouchAvailable":true,"doublePressAvailable":false}},"numCustomPresetsAvailable":10},"buttonCapabilities":[{"name":"PRESET_0","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_1","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_2","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_3","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_4","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_5","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_6","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_7","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_8","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PRESET_9","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"OK","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"PLAY_PAUSE","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"SEEKLEFT","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"SEEKRIGHT","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"TUNEUP","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"TUNEDOWN","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true},{"name":"CUSTOM_BUTTON","shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true}],"softButtonCapabilities":[{"shortPressAvailable":true,"longPressAvailable":true,"upDownAvailable":true,"imageSupported":true}],"presetBankCapabilities":{"onScreenPresetsAvailable":true},"code":0,"method":"UI.SetDisplayLayout"}}
KeyboardController.js:252 Unmasking keyboard input characters
navigationSubscriptionButtonsView.js:78 Refresh items??? null
KeyboardController.js:252 Unmasking keyboard input characters
navigationSubscriptionButtonsView.js:78 Refresh items??? <SDL.SDLMediaModel:ember28565>
RCRPC.js:529 FFW.RC.OnInteriorVehicleData Notification
RPCClient.js:323 HMI -> SDL [9:36:41:897]: {"jsonrpc":"2.0","method":"RC.OnInteriorVehicleData","params":{"moduleData":{"moduleType":"AUDIO","moduleId":"d38e4a05-b17c-28e3-9d38-e4a05b17c28e","audioControlData":{"source":"MOBILE_APP"}}}}
VM268:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
 at JSON.parse (<anonymous>)
 at deepCopy (SDLApp.js:74)
 at d.getDisplayCapability (Controller.js:1654)
 at d.onRPCRequest (UIRPC.js:574)
 at d [as onRPCRequest] (ember-1.0.pre.min.js:14)
 at d.onWSMessage (RPCClient.js:190)
 at WebSocket.socket.onmessage (RPCClient.js:81)
for non-media app
Refresh items??? <SDL.SDLNonMediaModel:ember37628>
VM541:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
 at JSON.parse (<anonymous>)
 at deepCopy (SDLApp.js:74)
 at d.getDisplayCapability (Controller.js:1654)
 at d.onRPCRequest (UIRPC.js:574)
 at d [as onRPCRequest] (ember-1.0.pre.min.js:14)
 at d.onWSMessage (RPCClient.js:190)
 at WebSocket.socket.onmessage (RPCClient.js:81)
Browser & Version Information
  • Browser and Version: Chromium (Version 92.0.4515.159)
  • SDL HMI Version: release/5.6.0 (ceb8b3c)
  • Testing Against: SDL: release/8.0.0 (5da5770), SyncProxyTester(Version 20210729-Android (1082))
@GetmanetsIrina
Copy link
Author

Please notice Luxoft team is going to prepare a fix.

@ValeriiMalkov
Copy link
Contributor

A DEAULT available template is removed from the display capabilities because it's not defined on the HMI.
The expected result of the issue-609 must be replaced with an error result code.

@ShobhitAd
Copy link
Contributor

Closed via #617

@theresalech theresalech removed the 5.6 Release Issue introduced in 5.6 development label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants