sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
257 stars 242 forks source link

jarabe.model.screenshot.IOError: error while writing to output stream #867

Closed quozl closed 5 years ago

quozl commented 5 years ago

Screenshot does not work; there is no journal object created. shell.log contains

Traceback (most recent call last):
  File "/usr/lib/python3.7/dist-packages/jarabe/view/keyhandler.py", line 223, in _key_pressed_cb
    action.handle_key_press(key)
  File "/usr/share/sugar/extensions/globalkey/screenshot.py", line 23, in handle_key_press
    take_screenshot()
  File "/usr/lib/python3.7/dist-packages/jarabe/model/screenshot.py", line 80, in take_screenshot
    jobject.metadata['preview'] = _get_preview_data(screenshot_surface)
  File "/usr/lib/python3.7/dist-packages/jarabe/model/screenshot.py", line 118, in _get_preview_data
    preview_surface.write_to_png(preview_str)
jarabe.model.screenshot.IOError: error while writing to output stream
nswarup14 commented 5 years ago

@quozl Is this a duplication of Issue #857 ?

quozl commented 5 years ago

Probably.

Aniket21mathur commented 5 years ago

The tracebacks for both are looking identical, probably both the issues will have the same fix.

quozl commented 5 years ago

I've a fix for this.