njthomson / SrvSurvey

A new to help Commanders in planet based opperations
GNU General Public License v3.0
38 stars 1 forks source link

JsonReaderException "Invalid character after parsing property name. Expected ':' but got: t. Path 'Modules[11].Health', line 1, position 2146." at 20/02/2024 17:38:22 +00:00 #64

Closed Minecrafter8001 closed 8 months ago

Minecrafter8001 commented 9 months ago

What happened?

launched it while on the pad at a station

Version

1.1.0.44

Exception message

Invalid character after parsing property name. Expected ':' but got: t. Path 'Modules[11].Health', line 1, position 2146.

Exception stack

at Newtonsoft.Json.JsonTextReader.ParseProperty() at Newtonsoft.Json.JsonTextReader.ParseObject() at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren, Boolean writeDateConstructorAsDate, Boolean writeComments) at Newtonsoft.Json.Linq.JTokenWriter.WriteToken(JsonReader reader, Boolean writeChildren, Boolean writeDateConstructorAsDate, Boolean writeComments) at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren) at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateJToken(JsonReader reader, JsonContract contract) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) at SrvSurvey.JournalFile.parseNextEntry() at SrvSurvey.JournalFile.readEntry() at SrvSurvey.JournalFile.readEntries() at SrvSurvey.JournalFile..ctor(String filepath) at SrvSurvey.JournalFile.walkDeep(Int32 index, Boolean searchUp, Func2 func, Func2 finishWhen) at SrvSurvey.game.Game.initSystemData() at SrvSurvey.game.Game.initializeFromJournal(LoadGame loadEntry) at SrvSurvey.game.Game..ctor(String cmdr) at SrvSurvey.Main.newGame() at SrvSurvey.Main.b10_7() at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallbacks() --- End of stack trace from previous location --- at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at System.Windows.Forms.Control.Invoke(Action method) at SrvSurvey.Main.b10_2()

Relevant log output

17:38:17: SrvSurvey version: 1.1.0.44
17:38:17: New log file: C:\Users\ash\AppData\Roaming\SrvSurvey\SrvSurvey\1.1.0.0\logs\srvs-20240220_173817.txt
17:38:17: dataFolder: C:\Users\ash\AppData\Roaming\SrvSurvey\SrvSurvey\1.1.0.0
17:38:17: Removing old log file: C:\Users\ash\AppData\Roaming\SrvSurvey\SrvSurvey\1.1.0.0\logs\srvs-20240218_191609.txt
17:38:17: Loaded settings: {
  "preferredCommander": "minecrafter",
  "lastCommander": "minecrafter",
  "lastFid": "F7007067",
  "watchedJournalFolder": "C:\\Users\\ash\\Saved Games\\Frontier Developments\\Elite Dangerous\\",
  "hideJournalWriteTimer": false,
  "targetLatLong": {
    "lat": -51.2639,
    "long": 14.7291
  },
  "targetLatLongActive": false,
  "autoShowBioSummary": true,
  "autoShowBioPlot": true,
  "autoShowPlotFSS": true,
  "autoShowGuardianSummary": true,
  "autoShowRamTah": true,
  "autoShowPlotSysStatus": true,
  "skipGasGiantDSS": true,
  "skipRingsDSS": false,
  "skipLowValueDSS": true,
  "skipLowValueAmount": 1000000,
  "autoTrackCompBioScans": true,
  "skipAnalyzedCompBioScans": true,
  "autoRemoveTrackerOnSampling": true,
  "useExternalData": true,
  "autoLoadPriorScans": true,
  "skipPriorScansLowValue": true,
  "skipPriorScansLowValueAmount": 1000000,
  "showCanonnSignalsOnRadar": true,
  "useSmallCirclesWithCanonn": true,
  "hideMyOwnCanonnSignals": true,
  "focusGameOnStart": true,
  "focusGameOnMinimize": true,
  "enableGuardianSites": true,
  "enableEarlyGuardianStructures": false,
  "disableRuinsMeasurementGrid": false,
  "disableAerialAlignmentGrid": false,
  "hidePlottersFromCombatSuits": false,
  "hideOverlaysFromMouse": true,
  "autoShowFlightWarnings": true,
  "highGravityWarningLevel": 1.0,
  "plotterOpacity": 50.0,
  "formMainLocation": "2540, 361",
  "formLogsLocation": "0, 0, 0, 0",
  "formAllRuinsLocation": "0, 0, 0, 0",
  "formRuinsLocation": "0, 0, 0, 0",
  "formBeaconsLocation": "0, 0, 0, 0",
  "formMapEditor": "0, 0, 0, 0",
  "formRamTah": "0, 0, 0, 0",
  "mapShowNotes": true,
  "blinkTigger": 134217728,
  "blinkDuration": 3000,
  "processScreenshots": false,
  "addBannerToScreenshots": true,
  "deleteScreenshotOriginal": false,
  "useGuardianAerialScreenshotsFolder": true,
  "screenshotSourceFolder": "C:\\Users\\ash\\Pictures\\Frontier Developments\\Elite Dangerous",
  "screenshotTargetFolder": "C:\\Users\\ash\\Pictures\\Frontier Developments\\Elite Dangerous\\converted",
  "rotateAndTruncateAlphaAerialScreenshots": true,
  "screenshotBannerColor": "Yellow",
  "screenshotBannerLocalTime": false,
  "aerialAltAlpha": 1200.0,
  "aerialAltBeta": 1550.0,
  "aerialAltGamma": 1600.0,
  "idxGuardianPlotter": 0,
  "migratedAlphaSiteHeading": false,
  "inferColor": "102, 255, 255",
  "inferTolerance": 25,
  "inferThreshold": 0.002,
  "dataFolder1100": true,
  "pubCodexRef": 1,
  "pubDataSettlementTemplate": 23,
  "pubDataGuardian": 23,
  "processIdx": 0
}
17:38:17: Reading PlotterPositions from: C:\Users\ash\AppData\Roaming\SrvSurvey\SrvSurvey\1.1.0.0\plotters.json
17:38:17: Program.repositionPlotters: 0, rect{X=0,Y=0,Width=0,Height=0}
17:38:17: Watching folder: C:\Users\ash\Saved Games\Frontier Developments\Elite Dangerous\
17:38:17: Watching file: C:\Users\ash\AppData\Local\Frontier Developments\Elite Dangerous\Options\Graphics\DisplaySettings.xml
17:38:18: isMigrationValid: False, dataFolder1100: True
17:38:18: Using settlementTemplates.json from pubData
17:38:18: Reading settlementTemplates.json: C:\Users\ash\AppData\Roaming\SrvSurvey\SrvSurvey\1.1.0.0\pub\settlementTemplates.json
17:38:18: SiteTemplate.Imported 13 templates
17:38:18: updatePubData ...
17:38:18: pubDataSettlementTemplate - local: 23, remote: 23
17:38:18: pubDataGuardian - local: 23, remote: 23
17:38:18: updatePubData - complete
17:38:18: Loaded 512 ruins, 30 beacons, 155 structures
17:38:18: CodexRef init (reset: False) ...
17:38:18: loadCodexRef: reading codex/ref from disk
17:38:18: prepBioRef: reading bioRef from disk
17:38:18: loadOrganicRewards: reading organic rewards from disk
17:38:18: CodexRef init - complete
17:38:18: Main.newGame: has old game:False 
17:38:18: Game .ctor
17:38:18: CargoFile updated: 0 items in: Ship

