alexa / alexa-smart-screen-sdk

⛔️ DEPRECATED Active at https://github.com/alexa/avs-device-sdk
Apache License 2.0
76 stars 26 forks source link

smart screen run error #143

Closed nomanho closed 2 years ago

nomanho commented 2 years ago

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

  1. in browser crome When I type file://$HOME/sdk_folder/ss-build/modules/GUI/index.html it says the page cannot be found. There is nothing wrong with the folder structure. So, I went directly to that folder and ran index.html.
  2. After executing index.html, if I press the 'A' key in the standby state, it stays in the listening state for a very short time and then returns to the standby state.

What is the expected behavior?

What behavior are you observing?

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

Message Server Connection Opened.

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

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

ALEXA STATE: CONNECTING

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

2022-10-01 13:50:36.690 [ 10] I AudioInputProcessor:Create audio attachment reader success:resolveKey=DEFAULT_RESOLVE_KEY,format=AUDIO_L16_RATE_16000_CHANNELS_1 2022-10-01 13:50:36.691 [ 10] W MetricEventBuilder:addDataPointFailed:reason=invalidDataPoint 2022-10-01 13:50:36.693 [ 10] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:50:36.695 [ 10] I MessageRouter:onWakeConnectionRetry 2022-10-01 13:50:36.695 [ 10] I MessageRouter:onWakeConnectionRetry:m_activeTransport=0x22823f0 2022-10-01 13:50:36.695 [ 10] I HTTP2Transport:onWakeConnectionRetry:this=0x22823f0 #######################################

ALEXA STATE: CONNECTING

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

2022-10-01 13:50:36.699 [ 4] I ContextManager:updateCapabilityState 2022-10-01 13:50:36.700 [ 4] I ContextManager:updateCapabilityState 2022-10-01 13:50:36.701 [ 4] I ContextManager:updateCapabilityState 2022-10-01 13:50:36.703 [ 4] I ContextManager:updateCapabilityState 2022-10-01 13:50:36.703 [ 4] I ContextManager:updateCapabilityState 2022-10-01 13:50:36.704 [ 4] I ContextManager:updateCapabilityState 2022-10-01 13:50:36.708 [ 10] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=,newValue=6a6cc35c-303d-4ea4-b6c6-82e28c2c7c8c 2022-10-01 13:50:36.711 [ 10] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 #######################################

ALEXA STATE: CONNECTING

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

2022-10-01 13:50:44.760 [ 14] W Channel:notifyActivitiesFailed::No Associated Activities Found 2022-10-01 13:50:50.310 [ 3] I AudioInputProcessor:Create audio attachment reader success:resolveKey=DEFAULT_RESOLVE_KEY,format=AUDIO_L16_RATE_16000_CHANNELS_1 2022-10-01 13:50:50.310 [ 3] W MetricEventBuilder:addDataPointFailed:reason=invalidDataPoint 2022-10-01 13:50:50.311 [ 3] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:50:50.312 [ 3] I MessageRouter:onWakeConnectionRetry 2022-10-01 13:50:50.312 [ 3] I MessageRouter:onWakeConnectionRetry:m_activeTransport=0x22823f0 2022-10-01 13:50:50.312 [ 3] I HTTP2Transport:onWakeConnectionRetry:this=0x22823f0 #######################################

ALEXA STATE: CONNECTING

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

2022-10-01 13:50:50.315 [ 13] I ContextManager:updateCapabilityState 2022-10-01 13:50:50.316 [ 13] I ContextManager:updateCapabilityState 2022-10-01 13:50:50.317 [ 13] I ContextManager:updateCapabilityState 2022-10-01 13:50:50.318 [ 13] I ContextManager:updateCapabilityState 2022-10-01 13:50:50.319 [ 13] I ContextManager:updateCapabilityState 2022-10-01 13:50:50.320 [ 13] I ContextManager:updateCapabilityState 2022-10-01 13:50:50.324 [ 3] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=6a6cc35c-303d-4ea4-b6c6-82e28c2c7c8c,newValue=e0f24167-9c24-4a2c-bf6d-d481cb8e46aa 2022-10-01 13:50:50.327 [ 3] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 #######################################

ALEXA STATE: CONNECTING

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

2022-10-01 13:50:58.479 [ 7] W Channel:notifyActivitiesFailed::No Associated Activities Found 2022-10-01 13:50:59.784 [ 2] I ContextManager:updateCapabilityState 2022-10-01 13:50:59.786 [ 2] I ContextManager:updateCapabilityState 2022-10-01 13:50:59.787 [ 2] I ContextManager:updateCapabilityState 2022-10-01 13:50:59.787 [ 2] I ContextManager:updateCapabilityState 2022-10-01 13:50:59.787 [ 2] I ContextManager:updateCapabilityState 2022-10-01 13:50:59.788 [ 2] I ContextManager:updateCapabilityState 2022-10-01 13:50:59.792 [ 17] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:51:00.268 [ 17] I HTTP2Transport:onPostConnected:this=0x22823f0 2022-10-01 13:51:00.268 [ 17] I HTTP2Transport:setStateLocked:this=0x22823f0,currentState=POST_CONNECTING,newState=CONNECTED,changedReason=SUCCESS 2022-10-01 13:51:00.269 [ 15] I HTTP2Transport:handleConnected:this=0x22823f0 2022-10-01 13:51:00.270 [ 15] I MessageRouter:onConnected:transport=0x22823f0,m_activeTransport=0x22823f0 2022-10-01 13:51:00.270 [ 15] I MessageRouter:setConnectionStatusLocked:status=CONNECTED,reason=ACL_CLIENT_REQUEST #################################

