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

Launch Error causing freezing, making program unusable: System.Text.Json.JsonException #552

Open
nsde opened this issue Nov 7, 2023 · 6 comments

Comments

@nsde
Copy link

nsde commented Nov 7, 2023

Windows 10 x64 | BCU v.5.6 & v5.7 x64 [SETUP] | AMD CPU

How to reproduce

  • Install non-portable version
  • I have used prior versions of the software (pretty sure I have updated the software without any issues before)
  • I updated to v5.7 and the error occurred

Workaround

  • v5.6 PORTABLE seems to work fine

File:
BCUninstaller.dll [5.7.0.0] - This error also occurs in version 5.6

Exception
'C' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.

Target Site
Void ReThrowWithPath(System.Text.Json.ReadStack ByRef, System.Text.Json.JsonReaderException) @ System.Text.Json.ThrowHelper

NBug: 1.2.0.0
CLR: 6.0.22

image
image

@nsde
Copy link
Author

nsde commented Nov 7, 2023

It seems like this the second popup appears after uninstalling a software using v5.6 PORTABLE, but BCU continues working just fine.

@Klocman
Copy link
Owner

Klocman commented Nov 8, 2023

Did you try a clean install of v5.7? Does it show the same error?

@nsde
Copy link
Author

nsde commented Nov 9, 2023

Did you try a clean install of v5.7? Does it show the same error?

Oh, do you mean removing all old installation files or changing the installation directory?

@Klocman
Copy link
Owner

Klocman commented Nov 9, 2023

Get the portable version and extract it to a completely new directory.

@hsopen
Copy link

hsopen commented Feb 23, 2024

(This is Google Translate) Have you solved it? I also had a similar error. Finally, I ran scoop export and found that there was a problem with one of the buckets. I deleted the bucket and then re-imported it, and the problem was solved.

@PabloGrok
Copy link

PabloGrok commented Apr 11, 2024

I'm having this issue as well. Here's the copied error text:

System.Text.Json.JsonException
'G' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
   at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable`1 actualByteCount)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 json, JsonTypeInfo jsonTypeInfo)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonTypeInfo`1 jsonTypeInfo)
   at UninstallTools.Factory.ScoopFactory.GetUninstallerEntries(ListGenerationCallback progressCallback)
   at UninstallTools.Factory.ApplicationUninstallerFactory.GetMiscUninstallerEntries(ListGenerationCallback progressCallback)

Inner: 
System.Text.Json.JsonReaderException
'G' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)
   at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.Utf8JsonReader.Read()
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)

I tried running the portable version from a different directory and the result is the same. Please let me know if I can do anything to provide more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants