You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
Hi @xurenjun , do you get this when you are running the Sample app? Can you tell the specific operation you are doing so that we can reproduce the issue?
Hi @xurenjun , this has been observed and it will be resolved in future release. Please refer to #153 and the solution there. Below is the snippet of the temporary solution from #153:
It looks like the crash is occurring because m_playlistParsedPromise in MediaPlayer/URLSource is being set twice. In MediaPlayer/include/UrlSource.h, could you add a boolean flag that indicates whether a callback has been received, as well as a mutex? For example, bool m_hasReceivedAPlaylistCallback and std::mutex m_mutex. Then in URLSource's constructor, initialize m_hasReceivedAPlaylistCallback to false. Finally, in UrlSource::onPlaylistParsed, you could add something like the following:
std::lock_guardstd::mutex lock{m_mutex};
if (!m_hasReceivedAPlaylistCallback) {
m_hasReceivedAPlaylistCallback = true;
m_playlistParsedPromise.set_value(urls);
}
hi all:
Above the program during normal operation. (Version 1.0.3 alexa-client-sdk)
err log:
terminate called after throwing an instance of 'std::future_error'
what(): Promise already satisfied
What is the reason?
The text was updated successfully, but these errors were encountered: