-
Notifications
You must be signed in to change notification settings - Fork 2
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
Click/drag off screen crashes app #6
Comments
This seems to be an internal, |
I faced the same issue when using QVTKRenderWindowInteractor on a remote desktop, I opened an issue on VTK gitlab repo: https://gitlab.kitware.com/vtk/vtk/-/issues/17854 If anyone needs an urgent fix for this issue, this dirty workaround can do the job: _getPixelRatio_BUG = QVTKRenderWindowInteractor._getPixelRatio
def _getPixelRatio_WORKAROUND(self):
try:
return _getPixelRatio_BUG()
except Exception as err:
print("Exception QVTKRenderWindowInteractor._getPixelRatio: {0}".format(err))
return Qt.QApplication.instance().devicePixelRatio()
setattr(QVTKRenderWindowInteractor, '_getPixelRatio_WORKAROUND', _getPixelRatio_WORKAROUND)
QVTKRenderWindowInteractor._getPixelRatio = _getPixelRatio_WORKAROUND I added these lines to my |
Nice fix @Zakaria220 @banesullivan, should we consider incorporating this into |
Ah, that's a nifty little hack of a solution! Thanks, @Zakaria220! @akaszynski: I'm all for adding it directly into |
VTK 9.0.0 has been released with a fix https://github.com/Kitware/VTK/releases/tag/v9.0.0 |
Click the camera and drag off screen then a crash happens:
The text was updated successfully, but these errors were encountered: