mss with PyQt5 crash in segmentation fault
See original GitHub issueGeneral OS information:
RELEASE=18 CODENAME=sarah EDITION=“Cinnamon 64-bit” DESCRIPTION=“Linux Mint 18 Sarah” DESKTOP=Gnome TOOLKIT=GTK NEW_FEATURES_URL=http://www.linuxmint.com/rel_sarah_cinnamon_whatsnew.php RELEASE_NOTES_URL=http://www.linuxmint.com/rel_sarah_cinnamon.php USER_GUIDE_URL=help:linuxmint GRUB_TITLE=Linux Mint 18 Cinnamon 64-bit
- Resolutions:
- Monitor 1: 1920x1080
- Monitor 2: 1920x1080
- Monitor 3: 1920x1080 Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
- MSS version: 4.0.0
Description of the warning/error
I have tried to use mss to make screenshots from console code with python. Works just fine. Now I have made a GUI with PyQt5 and it is working just fine in windows. But in Linux, I get a segmentation fault
This is the smallest code that makes the error:
from PyQt5 import QtWidgets
from mss import mss
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
with mss() as sct:
pass
I have made my code in PyCharm and I have realized that if I run the debugger without even any breakpoints, the code works. But if I RUN the code from within PyCharm it crashes with seg fault. The same thing if I run the program from a console.
Issue Analytics
- State:
- Created 5 years ago
- Comments:30 (13 by maintainers)
Top GitHub Comments
Thank you. I’m very proud to find some kind of solution. Thanks to you! I have learned a lot today. =)
And thanks for your perseverance 😃