Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#72695 - [python-opencv] Viz3D spinOnce freezes
Attached to Project:
Arch Linux
Opened by Denis (nemetyls) - Wednesday, 10 November 2021, 14:11 GMT
Last edited by Antonio Rojas (arojas) - Friday, 19 November 2021, 07:55 GMT
Opened by Denis (nemetyls) - Wednesday, 10 November 2021, 14:11 GMT
Last edited by Antonio Rojas (arojas) - Friday, 19 November 2021, 07:55 GMT
|
DetailsDescription:
`spinOnce` method used to work great in while loops to enable animation in a Viz window by doing: ``` while not v.wasStopped(): v.spinOnce(1, True) ``` Which is how it is done in the OpenCV Tutorials for viz in C++. Now the window freezes and no mouse nor keyboard event is recognized thus impossible to cleanly close the windows or rotate the camera in the scene. Sometimes it leads to a X server error: X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 38 (X_QueryPointer) Resource id in failed request: 0x5800002 Serial number of failed request: 1036 Current serial number in output stream: 1036 The `spin` method works though, but is not meant for while loops. Steps to reproduce: - Use the latest version of opencv, python-opencv and vtk installed using pacman - Run the following in python 3.9.7: ``` import cv2 v = cv2.viz.Viz3d_create("Viz Demo") v.showWidget("axes", cv2.viz_WCameraPosition(1)) while not v.wasStopped(): v.spinOnce(1, True) ``` - Window freezes, and does not respond to keyboard or mouse events. |
This task depends upon
Closed by Antonio Rojas (arojas)
Friday, 19 November 2021, 07:55 GMT
Reason for closing: No response
Friday, 19 November 2021, 07:55 GMT
Reason for closing: No response
Comment by Antonio Rojas (arojas) -
Wednesday, 10 November 2021, 14:57 GMT
Please report this upstream