question

Eddie Cai avatar image
Eddie Cai asked

ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState

I met some issues when i porting alexa-smart-screen-sdk.. I follow https://developer.amazon.com/en-US/docs/alexa/alexa-smart-screen-sdk/ubuntu.html to do the porting. It goes well until i run the SampleApp with below command: eddie@eddie-PC:/mnt/work/repo/test/alexa-smart-screen-sdk-build$ ./modules/Alexa/SampleApp/src/SampleApp -C /mnt/work/repo/test/avs-device-sdk-build/Integration/AlexaClientSDKConfig.json -C /mnt/work/repo/test/alexa-smart-screen-sdk/modules/GUI/config/guiConfigSamples/GuiConfigSample_SmartScreenLargeLandscape.json -L INFO

It show below log. When i look into the code of ContextManager. it looks like it could not found Alexa.Display.Window from json file. So i guess that means the GuiConfigSample_SmartScreenLargeLandscape.json doesn't have Alexa.Display.Window in it. But it did have Alexa.Display.Window. Can anyone give some idea about this? I attached log_debug9 for further debug. I also attached GuiConfigSample_SmartScreenLargeLandscape.json which got from alexa-smart-screen-sdk/modules/GUI/config/guiConfigSamples without any modification.


eddie@eddie-PC:/mnt/work/repo/test/alexa-smart-screen-sdk-build$ ./modules/Alexa/SampleApp/src/SampleApp -C /mnt/work/repo/test/avs-device-sdk-build/Integration/AlexaClientSDKConfig.json -C /mnt/work/repo/test/alexa-smart-screen-sdk/modules/GUI/config/guiConfigSamples/GuiConfigSample_SmartScreenLargeLandscape.json -L INFO

SmartScreenSDKVersion 2.7

configFile /mnt/work/repo/test/avs-device-sdk-build/Integration/AlexaClientSDKConfig.json

configFile /mnt/work/repo/test/alexa-smart-screen-sdk/modules/GUI/config/guiConfigSamples/GuiConfigSample_SmartScreenLargeLandscape.json

Running app with log level: INFO

2021-08-04 09:32:49.102 [ 1] I AlexaClientSdkInit:initialize:sdkversion=1.24.0

2021-08-04 09:32:49.129 [ 1] I LocaleAssetsManager:initialize:supportedWakeWords=NONE

2021-08-04 09:32:49.131 [ 1] I DeviceInfo:create:result=skipDeviceType,key=deviceType

2021-08-04 09:32:49.131 [ 1] I DeviceInfo:create:result=skipFriendlyName,key=friendlyName

2021-08-04 09:32:49.131 [ 1] I DeviceInfo:create:result=skipRegistrationKey,key=registrationKey

2021-08-04 09:32:49.131 [ 1] I DeviceInfo:create:result=skipProductIdKey,key=productIdKey

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave

ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear

ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe

ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side

ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map

ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port

ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port

ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback

ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card

ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave

2021-08-04 09:32:49.247 [ 1] E PowerResource:create:error=nullPowerManager

2021-08-04 09:32:49.247 [ 1] E PowerResource:create:error=nullPowerManager

2021-08-04 09:32:49.247 [ 1] E PowerResource:create:error=nullPowerManager

2021-08-04 09:32:49.247 [ 1] E PowerResource:create:error=nullPowerManager

2021-08-04 09:32:49.247 [ 1] E PowerResource:create:error=nullPowerManager

2021-08-04 09:32:49.247 [ 1] E PowerResource:create:error=nullPowerManager

2021-08-04 09:32:49.250 [ 1] I Setting:handleSetValue:value=false6142509188972423790

2021-08-04 09:32:49.251 [ 1] I Setting:handleSetValue:value="NONE"6142509188972423790

2021-08-04 09:32:49.251 [ 1] I Setting:handleSetValue:value="NONE"6142509188972423790

2021-08-04 09:32:49.251 [ 1] I Setting:handleSetValue:value="NONE"6142509188972423790

2021-08-04 09:32:49.251 [ 1] I Setting:handleSetValue:value="America/Vancouver"6142509188972423790

2021-08-04 09:32:49.252 [ 1] I Setting:handleSetValue:value={}6142509188972423790

2021-08-04 09:32:49.252 [ 5] I LocaleAssetsManager:changeAssets:Locale=["en-US"],WakeWords=[]

2021-08-04 09:32:49.258 [ 1] C RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=StaticExternalMediaPlayerAdapterHandler

2021-08-04 09:32:49.267 [ 1] E PowerResource:create:error=nullPowerManager

2021-08-04 09:32:49.267 [ 1] W Timer:Timer:reason=nullTimerDelegateFactory:Falling back to default TimerDelegateFactory

#################################################

# NOTIFICATION INDICATOR STATE: OFF #

#################################################


2021-08-04 09:32:49.272 [ 12] I WebSocketServer:Listening for websocket connections:interface=127.0.0.1,port=8933

2021-08-04 09:32:49.274 [ 1] I MessageRouter:setAVSGateway:avsGateway=https\://alexa.na.gateway.devices.a2z.com

2021-08-04 09:32:49.274 [ 1] I MessageRouter:enable

