Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 养成计划同步背包物品失败 #2232

Closed
4 tasks done
buhuishaujidexiaobai opened this issue Nov 24, 2024 · 4 comments
Closed
4 tasks done

[Bug]: 养成计划同步背包物品失败 #2232

buhuishaujidexiaobai opened this issue Nov 24, 2024 · 4 comments
Labels
area-Cultivation 养成计划

Comments

@buhuishaujidexiaobai
Copy link

检查清单

  • 我已阅读 Snap Hutao 文档中的常见问题常见程序异常,我的问题没有在文档中得到解答
  • 我知道文档站的导航栏中有搜索功能,且已经搜索过相关关键词
  • 我的问题不是已完成的问题也不是一个别人已发布的重复的问题

Windows 版本

22631.4249

Snap Hutao 版本

1.12.3.0

设备 ID

F15F6BD80BDBB312E74A494EA63A5419

问题分类

养成计算

发生了什么?

同步背包物品失败,显示武器不存在。Image
Image

你期望发生的行为?

修复该功能使其正常运作。

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@buhuishaujidexiaobai buhuishaujidexiaobai added the priority:none Priority not set label Nov 24, 2024
@dgp-bot
Copy link

dgp-bot bot commented Nov 24, 2024

device_id: F15F6BD80BDBB312E74A494EA63A5419

