Download On-demand assets gets failure at random
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- game-dev, mobile-dev
Hướng nghiên cứu
Start at AndroidAssetPacks.DownloadAssetPackAsync and the callBackFromDownloadAssetPack callback shown in the report. Review the Unity 2020.3.38f1 and Addressables 1.19.19 setup, then investigate the captured NetworkError data and the FAILED, UNKNOWN, and Canceled paths. Done means the intermittent failure is reproducible and its handling or cause is addressed, with the affected download behavior verified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We have begun facing an issue in PlayAssetDelivery using this Unity package that occurs at random.
We have added this feature to our LIVE build and now we are adding more packs to the PlayAssetDelivery.
Unity version : 2020.3.38f1 LTS
Addressable version : 1.19.19
The issue is that the On-demand assetpack is returning a FAILED state(not always) while we are trying to download(issue has been checked in both mobile data & Wi-fi). Once the download has failed we were unable to redownload the Asset.
We have to uninstall the game to solve this issue. PFA screenshot and code snippet for your reference.
Note: We have tried deleting the assetpack if the state has reached CANCELLED/FAILED/UNKNOWN, however this was unable to resolve the issue.
AndroidAssetPacks.DownloadAssetPackAsync(assetPackNames, callBackFromDownloadAssetPack);
public void callBackFromDownloadAssetPack(AndroidAssetPackInfo info)
{
Debug.Log("===callBackFromDownloadAssetPack called====" + info.status.ToString());
this.info = info;
if (info.status == AndroidAssetPackStatus.Downloading)
{
//Asset pack download completed. You can change the button state and proceed further actions.
}
else if (info.status == AndroidAssetPackStatus.Failed)
{
//Indicates that the device failed to download the Android asset pack.
//The asset pack download or transfer has failed.
Debug.Log("Failed to retrieve the state of asset pack:" + info.name);
Debug.Log("Failed to retrieve the state of asset pack info.error:" + info.error.ToString());
The info.error gives always NetworkError
deleteTheAssetPack(info.name);
AndroidAssetPacks.CancelAssetPackDownload(assetPackNames);
}
else if (info.status == AndroidAssetPackStatus.Unknown)
{
//Debug.Log("Asset pack " + info.name + " is unavailable for this application. This can occur if the app was not installed through Google Play.");
deleteTheAssetPack([info.name](http://info.name/));
AndroidAssetPacks.CancelAssetPackDownload(assetPackNames);
}
else if (info.status == AndroidAssetPackStatus.Canceled)
{
//Debug.Log("The Android asset pack download is canceled:" + [info.name](http://info.name/));
deleteTheAssetPack([info.name](http://info.name/));
AndroidAssetPacks.CancelAssetPackDownload(assetPackNames);
}
else if (info.status == AndroidAssetPackStatus.WaitingForWifi)
{
}
else if (info.status == AndroidAssetPackStatus.Transferring)
{
}
else if (info.status == AndroidAssetPackStatus.Completed)
{
Debug.Log("AndroidAssetPackStatus.Completed called:" + [info.name](http://info.name/));
}
}
Above two images were the LIVE users data who were affected in above case. First one is the reason of the failure and second one is the failure case. These data were pushed to Firebase and captured from it.
- Ngôn ngữ chính
- C#
- Star
- 1.5k
- Fork
- 303
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Unity-Technologies/Addressables-Sample
-
ODR doesn't seem to work anymoreĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Unity-Technologies/Addressables-Sample#98 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Unity-Technologies/Addressables-Sample#94 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
Unity-Technologies/Addressables-Sample#90 · 1 bình luận ·
Tất cả issue của Unity-Technologies/Addressables-Sample
Issue tương tự
-
:watch: Not Triaged dotnet-target-version
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
copilot documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
dotnet/dotnet-api-docs#13124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
BHoM/MidasCivil_Toolkit#441 ·