2021-08-04 09:32:49.274 [ 1] I MessageRouter:setConnectionStatusLocked:status=PENDING,reason=ACL_CLIENT_REQUEST

2021-08-04 09:32:49.274 [ 1] I MessageRouter:createActiveTransportLocked:transport=0x16066a0,sizeOf m_transports=0

2021-08-04 09:32:49.274 [ 1] I HTTP2Transport:connect:this=0x16066a0

2021-08-04 09:32:49.274 [ 1] I HTTP2Transport:setStateLocked:this=0x16066a0,currentState=INIT,newState=AUTHORIZING,changedReason=ACL_CLIENT_REQUEST

2021-08-04 09:32:49.274 [ 1] I MessageRouter:setAsActiveTransport:transport=0x16066a0,sizeOf m_transports=1

#######################################

# ALEXA STATE: CONNECTING #

#######################################


2021-08-04 09:32:49.275 [ 2] E WebSocketServer:server::send:errorCode=15,errorCategory=websocketpp

######################################################

# Successfully registered 1 endpoint(s)! #

######################################################


2021-08-04 09:32:49.275 [ 15] I HTTP2Transport:handleAuthorizing:this=0x16066a0

2021-08-04 09:32:49.275 [ 15] I HTTP2Transport:onAuthStateChange:this=0x16066a0,newState=UNINITIALIZED,error=SUCCESS

2021-08-04 09:32:49.277 [ 7] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState

2021-08-04 09:32:49.277 [ 7] E ContextManager:getContextFailureCallbackLocked:token=1,error=BUILD_CONTEXT_ERROR

2021-08-04 09:32:49.277 [ 7] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=playbackState,pendingStateProviderNamespace=Alexa.PlaybackStateReporter

2021-08-04 09:32:49.277 [ 7] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window

2021-08-04 09:32:49.278 [ 7] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR

2021-08-04 09:32:49.278 [ 7] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=1

2021-08-04 09:32:49.914 [ 1b] I MessageRouter:onWakeConnectionRetry

2021-08-04 09:32:49.914 [ 1b] I MessageRouter:onWakeConnectionRetry:m_activeTransport=0x16066a0

2021-08-04 09:32:49.914 [ 1b] I HTTP2Transport:onWakeConnectionRetry:this=0x16066a0

###########################

# Authorized! #

###########################


2021-08-04 09:32:50.346 [ 1c] I HTTP2Transport:onAuthStateChange:this=0x16066a0,newState=REFRESHED,error=SUCCESS

2021-08-04 09:32:50.346 [ 1c] I HTTP2Transport:setStateLocked:this=0x16066a0,currentState=AUTHORIZING,newState=CONNECTING,changedReason=SUCCESS

2021-08-04 09:32:50.346 [ c] E WebSocketServer:server::send:errorCode=15,errorCategory=websocketpp

2021-08-04 09:32:50.346 [ 15] I HTTP2Transport:handleConnecting:this=0x16066a0

2021-08-04 09:32:51.423 [ 1d] I HTTP2Transport:onDownchannelConnected:this=0x16066a0

2021-08-04 09:32:51.423 [ 1d] I HTTP2Transport:setStateLocked:this=0x16066a0,currentState=CONNECTING,newState=POST_CONNECTING,changedReason=SUCCESS

2021-08-04 09:32:51.423 [ 15] I HTTP2Transport:handlePostConnecting:this=0x16066a0

2021-08-04 09:32:51.457 [ 3] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState

2021-08-04 09:32:51.457 [ 3] E ContextManager:getContextFailureCallbackLocked:token=2,error=BUILD_CONTEXT_ERROR

2021-08-04 09:32:51.457 [ 3] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window

2021-08-04 09:32:51.457 [ 3] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR

2021-08-04 09:32:54.361 [ b] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextFailureCallbackLocked:token=3,error=BUILD_CONTEXT_ERROR

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=RenderedDocumentState,pendingStateProviderNamespace=Alexa.Presentation.APL

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=ActivityState,pendingStateProviderNamespace=AudioActivityTracker

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=ExternalMediaPlayerState,pendingStateProviderNamespace=ExternalMediaPlayer

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=playbackState,pendingStateProviderNamespace=Alexa.PlaybackStateReporter

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=IndicatorState,pendingStateProviderNamespace=Notifications

2021-08-04 09:32:54.362 [ b] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR

2021-08-04 09:32:54.362 [ d] E ContextManager:setStateFailed:reason=outdatedStateToken

2021-08-04 09:32:54.362 [ d] E ExternalMediaPlayer:executeProvideState:reason=contextManagerSetStateFailedForEMPState

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=3

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=3

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=3

2021-08-04 09:32:54.362 [ b] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=3

alexa
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

somehow i could not upload file to answerhub. So i use google drive.

here is GuiConfigSample_SmartScreenLargeLandscape.json

https://drive.google.com/file/d/1h8OzZUupjMXX2fMPGLu1U9v6M4SAeeRD/view?usp=sharing

and here is the log_debug9

https://drive.google.com/file/d/1yFRg-NVTF5FMfTHZkbqJhWR1NZtKPYAG/view?usp=sharing

0 Likes 0 ·

0 Answers