py-spy
py-spy copied to clipboard
Error: Failed to merge native and python frames
py-spy top --native
fails with OpenCV
Platform:
- Ubuntu 22.04
- python3.11
Minimal example to reproduce:
# opencv.py
import time
import cv2
import numpy as np
def main():
while True:
img = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)
cv2.resize(img, (10000, 10000))
time.sleep(1)
print('tick')
if __name__ == '__main__':
main()
Run:
pip install opencv-python
py-spy record --native python opencv.py
# Error: Failed to merge native and python frames (Have 1 native and 2 python)