Skip to content
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

Qt 6: Segfaults on macOS with QT_DEBUG_PLUGINS #7257

Closed
The-Compiler opened this issue Jun 15, 2022 · 4 comments
Closed

Qt 6: Segfaults on macOS with QT_DEBUG_PLUGINS #7257

The-Compiler opened this issue Jun 15, 2022 · 4 comments
Labels
component: infrastructure Issues related to development scripts, CI, servers, etc. os: macOS Issues which only happen on macOS. priority: 1 - middle Issues which should be done at some point, but aren't that important. qt: 6 Issues related to Qt 6.

Comments

@The-Compiler
Copy link
Member

  • ./.venv/bin/python -c 'from PyQt6.QtWidgets import QApplication; QApplication([])': works
  • QT_DEBUG_PLUGINS=1 ./.venv/bin/python -c 'from PyQt6.QtWidgets import QApplication; QApplication([])': segfaults

Stack:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   QtCore                        	0x0000000108ddd088 0x108bfa000 + 1978504
1   QtCore                        	0x0000000108dd9649 AppleUnifiedLogger::cachedLog(QString const&, QString const&) + 153
2   QtCore                        	0x0000000108dd9349 AppleUnifiedLogger::messageHandler(QtMsgType, QMessageLogContext const&, QString const&, QString const&) + 201
3   QtCore                        	0x0000000108c09ab0 0x108bfa000 + 64176
4   QtCore                        	0x0000000108c09868 0x108bfa000 + 63592
5   QtCore                        	0x0000000108c0975d qt_message_output(QtMsgType, QMessageLogContext const&, QString const&) + 13
6   QtCore                        	0x0000000108c10897 QDebug::~QDebug() + 103
7   QtCore                        	0x0000000108ed6785 0x108bfa000 + 3000197
8   QtCore                        	0x0000000108ed964b 0x108bfa000 + 3012171
9   QtCore                        	0x0000000108ed5879 0x108bfa000 + 2996345
10  libsystem_c.dylib             	0x00007fff604043cf __cxa_finalize_ranges + 319
11  libsystem_c.dylib             	0x00007fff604046b3 exit + 55
12  libdyld.dylib                 	0x00007fff6035e3dc start + 8

originally reported by @donaldguy in #7202 (comment).

@The-Compiler The-Compiler added component: infrastructure Issues related to development scripts, CI, servers, etc. priority: 1 - middle Issues which should be done at some point, but aren't that important. qt: 6 Issues related to Qt 6. labels Jun 15, 2022
@The-Compiler
Copy link
Member Author

We should report this to Qt (or PyQt?) and also for now probably disable that variable in mkvenv.py (or implement a rerun when it fails, or just ignore that particular segfault somehow...)

@The-Compiler The-Compiler added the os: macOS Issues which only happen on macOS. label Jun 15, 2022
@The-Compiler
Copy link
Member Author

Seems to be a 6.3 regression? 6.2 looks better...

The-Compiler added a commit that referenced this issue Jun 17, 2022
The-Compiler added a commit that referenced this issue Jun 17, 2022
The-Compiler added a commit that referenced this issue Jun 17, 2022
@The-Compiler
Copy link
Member Author

Fixed in qt6-v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: infrastructure Issues related to development scripts, CI, servers, etc. os: macOS Issues which only happen on macOS. priority: 1 - middle Issues which should be done at some point, but aren't that important. qt: 6 Issues related to Qt 6.
Projects
None yet
Development

No branches or pull requests

1 participant