ALEXA STATE: IDLE

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

2022-10-01 13:51:00.275 [ 4] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:51:00.322 [ 16] E DefaultAttachmentReader:readFailed:reason=memory overrun by writer 2022-10-01 13:51:00.323 [ 16] E HttpResponseCodes:intToHTTPResponseCode:code=0:Unknown HTTP response code. 2022-10-01 13:51:19.657 [ e] I AudioInputProcessor:Create audio attachment reader success:resolveKey=DEFAULT_RESOLVE_KEY,format=AUDIO_L16_RATE_16000_CHANNELS_1 2022-10-01 13:51:19.657 [ e] W MetricEventBuilder:addDataPointFailed:reason=invalidDataPoint 2022-10-01 13:51:19.658 [ e] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:51:19.659 [ e] I MessageRouter:onWakeConnectionRetry 2022-10-01 13:51:19.659 [ e] I MessageRouter:onWakeConnectionRetry:m_activeTransport=0x22823f0 2022-10-01 13:51:19.660 [ e] I HTTP2Transport:onWakeConnectionRetry:this=0x22823f0 ######################################

ALEXA STATE: LISTENING

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

2022-10-01 13:51:19.663 [ 7] I ContextManager:updateCapabilityState 2022-10-01 13:51:19.665 [ 7] I ContextManager:updateCapabilityState 2022-10-01 13:51:19.666 [ 7] I ContextManager:updateCapabilityState 2022-10-01 13:51:19.668 [ 7] I ContextManager:updateCapabilityState 2022-10-01 13:51:19.669 [ 7] I ContextManager:updateCapabilityState 2022-10-01 13:51:19.670 [ 7] I ContextManager:updateCapabilityState 2022-10-01 13:51:19.674 [ e] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=e0f24167-9c24-4a2c-bf6d-d481cb8e46aa,newValue=7069669d-92ef-47b8-8086-268fc515bd3e 2022-10-01 13:51:19.677 [ e] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:51:20.317 [ 10] W Channel:notifyActivitiesFailed::No Associated Activities Found #################################

ALEXA STATE: IDLE

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

2022-10-01 13:51:52.472 [ 4] I AudioInputProcessor:Create audio attachment reader success:resolveKey=DEFAULT_RESOLVE_KEY,format=AUDIO_L16_RATE_16000_CHANNELS_1 2022-10-01 13:51:52.472 [ 4] W MetricEventBuilder:addDataPointFailed:reason=invalidDataPoint 2022-10-01 13:51:52.473 [ 4] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:51:52.475 [ 4] I MessageRouter:onWakeConnectionRetry 2022-10-01 13:51:52.475 [ 4] I MessageRouter:onWakeConnectionRetry:m_activeTransport=0x22823f0 2022-10-01 13:51:52.475 [ 4] I HTTP2Transport:onWakeConnectionRetry:this=0x22823f0 ######################################

ALEXA STATE: LISTENING

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

2022-10-01 13:51:52.481 [ d] I ContextManager:updateCapabilityState 2022-10-01 13:51:52.482 [ d] I ContextManager:updateCapabilityState 2022-10-01 13:51:52.483 [ d] I ContextManager:updateCapabilityState 2022-10-01 13:51:52.483 [ d] I ContextManager:updateCapabilityState 2022-10-01 13:51:52.485 [ d] I ContextManager:updateCapabilityState 2022-10-01 13:51:52.486 [ d] I ContextManager:updateCapabilityState 2022-10-01 13:51:52.489 [ 4] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=7069669d-92ef-47b8-8086-268fc515bd3e,newValue=9af2981d-6bf3-4280-b311-de8e954849f8 2022-10-01 13:51:52.491 [ 4] I UUIDGeneration:low entropy on call to generate UUID:current entropy=32 2022-10-01 13:51:53.177 [ 9] W Channel:notifyActivitiesFailed::No Associated Activities Found #################################

ALEXA STATE: IDLE

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

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <x.y.z>

SDK v2.9.x

Tell us what hardware you're using:

Tell us about your OS (Type & version):

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Have you tried the same use case with AVS Device SDK SampleApp?

VaruPan commented 2 years ago

How are you interacting with your Pi?

  1. Are you having a physical keyboard connected to the Pi or are you controlling it through VNC?
  2. Can you share your SmartScreenSDK configuration with us?

There is a known problem using VNC, as VNC sends multiple keystrokes when holding a key. Try an onboard keyboard to check if that helps.

nomanho commented 2 years ago

Thanks for the comments. I'm using Raspberry Pi 4 and I'm using it remotely using MobaXterm's rdp. I'll try it using the keyboard and let you know the result.