Unexpected end of file has occurred.

238 views
Skip to first unread message

nks

unread,
Oct 30, 2021, 2:17:24 PM10/30/21
to TV Rename
Hello All

I been getting this error for last 2 years or so.

Unexpected end of file has occurred. The following elements are not closed: Overview, episode, data. Line 1824105, position 15.

The line and position can vary...
I was trying to be patient and was waiting for a new version that finally might fix it... but still nothing.

When it happens, i pick an oder version of local cache and evently I might find one that works, then I add new shows, rename a few, and next time I open TV rename is rinse and repeat. 

I just upgraded from 3.3.1 to 4.4.1, and same thing again.

Screenshot 2021-10-30 131629.png

Sparky53

unread,
Oct 31, 2021, 11:58:26 AM10/31/21
to TV Rename
Is there anything in the logs?

Could be because you care closing TV Rename half way through saving? or running out of disk space?

nks

unread,
Nov 2, 2021, 11:01:59 AM11/2/21
to TV Rename
Where do I check the logs?

As far as closing before its done saving, I don't believe so. I click save, then program becomes "busy" and once program is responsive again then I close it. If saving could be causing it, maybe there should be some type of dialog box that says "saving"

Disk space shouldn't be an issue I have 2TB nvme.

nks

unread,
Nov 2, 2021, 11:08:06 AM11/2/21
to TV Rename
just happened again :(

Screenshot 2021-11-02 100710.png

On Sunday, October 31, 2021 at 10:58:26 AM UTC-5 Sparky53 wrote:

Sparky53

unread,
Nov 2, 2021, 11:11:53 AM11/2/21
to TV Rename
can you privately send me the tvdb xml file and I'll take a look?

Sparky53

unread,
Nov 2, 2021, 11:12:38 AM11/2/21
to TV Rename

Bruce MacPherson

unread,
Nov 28, 2021, 7:32:35 PM11/28/21
to TV Rename
Sparky,

I'm having this issue too. I will re-install, do a batch add. Save. And then minimize the program so it runs in the background. Upon reboot, the Recover window opens and I cannot proceed past this point.

TVRename.log

Sparky53

unread,
Nov 28, 2021, 8:19:18 PM11/28/21
to TV Rename

Try deleting  C:\Users\Plex\AppData\Roaming\TVRename\TVRename\2.1\TheTVDB.xml and trying again ( it will redownload it)

nks

unread,
Dec 20, 2021, 6:51:43 PM12/20/21
to TV Rename
I just updated to 4.5.3 still the same issue.. :(

Sparky53

unread,
Dec 20, 2021, 7:17:41 PM12/20/21
to TV Rename
Something is going wrong saving the file. Have you looked in the logs?


If the issue is always with TheTVBD.xml then you can just delete that file and TV Rename will redownload the information on the next scan

nks

unread,
Apr 29, 2022, 12:20:03 PM4/29/22
to TV Rename
still the same error in 4.6.1....

here is the log
2022-04-29 11:16:00|INFO| TV Rename 4.6.1 started with args:  
2022-04-29 11:16:00|INFO| Copyright (C) 2022 TV Rename
2022-04-29 11:16:00|INFO| This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions
2022-04-29 11:16:00|INFO| Starting new instance
2022-04-29 11:16:00|INFO| IE Version 11 is identified
2022-04-29 11:16:00|INFO| Loading Settings from C:\Users\NeKroSoft13\AppData\Roaming\TVRename\TVRename\2.1\TVRenameSettings.xml
2022-04-29 11:16:01|WARN| Trying to add tv: (The TVDB) TVDB:83099 TMDB:-1 TVMaze:-1 (,,) [Tess of the D'Urbervilles (2008)], but we already have tv: (Library Default) TVDB:83099 TMDB:-1 TVMaze:-1 (,,) [Tess of the D'Urbervilles (2008)]
2022-04-29 11:16:01|WARN| Trying to add tv: (The TVDB) TVDB:298156 TMDB:-1 TVMaze:-1 (,,) [Con Man], but we already have tv: (Library Default) TVDB:298156 TMDB:-1 TVMaze:-1 (,,) [Con Man]
2022-04-29 11:16:06|INFO| Assumed we have updates until System is up to date from: 0 to 0. ie 12/31/1969 18:00:00 to 12/31/1969 18:00:00
2022-04-29 11:16:06|INFO| Loading Cache from: C:\Users\NeKroSoft13\AppData\Roaming\TVRename\TVRename\2.1\TheTVDB.xml
2022-04-29 11:16:06|WARN| Problem on Startup loading File System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: GuestStars, Episode, Episodes, Series, Data. Line 263651, position 40.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
   at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)
   at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XElement.Load(String uri, LoadOptions options)
   at TVRename.CachePersistor.LoadMovieCache[T](FileInfo loadFrom, T cache)
2022-04-29 11:16:06|INFO| Loading Cache from: C:\Users\NeKroSoft13\AppData\Roaming\TVRename\TVRename\2.1\TheTVDB.xml
2022-04-29 11:16:06|WARN| Problem on Startup loading File System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: GuestStars, Episode, Episodes, Series, Data. Line 263651, position 40.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
   at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)
   at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XElement.Load(String uri, LoadOptions options)
   at TVRename.CachePersistor.LoadTvCache[T](FileInfo loadFrom, T cache)
2022-04-29 11:16:06|INFO| Loading Cache from: C:\Users\NeKroSoft13\AppData\Roaming\TVRename\TVRename\2.1\TVmaze.xml
2022-04-29 11:16:06|INFO| Loading Cache from: C:\Users\NeKroSoft13\AppData\Roaming\TVRename\TVRename\2.1\TMDB.xml
2022-04-29 11:16:06|INFO| Loaded file with updates until 2/25/2022 16:19:25
2022-04-29 11:16:06|INFO| Loading Cache from: C:\Users\NeKroSoft13\AppData\Roaming\TVRename\TVRename\2.1\TMDB.xml
2022-04-29 11:16:06|INFO| Loaded file with updates until 2/25/2022 16:19:25
2022-04-29 11:16:11|ERROR| User requested no recovery
2022-04-29 11:16:11|WARN| USER REQUESTED End: Application exiting with error 

Sparky53

unread,
Apr 29, 2022, 9:44:21 PM4/29/22
to TV Rename
Delete  C:\Users\NeKroSoft13\AppData\Roaming\TVRename\TVRename\2.1\TheTVDB.xml

Then when app opens do a 'Force Refresh All' from the Tools menu and wait patiently

Hope that helps

Sparky53

unread,
Apr 29, 2022, 9:46:56 PM4/29/22
to TV Rename
If they work OK for a while then keep coming back then there is something that is killing off TV Rename while it is half way through saving the file.

AppData\Roaming\TVRename\TVRename\2.1\TheTVDB.xml

can always be safely removed - TV Rename will re-download what it needs from the source when it opens up again.

Cheers

nks

unread,
Sep 10, 2022, 7:43:12 PM9/10/22
to TV Rename
4.7 the error still occurs.

nks

unread,
Sep 10, 2022, 7:55:13 PM9/10/22
to TV Rename
I just found out that there is 4.8 beta.

4.8 beta for first time in 3 years doesn't have that error... hopefully it stays that way

Sparky53

unread,
Sep 12, 2022, 9:46:17 PM9/12/22
to TV Rename
Fingers crossed. Generally this error is because TV Rename was force closed before it had chance to save all its data though
Reply all
Reply to author
Forward
0 new messages