17:38:18: Reading: Journal.2024-02-20T173524.01.log
17:38:18: Game.initializeFromJournal: BEGIN  (FID:), journals.Count:10
17:38:18: Loaded data from: C:\Users\ash\AppData\Roaming\SrvSurvey\SrvSurvey\1.1.0.0\F7007067-live.json
17:38:18: Game.initSystemData: rewind to last FSDJump or CarrierJump
17:38:18: Game.initSystemData: last location: 'Shinrarta Dezhra' (3932277478106)
17:38:18: Reading: Journal.2024-02-20T170634.01.log
17:38:18: Newtonsoft.Json.JsonReaderException: Invalid character after parsing property name. Expected ':' but got: t. Path 'Modules[11].Health', line 1, position 2146.
   at Newtonsoft.Json.JsonTextReader.ParseProperty()
   at Newtonsoft.Json.JsonTextReader.ParseObject()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren, Boolean writeDateConstructorAsDate, Boolean writeComments)
   at Newtonsoft.Json.Linq.JTokenWriter.WriteToken(JsonReader reader, Boolean writeChildren, Boolean writeDateConstructorAsDate, Boolean writeComments)
   at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren)
   at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateJToken(JsonReader reader, JsonContract contract)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
   at SrvSurvey.JournalFile.parseNextEntry()
   at SrvSurvey.JournalFile.readEntry()
   at SrvSurvey.JournalFile.readEntries()
   at SrvSurvey.JournalFile..ctor(String filepath)
   at SrvSurvey.JournalFile.walkDeep(Int32 index, Boolean searchUp, Func`2 func, Func`2 finishWhen)
   at SrvSurvey.game.Game.initSystemData()
   at SrvSurvey.game.Game.initializeFromJournal(LoadGame loadEntry)
   at SrvSurvey.game.Game..ctor(String cmdr)
   at SrvSurvey.Main.newGame()
   at SrvSurvey.Main.<Main_Load>b__10_7()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
--- End of stack trace from previous location ---
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at System.Windows.Forms.Control.Invoke(Action method)
   at SrvSurvey.Main.<Main_Load>b__10_2()
