"A known critical bug in PySide6 6.8.0 will cause your application to crash"

I run win10 with the Python version I got from IDA installer (3.10.5) and with the PySide6 version from IDA installer (6.8.0)

When I install the plugin IPyIDA ( GitHub - eset/ipyida: IPython console integration for IDA Pro ) I get the error message “A known critical bug in PySide6 6.8.0 will cause your application to crash. See https://github.com/spyder-ide/qtpy/issues/494

and when I exit IDA, it does crash (I do however not get any crash dump file)

This seems to come from qtpy ( https://github.com/spyder-ide/qtpy/blob/ad8d3453203c9046fc86a2b35195201a6ef3a921/qtpy/\__init_\_.py#L284 )

I did a pip install –upgrade PySide6 but that new version from pip was not picked up by IDA.

Any idea on what to do to fix this?

Unfortunately you can’t use a standard PySide6 package with IDA, because we have a custom Qt build.

Are you planning on updating PySide6 to latest version? Or what can I do now?

hey harding, yeah this is a known issue with pyside6 6.8.0. the problem is that ida uses its own bundled python and pyside6, so even if you upgrade pyside6 via pip, ida will still use the old version.

one way to work around it is to either wait for ida to update their pyside6 version or try running ida with a separate python environment that has a newer pyside6, but that can be tricky. some people also suggest checking if there’s a patched version of the plugin or qtpy that avoids this crash. unfortunately there isn’t a super clean fix until ida updates the bundled packages

AFAIK our PysSide6 version is not exactly 6.8.0 and should be closer to 6.8.2 but the whole versioning is very complicated in the Qt project.

I suspect there should be a workaround for the crash but unfortunately I can’t seem to reproduce it to try figure out a solution.

Just in case, can you try installing the latest MSVC++ redist from https://aka.ms/vs/17/release/vc_redist.x64.exe ? Perhaps the crash you see is not actually related to the mentioned issue.