{"action":"created","issue":{"url":"https://api.github.com/repos/ranger/ranger/issues/859","repository_url":"https://api.github.com/repos/ranger/ranger","labels_url":"https://api.github.com/repos/ranger/ranger/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/ranger/ranger/issues/859/comments","events_url":"https://api.github.com/repos/ranger/ranger/issues/859/events","html_url":"https://github.com/ranger/ranger/issues/859","id":224442013,"number":859,"title":"ranger won't refresh preview column when previewing images and files","user":{"login":"x4121","id":516123,"avatar_url":"https://avatars0.githubusercontent.com/u/516123?v=4","gravatar_id":"","url":"https://api.github.com/users/x4121","html_url":"https://github.com/x4121","followers_url":"https://api.github.com/users/x4121/followers","following_url":"https://api.github.com/users/x4121/following{/other_user}","gists_url":"https://api.github.com/users/x4121/gists{/gist_id}","starred_url":"https://api.github.com/users/x4121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x4121/subscriptions","organizations_url":"https://api.github.com/users/x4121/orgs","repos_url":"https://api.github.com/users/x4121/repos","events_url":"https://api.github.com/users/x4121/events{/privacy}","received_events_url":"https://api.github.com/users/x4121/received_events","type":"User","site_admin":false},"labels":[{"id":22402,"url":"https://api.github.com/repos/ranger/ranger/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":372166402,"url":"https://api.github.com/repos/ranger/ranger/labels/image-preview","name":"image-preview","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-26T11:55:38Z","updated_at":"2018-05-12T10:39:55Z","closed_at":null,"author_association":"NONE","body":"Similar to #811, I get some strange effects when previewing images.\r\nBug stays even after deleting old ranger version (installed with apt) and building new version from current master.\r\nDeleted `~/.config/ranger` directory, ran `ranger --copy-config all` and changed `preview_images` to true.\r\n\r\n\r\n\r\n#### ISSUE TYPE\r\n- Bug report\r\n\r\n#### RUNTIME ENVIRONMENT\r\n- Operating system and version: Ubuntu-Gnome 17.04\r\n- Terminal emulator and version: konsole 16.12.3\r\n- Python version: Python 3.5.3\r\n- Ranger version/commit: ranger-master 1.9.0b5\r\n- Locale: en_US.UTF-8\r\n\r\n#### EXPECTED BEHAVIOR\r\n- image preview redraws over previous images\r\n- image preview \"clears\" after closing ranger\r\n\r\n\r\n#### CURRENT BEHAVIOR\r\n- some images are cropped\r\n- small images are drawn over previous images\r\n- image parts stay after closing ranger if terminal contains long texts\r\n\r\n\r\n#### STEPS TO REPRODUCE\r\n(see video)\r\n\r\n#### TRACEBACK<!-- For crashes -->\r\n<!-- Run ranger in debug mode -->\r\n<!-- Paste between quotes -->\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/ranger\", line 41, in <module>\r\n    sys.exit(ranger.main())  # pylint: disable=no-member\r\n  File \"/usr/local/lib/python3.5/dist-packages/ranger/core/main.py\", line 222, in main\r\n    fm.ui.destroy()\r\n  File \"/usr/local/lib/python3.5/dist-packages/ranger/gui/ui.py\", line 171, in destroy\r\n    DisplayableContainer.destroy(self)\r\n  File \"/usr/local/lib/python3.5/dist-packages/ranger/gui/displayable.py\", line 291, in destroy\r\n    displayable.destroy()\r\n  File \"/usr/local/lib/python3.5/dist-packages/ranger/gui/displayable.py\", line 291, in destroy\r\n    displayable.destroy()\r\n  File \"/usr/local/lib/python3.5/dist-packages/ranger/gui/widgets/pager.py\", line 71, in destroy\r\n    self.clear_image(force=True)\r\n  File \"/usr/local/lib/python3.5/dist-packages/ranger/gui/widgets/pager.py\", line 60, in clear_image\r\n    self.fm.image_displayer.clear(self.x, self.y, self.wid, self.hei)\r\n  File \"/usr/local/lib/python3.5/dist-packages/ranger/ext/img_display.py\", line 146, in clear\r\n    self.process.stdin.flush()\r\nBrokenPipeError: [Errno 32] Broken pipe\r\n\r\n```\r\n\r\n#### IMAGES / VIDEOS\r\n![ranger](https://cloud.githubusercontent.com/assets/516123/25432614/6da27956-2a85-11e7-8edb-afb4c389c7b8.gif)"},"comment":{"url":"https://api.github.com/repos/ranger/ranger/issues/comments/388546217","html_url":"https://github.com/ranger/ranger/issues/859#issuecomment-388546217","issue_url":"https://api.github.com/repos/ranger/ranger/issues/859","id":388546217,"user":{"login":"AlexK-IL","id":14129135,"avatar_url":"https://avatars0.githubusercontent.com/u/14129135?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexK-IL","html_url":"https://github.com/AlexK-IL","followers_url":"https://api.github.com/users/AlexK-IL/followers","following_url":"https://api.github.com/users/AlexK-IL/following{/other_user}","gists_url":"https://api.github.com/users/AlexK-IL/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexK-IL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexK-IL/subscriptions","organizations_url":"https://api.github.com/users/AlexK-IL/orgs","repos_url":"https://api.github.com/users/AlexK-IL/repos","events_url":"https://api.github.com/users/AlexK-IL/events{/privacy}","received_events_url":"https://api.github.com/users/AlexK-IL/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T10:39:55Z","updated_at":"2018-05-12T10:39:55Z","author_association":"NONE","body":"Sane issue here, using ranger with konsole too.  \r\n`redraw_window` doesn't seem to do anything but somehow hitting `ctrl` clears the image."}}
{"actor":{"display_login":"AlexK-IL"}}