Bug 356101 - Spectacle not capturing any image
Summary: Spectacle not capturing any image
Status: RESOLVED NOT A BUG
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-30 08:05 UTC by Joan
Modified: 2015-12-01 09:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joan 2015-11-30 08:05:16 UTC
I just compile spectacle vs kubuntu willy, all the interface is working as expected but I can't capture anything.

Reproducible: Always

Steps to Reproduce:
1. Open spectacle
2. Take new screenshot


Actual Results:  
1. Nothing is captured
2. When I go to "Save & Exit" there's a message reading "Cannot save an empty screenshot image"

Expected Results:  
Screenshot captured

I am using the current master (last commit on Nov 19) with kubuntu willy plasma version 5.4.2
Comment 1 Boudhayan Gupta 2015-11-30 09:24:21 UTC
This is the result of one of two things - you're either running Wayland, or you've compiled Spectacle without installing the XCB headers. Spectacle has an explicit dependency on XCB.
Comment 2 Joan 2015-12-01 08:31:50 UTC
You were right, just compile again fullfilling all the deps and it's working perfectly now, a message telling me that no backend was installed would have been helpful, if it interests you, this is the summary of packages I had

I had all this related packages:
libx11-xcb-dev:amd64
libxcb-dri2-0-dev:amd64
libxcb-dri3-dev:amd64
libxcb-glx0-dev:amd64
libxcb-present-dev:amd64
libxcb-randr0-dev:amd64
libxcb-render0-dev:amd64
libxcb-shape0-dev:amd64
libxcb-sync-dev:amd64
libxcb-xfixes0-dev:amd64
libxcb1-dev:amd64


And hat to install:
libxcb-cursor-dev:amd64
libxcb-image0-dev:amd64
libxcb-render-util0-dev:amd64
libxcb-shm0-dev:amd64
libxcb-util-dev:amd64


Now that it's working, it's really a neat software, already replaced ksnapshot on my system
Comment 3 Boudhayan Gupta 2015-12-01 09:55:37 UTC
The CMake build files are supposed to fail with a fatal error if XCB headers aren't found. If it isn't doing that properly, you're most welcome to take a look and see if you can fix it.

I'm saying this because I've tried my darndest best to make sure the build fails if no backends can be built, and in most systems this works well. But in some cases they don't. Unfortunately on my system the build fails perfectly if the XCB dev headers aren't installed, so I can't exactly test every possible failure mode.

Maybe fixing this could be a GCI task? ;-)