VRChatアップロード不可問題まとめ

ArgumentException: Illegal byte sequence encounted in the input.

ArgumentException: Illegal byte sequence encounted in the input.
Parameter name: string

原因は2つあり、両方試すのが望ましい。

SDKが旧バージョンの場合に発生

image

VRC SDKを最新バージョンに更新します。

デバイス名が英語でない場合に発生

image

image

CC

Unity Hub

Unity実行ファイル

ユーザー名

プロジェクトパス

デバイス名をすべて英語パスに変更し、ファイアウォールを許可すればよい

特にデバイス名が一番重要

デバイス名は

設定 > システム > 情報 > デバイス名

順番で入ったら存在する

アップロードを押した後、停止したまま動作しない場合

image

上記の「デバイス名が英語でない場合に発生」と同一の問題、該当項目を参照してください。

Images used for Actions & Moods are too large.

Images used for Actions & Moods are too large.

image

ExpressionsMenu アイコンの解像度を 256 以下に合わせると解決される

Error while saving Prefab

image

Error while saving Prefab: 'Assets/prefab-id-v1_avtr_.prefab'. You are trying to save a Prefab with a missing script. This is not allowed.
Please change the script or remove it from the GameObject 'Head'.
A UnityEditor.BuildPipeline:BuildAssetBundles (string UnityEditor.AssetBundleBuild[], UnityEditor.BuildAssetBundleOptions, UnityEditor.BuildTarget)
No AssetBundle has been set for this build.

ミシンコンポーネントが存在するからなのさ

image

全部探して消す

まともにアクティブになっているのにダメなとき

Encountered the following validation issues during build:
UnityEngine.Debug:LogError (object)
Your avatar is disabled in the scene hierarchy!
UnityEngine.Debug:LogError (object)

image

無アクティブにしてからもう一度アクティブにする

image

セレクトアバターももう一度選んでくれる

VRCExpressionsMenu uses a parameter that is not defined.

image

VRCExpressionsMenu uses a parameter that is not defined.

メニューにないパラメータが入っているからなのさ

こんな時は

image

image

こうやってメニューでパラメータ名を修正したらよい。

[Always] Attempted to load the data for an avatar we do not own, clearing blueprint ID

image

[Always] Attempted to load the data for an avatar we do not own, clearing blueprint ID

image

ApiErrorException: Exception of type 'VRC.SDKBase.Editor.Api.ApiErrorException' was thrown.

ブループリント特権問題

image

ブループリントを新しく作って解決した

Detachして新しくアップロードると終わり

UploadException: Failed to upload file

image

UploadException: Failed to upload file
Attempted to load the data for an avatar we do not own, clearing blueprint ID

もしくは

image

もしくは

image

ApiErrorException: Exception of type 'VRC.SDKBase.Editor.Api.ApiErrorException' was thrown.
Unauthorized, try logging out and in again
"Missing Credentials"
NullReferenceException: Object reference not set to an instance of an object

もしくは

image

Error fetching your uploaded avatars:
"Missing Credentials"
Could not fetch worlds, with error - "Missing Credentials"

全部同じ問題です。

最初のエラーメッセージだけを見ると、ブループリントの問題だと思われるかもしれない

だがブループリント問題ではない

そもそもブループリントを空の状態でアップロードしていたからだ

この問題はログイン認証キーの期限切れによるものだ だから、Unity 上の SDK でログアウトして再ログインすれば解決する。

その後、知人が追加でテストしたところ、Unity を再起動しても直るらしい で、最初は API 認証キーの期限切れだと思っていたが、実際はログイン認証キーの期限切れだったと分かった。

存在しないパラメーターがアップロードを妨げるとき

VRCExpressionsMenu uses a parameter that is not defined.
Parameter: XXX

image

画像のように、該当パラメーターが誤って割り当てられていると表示される。

image

しかし、どう探してもそのパラメーターはどこにも存在しない。

image

原因は、そのパラメーターが subParameters に隠れていること。 タイプを切り替えながら見つけ出し、削除すれば解決する。

VRCJunkCleanerを使用した解決

image

https://ahzkwid.booth.pm/items/5463945

一つ一つ探して削除するのが難しいなら、AhzkwidAvatarToolsのVRCJunkCleanerを使ってフォルダを指定し、Cleanボタンを押して消すこともできる。