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

Cannot read property 'removeClass' of undefined by switching of Display mode and during active ScrollableMessage and PerformInteraction #317

Closed
GetmanetsIrina opened this issue Apr 14, 2020 · 3 comments

Comments

@GetmanetsIrina
Copy link

GetmanetsIrina commented Apr 14, 2020

Bug Report

Cannot read property 'removeClass' of undefined by switching of Display mode and during active ScrollableMessage

Reproduction Steps
  1. SDL and HMI are started
  2. app is registered and activated
  3. One request ScrollableMessage with softButtons has been already requested and processed
  4. Mobile app requests ScrollableMessage with softButtons one more time
  5. Switch Display mode to some other value during ScrollableMessage is active
Expected Behavior

Display mode is switched without errors on HMI. ScrollableMessage is successfully processed.

Observed Behavior

HMI logs Uncaught TypeError error and does not switch display modes anymore.
The same behavior is observed with PerformInteraction RPC in case CreateInteractionChoiceSet was created with the template image

SDL -> HMI [10:32:49:162]: {"id":356,"jsonrpc":"2.0","method":"UI.ScrollableMessage","params":{"appID":1426567666,"cancelID":0,"messageText":{"fieldName":"scrollableMessageBody","fieldText":"This is where long text can go for a scrollable message"},"softButtons":[{"isHighlighted":false,"softButtonID":5522,"systemAction":"STEAL_FOCUS","text":"Reply","type":"TEXT"},{"isHighlighted":false,"softButtonID":5523,"systemAction":"DEFAULT_ACTION","text":"Close","type":"TEXT"}],"timeout":30000}}

UIRPC.js:157 FFW.UI.onRPCRequest
UIRPC.js:1890 FFW.UI.OnSystemContext
RPCClient.js:318 HMI -> SDL [10:32:49:182]: {"jsonrpc":"2.0","method":"UI.OnSystemContext","params":{"systemContext":"HMI_OBSCURED","appID":1426567666}}
ButtonsRPC.js:476 FFW.Buttons.OnButtonEvent BUTTONDOWN
RPCClient.js:318 HMI -> SDL [10:32:51:884]: {"jsonrpc":"2.0","method":"Buttons.OnButtonEvent","params":{"name":"CUSTOM_BUTTON","mode":"BUTTONDOWN","customButtonID":5523,"appID":1426567666}}
ButtonsRPC.js:476 FFW.Buttons.OnButtonEvent BUTTONUP
RPCClient.js:318 HMI -> SDL [10:32:51:946]: {"jsonrpc":"2.0","method":"Buttons.OnButtonEvent","params":{"name":"CUSTOM_BUTTON","mode":"BUTTONUP","customButtonID":5523,"appID":1426567666}}
ButtonsRPC.js:457 FFW.Buttons.OnButtonPress SHORT
RPCClient.js:318 HMI -> SDL [10:32:51:951]: {"jsonrpc":"2.0","method":"Buttons.OnButtonPress","params":{"name":"CUSTOM_BUTTON","mode":"SHORT","customButtonID":5523,"appID":1426567666}}
UIRPC.js:1585 FFW.UI.ScrollableMessageResponse
RPCClient.js:318 HMI -> SDL [10:32:51:959]: {"jsonrpc":"2.0","id":356,"error":{"code":5,"message":"ScrollableMessage aborted!","data":{"method":"UI.ScrollableMessage"}}}
UIRPC.js:1890 FFW.UI.OnSystemContext
RPCClient.js:318 HMI -> SDL [10:32:51:963]: {"jsonrpc":"2.0","method":"UI.OnSystemContext","params":{"systemContext":"MAIN","appID":1426567666}}
RPCClient.js:137 SDL -> HMI [10:32:58:633]: {"id":357,"jsonrpc":"2.0","method":"UI.ScrollableMessage","params":{"appID":1426567666,"cancelID":0,"messageText":{"fieldName":"scrollableMessageBody","fieldText":"This is where long text can go for a scrollable message"},"softButtons":[{"isHighlighted":false,"softButtonID":5522,"systemAction":"STEAL_FOCUS","text":"Reply","type":"TEXT"},{"isHighlighted":false,"softButtonID":5523,"systemAction":"DEFAULT_ACTION","text":"Close","type":"TEXT"}],"timeout":30000}}

