Skip to content

[C#]: 启动器调整大小无法启动 #3570

Description

@Mccvd365

检查项 / Checklist

  • 我已在 Issues 页面 中搜索,确认了这一 Bug 未被提交过 / I have searched the Issues page and confirmed that this bug has not been reported yet.
  • 我确认只是全部选中而没有仔细确认就直接提交了这个 Issue,并且同意这个 Issue 可以直接被关闭 / I confirm that I checked all boxes without carefully reading them, and agree that this issue may be closed directly.
  • 我确认正在使用当前更新分支的最新版 PCL CE,若不是,此 Issue 可能会被直接关闭(更新方式:启动器 设置-关于-软件更新 检查更新,或在 Releases 页面下载) / I confirm that I am using the latest PCL CE version on the current update channel. If not, this issue may be closed directly. To update, check for updates in Settings → About → Updates, or download the latest version from the Releases page.
  • 我确认会详细描述我所遇到的问题,并附上日志和截图,而不是随便填点东西敷衍了事 / I will describe the problem in detail, attach logs and screenshots, and avoid submitting vague or incomplete information.

描述 / Description

你好,PCLCE的开发成员们,我这里出现了一个非常严重的问题,他关乎于以后我是否还能使用PCLCE,起因是我在等朋友玩整合包的时候更改了启动器大小并将主色调设为暗色,在字体下拉界面中点击了最下面的四个点,突然他给我弹出了一大堆的弹窗,我只能关掉PCLCE再尝试重新启动PCLCE,可是每次启动都无法启动,弹出同一个报错弹窗,并且这个问题是穿透的,我尝试重新下载新的PCLCE,但是报了同一个错,我跑到PCL的文件里删掉了那个出错的文件,觉得他应该可以重新生成一个初始文件,并且确实成功生成了,可是还是报了错,因为网络问题无法导入报错弹窗,我就将内容打在下面吧,希望PCLCE开发团队能帮我解决这个棘手的问题,我现在只能用HMCL了,因为根本无法进入启动器,所以我没办法导出日志!只有这串报错信息,当然,最开始的报错信息占满了屏幕,我记得是System.ArgumentException高度必须为非负值,我并没有将它设置为非负值!求求你们帮帮我

重现步骤 / Steps to Reproduce

1、点击设置
2、进入个性化
3、将主题色设置为暗色
4、取消“锁定启动器大小”复选框
5、将启动器大小增大
6、点击启动器字体,在下拉菜单中点击六个点

日志与附件 / Logs & Attachments

PCLCE已经无法进入,无法获取日志,只有这个报错弹窗给的信息,令人惊讶的是,他的窗口标题竟然是“拷斤辊烫烫烫”!
Config Stor age Error Report
A exception was thrown while processing an access.
[Diagnostios Info]
Stor age Access: Get FileConfig5tor age017398306
(C\Users\Administrator\AppData\Roaming\PCLCE\config.v1 .. json)
I- Context: null
I- Key: (String) "UiDarkMode"
I-Value: (ColorMode) undefined
l PCL.Core.App,Configuration.Storage.Config5torage.Aocess[TKey, TValue](Storageflotion action, TKey& key,
I- Stacki
TValue& value, Ob, jeot argument
l=> PCL.Core.App.Configuration.Stor age.ConfigStorage,GetValue[T](String key, T& value, Ob, ject argument)
l=> PCL.Core.App.Configuration.ConfigItem[TValue].GetValue(Object argument)
l=> PCL.Core.Ape.ThemeConfigGroup.get_ColorModeO
l= PCL.Core.UI.Theme.ThemeService ._ IsDarkModeO
l= PCL.Core.UI.Theme.ThemeService. StartO
l=> PCL.Core.UI.Theme.ThemeService.StartAsyncO
l=> System.Runtime.Compiler Services.AsyncMethodBuilder Core.Start[TStateMachine](TStateMachines stateMachine)
=> System.Runtime.Compiler5ervices.AsgncTaskMethodBuilder.5tart[TStateMachine](TStateMachine& stateMachine)
[Exception Details]
System. Text.Json.JsonException: The J5ON value could not be converted to PCL.Core.App.ColorMode, Path: $ I
LineNumber: 01 BytePositionInLine: 5.
at System. Text.Json. ThrowHelper.ThrowJsonException(String message)
at System. Text.Json.Serialization.Converters,EnumConverter 1.Read Utf8Jsonfeader& reader, Type
typeToConvert, JsonSerializer Options options)
at System.Text.Json.Serialization.JsonConverter 1.TryRead(Utf8JsonReader& reader, Type typeToConvert,
JsonSerializerOptions options, ReadStack& state, T& value Boolean& isPopulatedValue)
at System. Text.Json.Serialization.JsonConverter 1.ReadCore(Utf8Jsonheader& reader, T& value,
JsonSerializer Options options, ReadStack& state
state)
at System.Text.Json.Serialization.Metadata.JsonTypeInfo 1.DeserializeCUtf8JsonReader& reader, ReadStack&
at System.Text.Json.Json5erializer.ReadFrom5pan[TValue](ReadOnly5pan 1 utf8Json, JsonTypeInfo 1
jsonTypeInfo, Nullable 1 actualByteCount)
at System.Text.Json.JsonSerializer.ReadFrom5pan[TValue](ReadOnly5pan 1 .json, JsonTypeInfo 1 .jsonTypeInfo)
at System.Text.Json.JsonSerializer.Deserialize[TValue](String, ison, JsonSerializerOptions options)
at PCL.Core.App.Configur ation.Stor age.JsonFileProvider.Get[T](String key)
at PCL.Core.App.Configuration.Storage.FileConfig5torage.OnAccess[TRey,TValue](Storagefotion action, TKey& key,
TValue& value, Ob ject argument?
at PCL.Core.App.Configur ation.Stor age.ConfigStorage.Aocess[TKey,TValue](Storagefotion action, TKey& key,
TValue& value, Ob ject argument)
都果你认为这是启动器的问题,请提交反馈,否则它可能永远都不会被解决!
寻在白志:设置+查看日志→导出全部日志

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    💬 需要复现问题需其他开发者或社区成员协助复现,以确认问题普遍性而非个别现象

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions