TV Rename 2.2.0b4 and 5 Crash on scan

MisterLas

03-05-2010 04:06:53

Hello,

First off, awesome product... been using it for 2 days and loved it.


But a problem started occurring this morning whenever I would scan a specific episode (does it for all episodes), after I would drag and drop the folder to "tag the season", and once I am done tagging all seasons, the "Scan Progress" window pops up, then TVRename crashes. I can see that the Media Library Check's green bar is completely full when it crashes, but it never does do the Search Locally.

I saw there was an update (I was using 2.2.0b4) and tried updating... no help. Tried uninstalling completely, then reinstalling... no help. Is there anyway to turn some sort of logging on? I was browsing the BUGS forum and saw a similar thread where you suspected the 255 char limit, and I am no where near that in my structure.

I never do full scans as I am using the My Shows to also remind me of stuff to watch, and my library is not that large yet.


Any ideas?

MisterLas

03-05-2010 04:12:29

Just to note...


I just tried moving the 2.1 folder in my AppData and let TVRename recreate everything (none of my data is there) and I added a show, scanned, and it worked just fine. Is there something screwy the XML files in my Appdata possibly? I didn't really customize yet, so losing that is not a problem, but losing all my TV shows that I inputted would suck.


Thx,
ML

DedTV

03-05-2010 07:46:31

I just tried moving the 2.1 folder in my AppData and let TVRename recreate everything (none of my data is there) and I added a show, scanned, and it worked just fine. Is there something screwy the XML files in my Appdata possibly?

Very likely. I do a lot of messing around with TV Rename and have broken the XML more times than I can count. :mrgreen:
I know editing XML in Wordpad or Notepad on Win 7 tends to sometimes change random characters to question marks for some reason. If something like that happened to one of your shows, the XML would still be valid so TV Rename would run, but it'd crash when you did a scan and came across an illegal character. Other things could cause the same effect.

If you know a little bit about code, You can make a copy of your Settings file and then open up the live one (use something like http://www.crimsoneditor.com/, not Notepad) and delete shows, reopen TV Rename and run scans until you narrow down which one(s) are causing the crash. Each <ShowItem> </ShowItem> pair is one show.
If it's not a show causing the problem but something else in the XML, you can delete your settings files and then copy the XML from a backup copy to the new settings file so you don't lose anything.

MisterLas

05-05-2010 04:03:25

I think I have discovered the problem... If I drag-n-drop a folder when doing a Scan <TVSHOWNAME>, it gets coded into the XML file in my appdata. If I then rename the folder, you do a scan again, and it crashes the program. Can a check be added there to prevent this?

I can then go edit the XML file and remove where the folder is coded, or correct it to the right folder, it works again.


Edit:
And I used CrimsonEditor (I never edited the XML before DLing it)... nice app. Thx.

Eliphion

11-05-2010 13:00:24

I am using b5 and I am experiencing the same problem: Any time I try a Scan, the program crashes. It's downloading the "Overview" information for every show I have, which it seems to do at the start of any scan, and halts while getting Eureka's information. However, just messing around, I did a Force Refresh on Eureka, and it started the overview downloading again, but that time it crashed on Star Trek Enterprise.

The thing is, I have about a hundred shows, and thousands of episodes, so I'm reluctant to dabble with any files manually. It took me days to get them all perfected and correct to my satisfaction in the database... I don't want to lose that! (Plus, I don't know anything about XML.)

I am generating the bug report while I type this, but it will take a while to generate because I'm including everything with it, including directory scans.

Any thoughts? I will update as I get new information.

Thanks and Very Best Regards,
Troy

(P.S. Agreed: Awesome product!!)

chronno

11-05-2010 23:32:48

I have the same exact problem with A7. I have about 115 shows and just over 10,000 episodes. Every once in a while it will just start crashing. Where it crashes is different every time it does. I don't edit the .xml files, I didn't even know they were there until it started crashing for the first time.

I've found that if I go into the C:\Documents and Settings\<user>\application data\tvrename\2.1 folder and rename (or delete) the TheTVDB.xml file (it'll be the big one) and then open TV rename it will still have all of my shows but in number form. Then I do a refresh and everything re-updates and the scans and daily updates work fine.

Is there an upper limit to how many shows or episodes should be in the program. I've found that if I only leave the shows I need to update in the database, it doesn't crash.

Eliphion

13-05-2010 09:31:02

It's working now. :D

Steve got back to me about my bug report within hours, and, among other things, suggested the following:

- Go into Options > Preferences and set the "parallel downloads" setting to 1. That way, when it crashes it will be definitely reporting the show that is definitely the one causing the problem.
- See where it crashes, and force-refresh that show, and see if it works OK.

I did this, discovered it was Doctor Who that was crashing me. This is the old show, which I only have set to scan to remind me of what episodes I'm missing. There aren't any new ones. So I turned off Missing Check and Rename Files for the show, and did the Force Refresh. It worked, no problem. So I went to do a full scan -- and the program crashed as soon as I pressed the button.

However, since then, the program has been running fine, no more crashes. (I waited a day before doing this update, because I wanted to see if the Overview download was working.) I even set the Doctor Who show back to Missing Check and Rename Files and scanned it, no problem. Whatever happened, it got corrected.

Many thanks to Steve for his quick help!!!

My Very Best Regards,
Troy

P.S. If anybody is experiencing the same problem and still looking for things to try, Steve also suggested this:

- Try doing a Tools > Flush Cache, to remove all local information about the shows. TVRename will then re-download everything from thetvdb when you next do a refresh or scan. Alternatively, exit TVRename, and delete the "TVDBCache.xml" file in the TVRename settings folder (c:\Documents and Settings\<Username>\Application Data\TVRename\2.1 on Windows XP).

But I did NOT try this... Luckily, I didn't have to. But maybe it will help someone else.

DedTV

15-05-2010 03:36:22

Probably the same issue me and a couple other people have had with TVDB.

viewtopic.php?f=3&t=689
viewtopic.php?f=7&t=697

Something in the data TVDB is sending sometimes gets garbled and TV Rename chokes on it when it happens. So far it's always sorted itself out before I got a chance to take a look and try and figure out what it's actually sending that TV Rename doesn't like.