-
Notifications
You must be signed in to change notification settings - Fork 43
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 ReferenceError during processing SetDisplayLayout(displayLayout = DEFAULT) #534
Comments
@jordynmackool This issue is reproduced on HMI because SetDisplayLayout is deprecated RPC in HMI_API.xml, to fix the issue we can delete all the relevant code on HMI, please advise whether this solution is acceptable? |
@Ypostolov Deprecated does not yet mean removed, we should look at fixing the javascript error. Maybe in future we can create a core change for transforming set display layout requests into show requests for the hmi. |
Entered a proposal for replacing UI.SetDisplayLayout with UI.Show: smartdevicelink/sdl_evolution#1136 |
@jordynmackool PR with fix is ready for Livio review. Thank you. |
Fixed by #566 |
Description:
HMI Uncaught ReferenceError during processing SetDisplayLayout(displayLayout = DEFAULT)
Precondition:
Steps to reproduce:
Expected result:
HMI responds with
{"success":true,"resultCode":"SUCCESS"}
HMI applies appropriate template
Actual result:
SDL -> HMI [10:48:44:366]: {"id":601,"jsonrpc":"2.0","method":"UI.SetDisplayLayout","params":{"appID":1246083497,"displayLayout":"DEFAULT"}}
UIRPC.js:157 FFW.UI.onRPCRequest
UIRPC.js:514 FFW.UI.SetDisplayLayoutResponse
UIRPC.js:517 Uncaught ReferenceError: Cannot access 'model' before initialization
at d.onRPCRequest (UIRPC.js:517)
at d [as onRPCRequest] (ember-1.0.pre.min.js:14)
at d.onWSMessage (RPCClient.js:190)
at WebSocket.socket.onmessage (RPCClient.js:81)
Environment:
SDL: https://github.com/smartdevicelink/sdl_core/tree/7.1.0-RC1
HMI: https://github.com/smartdevicelink/sdl_hmi/tree/develop (7fad546)
SPT: SPT: 20210305-Android (1076)
The text was updated successfully, but these errors were encountered: