Bug 372946

Summary: Taking a screenshot doesn't always work and prevents me from using the desktop
Product: [Applications] Spectacle Reporter: tamius.han
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tamius.han 2016-11-26 11:09:42 UTC
spectacle 16.08.3 on archlinux packages. Using X server and proprietary nvidia drivers.

In keyboard settings, I've set the print screen button to launch `spectacle --region`.

In general, I can take one or two screenshots (per boot) this way before spectacle stops taking screenshots and kinda freezes my system. After pressing print screen (or launching `spectacle --region`, which does the same thing), I can't click anything on the screen. Screen doesn't get dimmed as usual, I don't get prompted to select a region as I should, cursor is regular mouse cursor (regardless of whether I hover over anything that normally changes the cursor) and all the programs on the desktop stop reacting to clicks.

Going to TTY and back to graphical sessions unfreezes the desktop.

Launching `spectacle --region` from the terminal gives me this trace:

--------------------------------------------------------------------------

spectacle --region
qrc:/JobDialog.qml:67: TypeError: Cannot read property 'Layout' of null
qrc:/JobDialog.qml:66: TypeError: Cannot read property 'Layout' of null
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
Segmentation fault (core dumped)

--------------------------------------------------------------------------

This issue does NOT happen if I open up spectacle, select 'rectangular region' in the spectacle window and click the 'Take a new screenshot' button — it only happens when spectacle is launched with `spectacle --region`.

This problem didn't happen on the previous version.
Comment 1 Nate Graham 2018-01-31 05:09:04 UTC

*** This bug has been marked as a duplicate of bug 374009 ***