Exception Data:
----------------------------------------
Snap.Hutao.Web.Request.Builder.HttpContentSerializationException: The (de-)serialization failed because of an arbitrary error. This most likely happened, 
because an inner serializer failed to (de-)serialize the given data. 
See the inner exception for details (if available).
 ---> System.InvalidOperationException: This operation cannot be performed on a default instance of ImmutableArray<T>.  Consider initializing the array, or checking the ImmutableArray<T>.IsDefault property.
   at System.Collections.Immutable.ImmutableArray`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
   at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter`2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonCollectionConverter`2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Converters.ListOfTConverter`2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonCollectionConverter`2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.Serialize(Utf8JsonWriter writer, T& rootValue, Object rootValueBoxed)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.SerializeAsObject(Utf8JsonWriter writer, Object rootValue)
   at System.Text.Json.JsonSerializer.WriteBytesAsObject(Object value, JsonTypeInfo jsonTypeInfo)
   at Snap.Hutao.Web.Request.Builder.JsonHttpContentSerializer.SerializeUtf8(Object content, Type contentType) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonHttpContentSerializer.cs:line 61
   at Snap.Hutao.Web.Request.Builder.JsonHttpContentSerializer.SerializeCore(Object content, Type contentType, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonHttpContentSerializer.cs:line 43
   at Snap.Hutao.Web.Request.Builder.HttpContentSerializer.Serialize(Object content, Type contentType, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentSerializer.cs:line 26
   --- End of inner exception stack trace ---
   at Snap.Hutao.Web.Request.Builder.HttpContentSerializer.Serialize(Object content, Type contentType, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentSerializer.cs:line 30
   at Snap.Hutao.Web.Request.Builder.HttpContentSerializerExtension.Serialize[T](IHttpContentSerializer serializer, T content, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentSerializerExtension.cs:line 15
   at Snap.Hutao.Web.Request.Builder.HttpContentBuilderExtension.SetContent[TBuilder,TContent](TBuilder builder, IHttpContentSerializer serializer, TContent content, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentBuilderExtension.cs:line 79
   at Snap.Hutao.Web.Request.Builder.JsonBuilderExtension.SetJsonContent[TBuilder,TContent](TBuilder builder, TContent content, Encoding encoding, JsonHttpContentSerializer serializer) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonBuilderExtension.cs:line 14
   at Snap.Hutao.Web.Request.Builder.JsonBuilderExtension.PostJson[TBuilder,TContent](TBuilder builder, TContent content, Encoding encoding, JsonHttpContentSerializer serializer) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonBuilderExtension.cs:line 26
   at Snap.Hutao.Web.Hoyolab.Takumi.Event.Calculate.CalculateClient.BatchComputeAsync(UserAndUid userAndUid, List`1 deltas, Boolean syncInventory, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Takumi\Event\Calculate\CalculateClient.cs:line 41
   at Snap.Hutao.Web.Hoyolab.Takumi.Event.Calculate.CalculateClient.BatchComputeAsync(UserAndUid userAndUid, AvatarPromotionDelta delta, Boolean syncInventory, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Takumi\Event\Calculate\CalculateClient.cs:line 27
   at Snap.Hutao.ViewModel.Wiki.WikiWeaponViewModel.CultivateAsync(Weapon weapon) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\ViewModel\Wiki\WikiWeaponViewModel.cs:line 162
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
Snap.Hutao.Web.Request.Builder.HttpContentSerializationException: The (de-)serialization failed because of an arbitrary error. This most likely happened, 
because an inner serializer failed to (de-)serialize the given data. 
See the inner exception for details (if available).
 ---> System.InvalidOperationException: This operation cannot be performed on a default instance of ImmutableArray<T>.  Consider initializing the array, or checking the ImmutableArray<T>.IsDefault property.
   at System.Collections.Immutable.ImmutableArray`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
   at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter`2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonCollectionConverter`2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Converters.ListOfTConverter`2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonCollectionConverter`2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.Serialize(Utf8JsonWriter writer, T& rootValue, Object rootValueBoxed)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.SerializeAsObject(Utf8JsonWriter writer, Object rootValue)
   at System.Text.Json.JsonSerializer.WriteBytesAsObject(Object value, JsonTypeInfo jsonTypeInfo)
   at Snap.Hutao.Web.Request.Builder.JsonHttpContentSerializer.SerializeUtf8(Object content, Type contentType) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonHttpContentSerializer.cs:line 61
   at Snap.Hutao.Web.Request.Builder.JsonHttpContentSerializer.SerializeCore(Object content, Type contentType, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonHttpContentSerializer.cs:line 43
   at Snap.Hutao.Web.Request.Builder.HttpContentSerializer.Serialize(Object content, Type contentType, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentSerializer.cs:line 26
   --- End of inner exception stack trace ---
   at Snap.Hutao.Web.Request.Builder.HttpContentSerializer.Serialize(Object content, Type contentType, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentSerializer.cs:line 30
   at Snap.Hutao.Web.Request.Builder.HttpContentSerializerExtension.Serialize[T](IHttpContentSerializer serializer, T content, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentSerializerExtension.cs:line 15
   at Snap.Hutao.Web.Request.Builder.HttpContentBuilderExtension.SetContent[TBuilder,TContent](TBuilder builder, IHttpContentSerializer serializer, TContent content, Encoding encoding) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\HttpContentBuilderExtension.cs:line 79
   at Snap.Hutao.Web.Request.Builder.JsonBuilderExtension.SetJsonContent[TBuilder,TContent](TBuilder builder, TContent content, Encoding encoding, JsonHttpContentSerializer serializer) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonBuilderExtension.cs:line 14
   at Snap.Hutao.Web.Request.Builder.JsonBuilderExtension.PostJson[TBuilder,TContent](TBuilder builder, TContent content, Encoding encoding, JsonHttpContentSerializer serializer) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Request\Builder\JsonBuilderExtension.cs:line 26
   at Snap.Hutao.Web.Hoyolab.Takumi.Event.Calculate.CalculateClient.BatchComputeAsync(UserAndUid userAndUid, List`1 deltas, Boolean syncInventory, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Takumi\Event\Calculate\CalculateClient.cs:line 41
   at Snap.Hutao.Web.Hoyolab.Takumi.Event.Calculate.CalculateClient.BatchComputeAsync(UserAndUid userAndUid, AvatarPromotionDelta delta, Boolean syncInventory, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Takumi\Event\Calculate\CalculateClient.cs:line 27
   at Snap.Hutao.ViewModel.Wiki.WikiWeaponViewModel.CultivateAsync(Weapon weapon) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\ViewModel\Wiki\WikiWeaponViewModel.cs:line 162
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
System.IO.IOException: The process cannot access the file 'C:\Users\小白\AppData\Local\Packages\60568DGPStudio.SnapHutao_wbnnev551gwxy\LocalCache\ImageCache\426072DB8749E1364F0EB467317A8177A02867FB' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenRead(String path)
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.GetNextBackgroundImageAsync(BackgroundImage previous, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 49
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundCoreAsync(Boolean forceRefresh) in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 68
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundAsync() in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 57
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()

@dgp-bot dgp-bot bot added the area-Cultivation 养成计划 label Nov 24, 2024
@qhy040404
Copy link
Member

Duplicate of #2212

@qhy040404 qhy040404 marked this as a duplicate of #2212 Nov 24, 2024
@qhy040404 qhy040404 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2024
@dgp-bot dgp-bot bot removed the priority:none Priority not set label Nov 24, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Cultivation 养成计划
Projects
None yet
Development

No branches or pull requests

2 participants