bugranger - Bugs: bug #32047, Deletion of the directory ranger...

 
 

bug #32047: Deletion of the directory ranger is in causes a crash

Submitted by:  None
Submitted on:  Tue 04 Jan 2011 03:03:15 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 17 Sep 2011 01:46:41 AM UTC, comment #1:

Doesn't crash for me anymore.
Sorry for the delay for closing the bug, I must have forgotten.

Roman Z. <hut>
Project Administrator
Tue 04 Jan 2011 03:03:15 PM UTC, original submission:

Currently I'm running ranger with the --debug option because of https://bbs.archlinux.org/viewtopic.php?pid=872563#p872563 (which doesn't want to happen anymore...). I was rsyncing my phone and in ranger I was on the phone. Suddenly the phone was unmounted, so the directory ranger was in was suddenly deleted. That's when it crashed with the following output.

Exiting... (Quit)
Ranger version: 1.4.0, executed with python 3.1.3
Locale: en_US.UTF8
Current file: /media/PHONE CARD/music/karnivool - goliath.mp3
Traceback (most recent call last):
File "/usr/lib/python3.1/site-packages/ranger/core/main.py", line 85, in main
fm.loop()
File "/usr/lib/python3.1/site-packages/ranger/core/fm.py", line 198, in loop
ui.redraw()
File "/usr/lib/python3.1/site-packages/ranger/gui/ui.py", line 213, in redraw
self.draw()
File "/usr/lib/python3.1/site-packages/ranger/gui/ui.py", line 234, in draw
DisplayableContainer.draw(self)
File "/usr/lib/python3.1/site-packages/ranger/gui/displayable.py", line 268, in draw
displayable.draw()
File "/usr/lib/python3.1/site-packages/ranger/gui/widgets/statusbar.py", line 108, in draw
self._calc_bar()
File "/usr/lib/python3.1/site-packages/ranger/gui/widgets/statusbar.py", line 114, in _calc_bar
self._get_right_part(bar)
File "/usr/lib/python3.1/site-packages/ranger/gui/widgets/statusbar.py", line 241, in _get_right_part
target.mount_path), seperator='') + " free")
File "/usr/lib/python3.1/site-packages/ranger/core/environment.py", line 151, in get_free_space
stat = os.statvfs(path)
OSError: [Errno 2] No such file or directory: '/media/PHONE CARD'

I guess this is related to http://savannah.nongnu.org/bugs/?31735 but since I use ranger with python3 and my output is a bit different I chose to open a new bug report.

Greetings
Army

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hut (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 Sep 2011 01:50:36 AM UTChutOpen/ClosedOpen=>Closed
    Sat 17 Sep 2011 01:46:41 AM UTChutStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1