bugranger - Bugs: bug #47856, Crash on enter_bookmark

 
 

bug #47856: Crash on enter_bookmark

Submitter:  None
Submitted:  Thu 05 May 2016 03:57:19 PM UTC
   
 
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 05 May 2016 04:09:03 PM UTC, comment #1: 

It seems like the problem only occures when the --cmd option passed to ranger contains cd command. Here is the minimal example of the crash I've managed to produce:

ranger --cmd "cd /" --clean --debug

Runned like this, ranger crashes when draw_bookmarks is called.
Traceback: https://www.refheap.com/118733/raw

Anonymous
Thu 05 May 2016 03:57:19 PM UTC, original submission:  

When I start ranger with a command like this:

ranger --cmd "cd ~/downoads/1" --cmd "tab_new ~/downloads/2" --cmd "tab_new ~/downloads/3" --cmd "tab_new ~/downloads/4" --cmd "tab_new ~"

it crashes whenever I press 'gg' in order to select a bookmark.

Here is a relevant part of my rc.conf:

# Bookmarks
map gg<any>  enter_bookmark %any
map b<bg>    draw_bookmarks
map b<any>   set_bookmark %any
map ub<any>  unset_bookmark %any
copymap b<bg>  ub<bg> gg<bg>

Here is the trace:

ranger version: 1.6.1, executed with python 2.7.10
Locale: ru_RU.UTF-8
Current file: /home/me/audio
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ranger/core/main.py", line 133, in main
    fm.loop()
  File "/usr/lib/python2.7/site-packages/ranger/core/fm.py", line 310, in loop
    ui.redraw()
  File "/usr/lib/python2.7/site-packages/ranger/gui/ui.py", line 262, in redraw
    self.draw()
  File "/usr/lib/python2.7/site-packages/ranger/gui/ui.py", line 288, in draw
    DisplayableContainer.draw(self)
  File "/usr/lib/python2.7/site-packages/ranger/gui/displayable.py", line 246, in draw
    displayable.draw()
  File "/usr/lib/python2.7/site-packages/ranger/gui/widgets/browserview.py", line 102, in draw
    self._draw_bookmarks()
  File "/usr/lib/python2.7/site-packages/ranger/gui/widgets/browserview.py", line 204, in _draw_bookmarks
    string = " " + key + "   " + mark.path
AttributeError: 'NoneType' object has no attribute 'path'

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code