17:38:18: isFirewallProblem?
Newtonsoft.Json.JsonReaderException: Invalid character after parsing property name. Expected ':' but got: t. Path 'Modules[11].Health', line 1, position 2146.
   at Newtonsoft.Json.JsonTextReader.ParseProperty()
   at Newtonsoft.Json.JsonTextReader.ParseObject()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren, Boolean writeDateConstructorAsDate, Boolean writeComments)
   at Newtonsoft.Json.Linq.JTokenWriter.WriteToken(JsonReader reader, Boolean writeChildren, Boolean writeDateConstructorAsDate, Boolean writeComments)
   at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren)
   at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateJToken(JsonReader reader, JsonContract contract)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
   at SrvSurvey.JournalFile.parseNextEntry()
   at SrvSurvey.JournalFile.readEntry()
   at SrvSurvey.JournalFile.readEntries()
   at SrvSurvey.JournalFile..ctor(String filepath)
   at SrvSurvey.JournalFile.walkDeep(Int32 index, Boolean searchUp, Func`2 func, Func`2 finishWhen)
   at SrvSurvey.game.Game.initSystemData()
   at SrvSurvey.game.Game.initializeFromJournal(LoadGame loadEntry)
   at SrvSurvey.game.Game..ctor(String cmdr)
   at SrvSurvey.Main.newGame()
   at SrvSurvey.Main.<Main_Load>b__10_7()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
--- End of stack trace from previous location ---
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at System.Windows.Forms.Control.Invoke(Action method)
   at SrvSurvey.Main.<Main_Load>b__10_2()
17:38:22: Opening link: (length: 3634)
https://github.com:443/njthomson/SrvSurvey/issues/new?template=crash-report.yml&title=JsonReaderException+%22Invalid+character+after+parsing+property+name.+Expected+%27%3A%27+but+got%3A+t.+Path+%27Mod

17:38:34: Opening link: (length: 95)
C:\Users\ash\Saved Games\Frontier Developments\Elite Dangerous\Journal.2024-02-20T173524.01.log
njthomson commented 9 months ago

@Minecrafter8001 - this is an interesting one. Would mind sharing the journal file "Journal.2024-02-20T170634.01.log" ?

Minecrafter8001 commented 9 months ago

@njthomson sorry only just saw your message here: Journal.2024-02-20T170634.01.log

njthomson commented 8 months ago

Curiously, either by manual or some other tool manipulation or a bug in the game ... there is a malformed line:

{ "timestamp":"2024-02-20T16:12:46Z", "event":"Loadout", "Ship":"federation_dropship", "ShipID":27, "ShipName":"the personel musher", "ShipIdent":"MP-PVE", "HullValue":11847116, "ModulesValue":30507112, "HullHealth":1.000000, "UnladenMass":768.500000, "CargoCapacity":64, "MaxJumpRange":26.423204, "FuelCapacity":{ "Main":16.000000, "Reserve":0.830000 }, "Rebuy":2117715, "Modules":[ { "Slot":"LargeHardpoint1", "Item":"hpt_dumbfiremissilerack_fixed_large", "On":true, "Priority":0, "AmmoInClip":12, "AmmoInHopper":96, "Health":1.000000, "Value":896367 }, { "Slot":"MediumHardpoint1", "Item":"hpt_dumbfiremissilerack_fixed_medium_advanced", "On":true, "Priority":0, "AmmoInClip":12, "AmmoInHopper":64, "Health":1.000000, "Value":210951 }, { "Slot":"MediumHardpoint2", "Item":"hpt_dumbfiremissilerack_fixed_medium_advanced", "On":true, "Priority":0, "AmmoInClip":12, "AmmoInHopper":64, "Health":1.000000, "Value":210951 }, { "Slot":"MediumHardpoint3", "Item":"hpt_slugshot_gimbal_medium", "On":true, "Priority":0, "AmmoInClip":3, "AmmoInHopper":180, "Health":1.000000, "Value":384135 }, { "Slot":"MediumHardpoint4", "Item":"hpt_slugshot_gimbal_medium", "On":true, "Priority":0, "AmmoInClip":3, "AmmoInHopper":180, "Health":1.000000, "Value":384135 }, { "Slot":"TinyHardpoint1", "Item":"hpt_heatsinklauncher_turret_tiny", "On":true, "Priority":0, "AmmoInClip":1, "AmmoInHopper":2, "Health":1.000000, "Value":3072 }, { "Slot":"TinyHardpoint2", "Item":"hpt_shieldbooster_size0_class5", "On":true, "Priority":0, "Health":1.000000, "Value":246578 }, { "Slot":"TinyHardpoint3", "Item":"hpt_shieldbooster_size0_class5", "On":true, "Priority":0, "Health":1.000000, "Value":246578 }, { "Slot":"TinyHardpoint4", "Item":"hpt_shieldbooster_size0_class5", "On":true, "Priority":0, "Health":1.000000, "Value":246578 }, { "Slot":"Armour", "Item":"federation_dropship_armour_grade1", "On":true, "Priority":1, "Health":1.000000 }, { "Slot":"PowerPlant", "Item":"int_guardianpowerplant_size6", "On":true, "Priority":1, "Health":1.000000, "Value":13658566 }, { "Slot":"MainEngines", "Item":"int_engine_size6_class2", "On":true, "Priority":0, "Health":1.000000, "V{ "timestamp":"2024-02-20T17:22:57Z", "event":"SendText", "To":"starsystem", "Message":"my last two log files merged", "Sent":true }

I can make it that SrvSurvey ignores lines like this and carries on.

njthomson commented 8 months ago

Fixed in https://github.com/njthomson/SrvSurvey/releases/tag/1.1.0.55