UIRPC.js:157 FFW.UI.onRPCRequest
UIRPC.js:1890 FFW.UI.OnSystemContext
RPCClient.js:318 HMI -> SDL [10:32:58:654]: {"jsonrpc":"2.0","method":"UI.OnSystemContext","params":{"systemContext":"HMI_OBSCURED","appID":1426567666}}
ember-1.0.pre.min.js:16 Uncaught TypeError: Cannot read property 'removeClass' of undefined
    at d.g (ember-1.0.pre.min.js:16)
    at j (ember-1.0.pre.min.js:14)
    at i (ember-1.0.pre.min.js:14)
    at Object.o [as sendEvent] (ember-1.0.pre.min.js:14)
    at j (ember-1.0.pre.min.js:14)
    at Object.Ember.notifyObservers (ember-1.0.pre.min.js:14)
    at H (ember-1.0.pre.min.js:14)
    at q (ember-1.0.pre.min.js:14)
    at u (ember-1.0.pre.min.js:14)
    at Object.H [as propertyDidChange] (ember-1.0.pre.min.js:14)
g @ ember-1.0.pre.min.js:16
j @ ember-1.0.pre.min.js:14
i @ ember-1.0.pre.min.js:14
o @ ember-1.0.pre.min.js:14
j @ ember-1.0.pre.min.js:14
Ember.notifyObservers @ ember-1.0.pre.min.js:14
H @ ember-1.0.pre.min.js:14
q @ ember-1.0.pre.min.js:14
u @ ember-1.0.pre.min.js:14
H @ ember-1.0.pre.min.js:14
B.chainDidChange @ ember-1.0.pre.min.js:14
B.chainDidChange @ ember-1.0.pre.min.js:14
B.chainDidChange @ ember-1.0.pre.min.js:14
B.chainDidChange @ ember-1.0.pre.min.js:14
B.didChange @ ember-1.0.pre.min.js:14
D @ ember-1.0.pre.min.js:14
F @ ember-1.0.pre.min.js:14
H @ ember-1.0.pre.min.js:14
c @ ember-1.0.pre.min.js:14
_changeSingle @ ember-1.0.pre.min.js:18
_change @ ember-1.0.pre.min.js:18
j @ ember-1.0.pre.min.js:14
i @ ember-1.0.pre.min.js:14
o @ ember-1.0.pre.min.js:14
trigger @ ember-1.0.pre.min.js:15
trigger @ ember-1.0.pre.min.js:16
d @ ember-1.0.pre.min.js:14
handleEvent @ ember-1.0.pre.min.js:16
invokeForState @ ember-1.0.pre.min.js:16
handleEvent @ ember-1.0.pre.min.js:16
(anonymous) @ ember-1.0.pre.min.js:16
c @ ember-1.0.pre.min.js:14
Ember.run @ ember-1.0.pre.min.js:14
_bubbleEvent @ ember-1.0.pre.min.js:16
(anonymous) @ ember-1.0.pre.min.js:16
dispatch @ jquery-1.7.2.min.js:3
i @ jquery-1.7.2.min.js:3
Show 7 more frames
UIRPC.js:1623 FFW.UI.ScrollableMessageResponse
RPCClient.js:318 HMI -> SDL [10:33:28:658]: {"jsonrpc":"2.0","id":357,"result":{"code":0,"method":"UI.ScrollableMessage"}}
UIRPC.js:1890 FFW.UI.OnSystemContext
RPCClient.js:318 HMI -> SDL [10:33:28:662]: {"jsonrpc":"2.0","method":"UI.OnSystemContext","params":{"systemContext":"MAIN","appID":1426567666}}
SDL -> HMI [11:28:35:550]: {"id":200,"jsonrpc":"2.0","method":"VR.PerformInteraction","params":{"appID":1654069829,"cancelID":0,"helpPrompt":[{"text":"Help prompt","type":"TEXT"}],"timeout":10000,"timeoutPrompt":[{"text":"Timeout prompt","type":"TEXT"}]}}

VRRPC.js:141 FFW.VR.onRPCRequest
TTSRPC.js:304 FFW.TTS.SpeakResponse
RPCClient.js:323 HMI -> SDL [11:28:35:556]: {"jsonrpc":"2.0","id":null,"error":{"code":21,"message":"No TTS Chunks provided in Speak request","data":{"method":"TTS.Speak"}}}
VRRPC.js:373 FFW.VR.VR.PerformInteractionResponse
RPCClient.js:323 HMI -> SDL [11:28:35:558]: {"jsonrpc":"2.0","id":200,"result":{"code":0,"method":"VR.PerformInteraction"}}
RPCClient.js:137 SDL -> HMI [11:28:35:560]: {"id":201,"jsonrpc":"2.0","method":"UI.PerformInteraction","params":{"appID":1654069829,"cancelID":0,"choiceSet":[{"choiceID":2,"image":{"imageType":"DYNAMIC","isTemplate":true,"value":"/home/igetmanets/sdl/builds/DEVELOP/p/bin/storage/584421907_71546855d6279ef70d20909b292c42c2dcb02cd06bde01485da52d13e304ebf4/icon.png"},"menuName":"Choice2","secondaryImage":{"imageType":"DYNAMIC","isTemplate":true,"value":"/home/igetmanets/sdl/builds/DEVELOP/p/bin/storage/584421907_71546855d6279ef70d20909b292c42c2dcb02cd06bde01485da52d13e304ebf4/icon.png"}}],"initialText":{"fieldName":"initialInteractionText","fieldText":"Pick number:"},"interactionLayout":"ICON_ONLY","timeout":10000}}

