PredatH0r / ChanSort

TV channel list editor for Samsung, LG, Sony, Hisense, Panasonic, Philips, Sharp, Toshiba and MANY more.
849 stars 115 forks source link

Sony KD-55XH9005 - checksum error / NullReference #208

Closed HartmutMichels closed 3 years ago

HartmutMichels commented 3 years ago

I'm unable to load the sdb.xml file. first I get a checksum error and if I change the checksum manually to the expected one, then an error is raising: System.NullReferenceExecption ... ChanSort.Ui.ReferenceListFromSetInput(SerializerBaseser) ... ChanSort.Ui.ReferenceListForm.b__6_0()

PredatH0r commented 3 years ago

Can you please send me your file (.xml and .bak) so I can take a look? Was that file fresh from the TV or was it edited with ChanSort or another editor before?

BadIDMan commented 3 years ago

The same issue. ChanSort.Loader.Sony.dll (Sony (sdb.xml)): Invalid checksum: expected 0x9fdea9de, calculated 0x5d86cebe

Steps to reproduce:

  1. Export channels list in Sony TV -> exported file is sdb.xml
  2. Use Sony Channel Editor (https://www.sony.co.uk/electronics/support/downloads/00016025) and sort channels -> save the file as sdb-new.xml
  3. Try to open sdb-new.xml file with ChanSort -> error as above.
  4. When checksum at the end of the file in section is replaced by calculated checksum then file can be open.
PredatH0r commented 3 years ago

Can you please upload / send me your sdb.xml file please? Sony has several different file format versions at and all the test files I currently have load fine.

@BadIDMan: Did you also try to open the "sdb.xml" that was exported from your TV directly with ChanSort? It could also be that the file got broken by the Sony editor. That editor does not check the files checksum when reading the file and thus silently ignores data erros which may occur when using broken USB sticks or NTFS/exFAT formatted sticks, which are not fully supported by Linux/Android.

BadIDMan commented 3 years ago

Yes, it is possible to open sdb.xml file generated by Sony TV but can't be open when it is edited by Sony Channel Editor. PS. Files already sent to you. Good luck in troubleshooting.

PredatH0r commented 3 years ago

Unfortunately I did not receive any files. My email address is horst@beham.biz. If the TV's original file can be opened with ChanSort, but a file modified with the Sony Editor cannot because of a bad checksum, then it's most likely a problem in the Sony Editor that writes wrong checksums.

You can try and import the Sony-Editor modified list in your TV. If the checksum is really wrong, the TV will reject it. You can also try to edit your original TV's export with ChanSort only and import it back to the TV. If it accepts it, ChanSort does calculate the checksums correctly.

PredatH0r commented 3 years ago

The problem is now fixed in this update: https://github.com/PredatH0r/ChanSort/releases/tag/v2021-02-09