-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes when taking a screenshot, then can't close #58
Comments
After installing numpy I get
|
Getting the same problem, also installed via pip on Ubuntu 18.04 and i3wm. |
This is already fixed in #57. For the second issue a stack trace would be helpful to see where the segfault happens. |
Happy to provide one, let me know what to run to get it. |
Something like |
Is this what you were looking for?
|
@gigosaurus You could try applying this patch and see if it works: --- a/escrotum/main.py
+++ b/escrotum/main.py
@@ -364,9 +364,9 @@ class Escrotum(gtk.Dialog):
stride = img.get_stride()
pixels = img.get_data()
- data = bgra2rgba(pixels, width, height)
+ data = glib.Bytes.new(bgra2rgba(pixels, width, height))
- new_pb = Pixbuf.Pixbuf.new_from_data(data, Pixbuf.Colorspace.RGB,
+ new_pb = Pixbuf.Pixbuf.new_from_bytes(data, Pixbuf.Colorspace.RGB,
True, 8, width, height, stride)
return new_pb I don't know if the function is available with your versions and I don't know all implications of using |
Installed today on Ubuntu 18.04 via pip running i13wm 4.17.1.
Had to sigkill the process.
The text was updated successfully, but these errors were encountered: