amazon-archives / aws-sdk-unity

ARCHIVED: The aws sdk for unity is now distributed as a part of aws sdk for dotnet:
https://github.com/aws/aws-sdk-net
Other
105 stars 43 forks source link

OnSyncFailure not returned on main thread? #124

Closed antilunchbox closed 8 years ago

antilunchbox commented 8 years ago

OnSyncFailure I get main thread complains, but OnSyncSuccess the same calls are totally fine.

johnnyhoffman commented 8 years ago

Hi, can you post the error message you are receiving here?

antilunchbox commented 8 years ago

I don't get sync failure all the time, but it's definitely: "get_isDebugBuild can only be called from the main thread"

Decavoid commented 8 years ago

I use UnityRequestQueue.Instance.ExecuteOnMainThread(action) as a workaround.

johnnyhoffman commented 8 years ago

It makes sense that OnSyncFailure and OnSyncSuccess should be called on the main thread, as is currently not always the case. We will incorporate that into future releases, but for now using UnityRequestQueue.Instance.ExecuteOnMainThread as @Andreyul mentions is an appropriate workaround.

karthiksaligrama commented 8 years ago

Fixed in version 3 for aws sdk for unity. If you continue to face problems please raise a new issue on our dotnet sdk repository