UIRPC.js:157 FFW.UI.onRPCRequest
UIRPC.js:2080 FFW.UI.OnSystemContext
RPCClient.js:323 HMI -> SDL [11:28:35:571]: {"jsonrpc":"2.0","method":"UI.OnSystemContext","params":{"systemContext":"HMI_OBSCURED","appID":1654069829}}
ember-1.0.pre.min.js:16 Uncaught TypeError: Cannot read property 'removeClass' of undefined
    at d.g (ember-1.0.pre.min.js:16)
    at j (ember-1.0.pre.min.js:14)
    at i (ember-1.0.pre.min.js:14)
    at Object.o [as sendEvent] (ember-1.0.pre.min.js:14)
    at j (ember-1.0.pre.min.js:14)
    at Object.Ember.notifyObservers (ember-1.0.pre.min.js:14)
    at H (ember-1.0.pre.min.js:14)
    at q (ember-1.0.pre.min.js:14)
    at u (ember-1.0.pre.min.js:14)
    at Object.H [as propertyDidChange] (ember-1.0.pre.min.js:14)
g @ ember-1.0.pre.min.js:16
j @ ember-1.0.pre.min.js:14
i @ ember-1.0.pre.min.js:14
o @ ember-1.0.pre.min.js:14
j @ ember-1.0.pre.min.js:14
Ember.notifyObservers @ ember-1.0.pre.min.js:14
H @ ember-1.0.pre.min.js:14
q @ ember-1.0.pre.min.js:14
u @ ember-1.0.pre.min.js:14
H @ ember-1.0.pre.min.js:14
B.chainDidChange @ ember-1.0.pre.min.js:14
B.chainDidChange @ ember-1.0.pre.min.js:14
B.chainDidChange @ ember-1.0.pre.min.js:14
B.didChange @ ember-1.0.pre.min.js:14
D @ ember-1.0.pre.min.js:14
F @ ember-1.0.pre.min.js:14
H @ ember-1.0.pre.min.js:14
c @ ember-1.0.pre.min.js:14
set @ ember-1.0.pre.min.js:15
(anonymous) @ interactionChoicesView.js:471
j @ ember-1.0.pre.min.js:14
(anonymous) @ ember-1.0.pre.min.js:14
g.flush @ ember-1.0.pre.min.js:14
k @ ember-1.0.pre.min.js:14
Ember.endPropertyChanges @ ember-1.0.pre.min.js:14
flush @ ember-1.0.pre.min.js:14
end @ ember-1.0.pre.min.js:14
Ember.run.end @ ember-1.0.pre.min.js:14
Ember.run @ ember-1.0.pre.min.js:14
_bubbleEvent @ ember-1.0.pre.min.js:16
(anonymous) @ ember-1.0.pre.min.js:16
dispatch @ jquery-1.7.2.min.js:3
i @ jquery-1.7.2.min.js:3
Show 3 more frames
TTSRPC.js:405 FFW.TTS.Started
RPCClient.js:323 HMI -> SDL [11:28:43:557]: {"jsonrpc":"2.0","method":"TTS.Started"}
OS & Version Information
@jordynmackool jordynmackool removed the bug label Feb 22, 2021
@GetmanetsIrina GetmanetsIrina changed the title Cannot read property 'removeClass' of undefined by switching of Display mode and during active ScrollableMessage Cannot read property 'removeClass' of undefined by switching of Display mode and during active ScrollableMessage and PerformInteraction Mar 17, 2021
@GetmanetsIrina
Copy link
Author

Log for PerformInteration RPC has been added.

@iCollin
Copy link
Collaborator

iCollin commented Jun 2, 2021

Closed via #573

@iCollin iCollin closed this as completed Jun 2, 2021
@GetmanetsIrina
Copy link
Author

The issue was not fully fixed. A new issue for PerformInteraction RCP has been created #610

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants