Post-processing lots of comics crash

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
Offspring
Posts: 271
Joined: Fri Jan 02, 2015 3:26 am

Post-processing lots of comics crash

Post by Offspring »

I've seen this happen quite often over the past few days, and I finally looked at the logs to try and figure out what's going on. Seems that python crashes while trying to post-process a bunch of comics, gets stuck and I have to manually kill the process to continue it going. My setup is to go from SABnzbd->autoProcessComics.py->Mylar->folder. The files end up in the folder usually, but it blocks everything else in the queue. This is the exception that I keep seeing, but it keeps popping up on different files that have already been post-processed and exist in said folder:

Code: Select all

29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] Thunderbolts - watchlist match on : D:\Newsgroups\Comics\Marvel\Thunderbolts (2006)\Thunderbolts 107 (2006).cbz
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] cchk is : Thunderbolts
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] we should remove 0 characters
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] nonocount [0] cchk [Thunderbolts] length [12]
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] final jtd_len to prune [12]
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] before title removed from FILENAME [Thunderbolts 107 (2006).cbz]
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] after title removed from FILENAME [ 107 (2006).cbz]
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] creating just the digits using SUBNAME, pruning first [12] chars from [Thunderbolts 107]
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] after title removed from SUBNAME [107]
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] JUSTTHEDIGITS [107]
29-Jan-2015 07:35:37 - DEBUG   :: Post-Processing : [FILECHECKER] final justthedigits [107]
29-Jan-2015 07:35:37 - ERROR   :: Post-Processing : Uncaught exception: Traceback (most recent call last):
  File "C:\Users\Offspring\Downloads\mylar\mylar\logger.py", line 159, in new_run
    old_run(*args, **kwargs)
  File "C:\Python27\lib\threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "C:\Users\Offspring\Downloads\mylar\mylar\PostProcessor.py", line 570, in Process
    return self.Process_next(comicid,issueid,issuenumOG)
  File "C:\Users\Offspring\Downloads\mylar\mylar\PostProcessor.py", line 1024, in Process_next
    updater.forceRescan(comicid,module=module)
  File "C:\Users\Offspring\Downloads\mylar\mylar\updater.py", line 625, in forceRescan
    tmpval = filechecker.listFiles(dir=rescan['ComicLocation'], watchcomic=rescan['ComicName'], Publisher=rescan['ComicPublisher'], AlternateSearch=altnames)
  File "C:\Users\Offspring\Downloads\mylar\mylar\filechecker.py", line 103, in listFiles
    print item
IOError: [Errno 9] Bad file descriptor
Full log is here: https://www.dropbox.com/s/fv0kbafn3el5d ... r.log?dl=0
User avatar
evilhero
Site Admin
Posts: 2904
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Post-processing lots of comics crash

Post by evilhero »

Ugh that stupid print.. You can just comment it out, or even delete it entirely (I'll remove it in next commit, just can't get to it right atm). This was also logged on github just a few days ago.
Post Reply