[gpodder-devel] Bug while downloading a podcast without an audio file

  • From: z0idberg at gmx.de (Gerrit Sangel)
  • Date: Fri, 6 Apr 2007 23:53:38 +0200

Hello,

Am Freitag 06 April 2007 19:13 schrieb Thomas Perl:
> Hello, Gerrit!
> > But the main problem occurs with other podcasts then. gpodder starts
> > downloading them and as soon as they reach 100%, the progress bar
> > jumps back to 0% and nothing happens. Sometimes I also can't use the
> > "quit" button than any more.
> > If I restart gpodder, it happens again, and I can't download any new
> > episodes. It only worked again when I deleted the bad podcast.
>
> Can you please enable wget log output by removing the "#" in the line
>
>              #log( 'wget> %s', msg)
>
> in libwget.py and then run "make test" in your working copy and send me
> the console output of gpodder when this error occurs? Can this error be
> reliably reproduced? Does is happen on specific podcasts, but not on
> others?

The last lines of the output are (sorry if some things are in German, but i 
think that won't be a problem ;)):

--------
Episode "Zur lage der Nation" is newer.
Command: 
wget --timeout=120 --continue --tries=inf --output-document="/home/gerr
it/gpodder-downloads/620255469665b2e6f1e0ef2fe3349872/.tmp-d41d8cd98f00b204e9800
998ecf8427e" ""
wget> : Nicht unterst?tztes Schema.
wget>
wget>
wget>
wget>
[several lines the same...]
wget>
deleteFilename: 
/home/gerrit/gpodder-downloads/620255469665b2e6f1e0ef2fe3349872/                
                                           .tmp-d41d8cd98f00b204e9800998ecf8427e
Player found: VLC media player (/usr/share/applications/vlc.desktop)
Player found: Democracy TV (/usr/share/applications/democracyplayer.desktop)
Player found: Amarok (/usr/share/applications/kde/amarok.desktop)
Player found: Kaffeine (/usr/share/applications/kde/kaffeine.desktop)
Stale download directory found: 620255469665b2e6f1e0ef2fe3349872
Successfully 
removed /home/gerrit/gpodder-downloads/620255469665b2e6f1e0ef2fe334             
                                              
9872.
---------------

That was just when I had no other podcast to download in the queue. If I have 
another one, he prints an incredible amount of this "wget>" line but 
afterwards starts downloading the other podcast. 

After he has finished downloading, these errors occur:

-----------
wget> 36900K .......... .......... .......... .......... .......... 99%  121K
wget> 36950K .......... .......... .......... .......... .......... 99%  121K
wget> 37000K .......... .......... ........                        100%  119K
Error happened during moving tempfile :/
Exception in thread Thread-10:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/gerrit/programmieren/svn/gpodder/src/gpodder/libwget.py", line 
122, in thread_function
    move( self.tempname, self.filename)
  File "/usr/lib/python2.4/shutil.py", line 193, in move
    copy2(src,dst)
  File "/usr/lib/python2.4/shutil.py", line 92, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.4/shutil.py", line 47, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 
u'/home/gerrit/gpodder-downloads/b23bc08ab84d6cdd33544347fa1133b1/.tmp-f5a2fdcdf66eb969d6d2438ef678cbbb.mp3'
---------

If I try to klick on "Close", this is printed in the console:

-------
Traceback (most recent call last):
  File "/home/gerrit/programmieren/svn/gpodder/src/gpodder/gpodder.py", line 
532, in close_gpodder
    self.download_status_manager.cancelAll()
  File "/home/gerrit/programmieren/svn/gpodder/src/gpodder/libwget.py", line 
242, in cancelAll
    self.status_list[element]['thread'].cancel()
  File "/home/gerrit/programmieren/svn/gpodder/src/gpodder/libwget.py", line 
151, in cancel
    kill( self.pid, signal.SIGKILL)
OSError: [Errno 3] Kein passender Prozess gefunden
-----------

I have to use the X from the window manager then. The window disappears, but 
the last error is repeated and it seems the application is still running (but 
the window is closed). I have to kill it with Ctrl+C, then. 

That was with version 0.9.1. 
And if I start the latest svn version, gpodder wants to download the episodes 
again (so as if gpodder never downloaded them), but does not start. There are 
once again these "wget>" lines and then theres just:

---------
wget> 
/home/gerrit/gpodder-downloads/b23bc08ab84d6cdd33544347fa1133b1/.tmp-f5a2fdcdf66
deleteFilename: 
/home/gerrit/gpodder-downloads/b23bc08ab84d6cdd33544347fa1133b1/.tmp-f5a2fdcdf66eb969d6d2438ef678cbbb.mp3
wget> 
/home/gerrit/gpodder-downloads/b23bc08ab84d6cdd33544347fa1133b1/.tmp-a45f5669bac
deleteFilename: 
/home/gerrit/gpodder-downloads/b23bc08ab84d6cdd33544347fa1133b1/.tmp-a45f5669bacc197e4d347fe82c53f6f9.mp3
deleteFilename: 
/home/gerrit/gpodder-downloads/b23bc08ab84d6cdd33544347fa1133b1/.tmp-f41ab4ba74081bb287772b53c3d0f735.mp3
------------

If I download the episode manually, it starts again (I didn't download it 
completely again, my bandwidth is not so large). 

But maybe this only occurs because I have 2 svn versions running the same 
time, I don't know. 

Thanks,
Gerrit


Other related posts: