Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Download On-demand assets gets failure at random

オープン
#87 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, unity

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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/));
    }
}

image (11)
image (12)

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.

主要言語
C#
スター
1.5k
フォーク
303
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Unity-Technologies/Addressables-Sample のほかの issue

Unity-Technologies/Addressables-Sample の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。