Skip to content

Improve ctk & qt python packages to avoid segfault when imported from standalone python#1072

Merged
jcfr merged 2 commits intocommontk:masterfrom
jcfr:improve-ctk-qt-python-to-fix-crash
Mar 15, 2023
Merged

Improve ctk & qt python packages to avoid segfault when imported from standalone python#1072
jcfr merged 2 commits intocommontk:masterfrom
jcfr:improve-ctk-qt-python-to-fix-crash

Conversation

@jcfr
Copy link
Member

@jcfr jcfr commented Mar 14, 2023

Since importing a PythonQt-based module outside of a Qt application leads to a segfault, skip the import if it happens in a standalone python interpreter.

This issue was discovered while working on the following:

Note that we may revisit this once the integration of the following pull-request has been finalized:

@jcfr jcfr changed the title Improve ctk qt python to fix crash Improve ctk & qt python package to avoid segfault when imported from standalone python Mar 14, 2023
@jcfr jcfr changed the title Improve ctk & qt python package to avoid segfault when imported from standalone python Improve ctk & qt python packages to avoid segfault when imported from standalone python Mar 14, 2023
…e python

Since importing a PythonQt-based module outside of a Qt application
leads to a segfault, skip the import if it happens in a standalone
python interpreter.

See commontk#520
@jcfr jcfr force-pushed the improve-ctk-qt-python-to-fix-crash branch from da08630 to cbc2c9b Compare March 15, 2023 01:35
@jcfr jcfr merged commit a203172 into commontk:master Mar 15, 2023
@jcfr jcfr deleted the improve-ctk-qt-python-to-fix-crash branch March 15, 2023 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant