question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mss with PyQt5 crash in segmentation fault

See original GitHub issue

General 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:closed
  • Created 5 years ago
  • Comments:30 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
RobotPsykologcommented, Feb 6, 2019

Thank you. I’m very proud to find some kind of solution. Thanks to you! I have learned a lot today. =)

0reactions
BoboTiGcommented, Feb 6, 2019

And thanks for your perseverance 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python PyQT5 WebEngine Segmentation fault Error
it crashes with the 'Segmentation fault' error # importing required libraries from PyQt5.QtCore import * from PyQt5.
Read more >
Segmentation Fault With QProcess Manager - Python GUIs
After I removed 'exit_status' from 'done' function, it seemed to execute fine, but then the program kept crashing and returned 'Segmentation ...
Read more >
Segmentation Fault (Core Dumped) Error In Pyqt5 - ADocLib
Segmentation fault core dumped Code Answer's to crash; they are often associated with a file named core. which is not yours so it...
Read more >
[SOLVED] Segmentation fault with any PyQt5 application
Any package that used PyQt5 crashes with a segmentation fault. Any package that doesn't have a GUI worked fine.
Read more >
Segmentation fault for large files with at least 54 million packets
After opening a large capture file with at least 54 million packets, Wireshark Qt crashes (segmentation fault) at the moment it tries to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found