Skip to content
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

Surface Tracker freezes when switching operating systems #1771

Closed
pfaion opened this issue Dec 18, 2019 · 1 comment
Closed

Surface Tracker freezes when switching operating systems #1771

pfaion opened this issue Dec 18, 2019 · 1 comment
Labels
plugin: surface_tracker Issues and PRs related to the Surface Tracker plugin

Comments

@pfaion
Copy link
Contributor

pfaion commented Dec 18, 2019

I had opened a recording with Pupil Player(v1.20) on Windows and used the Surface Tracker.
Then I opened the same folder with Pupil Player on Ubuntu 18.04. Upon loading the Surface Tracker, Player froze.

Following (cython) log:

MainProcess - [DEBUG] os_utils: Disabling idle sleep not supported on this OS version.
player - [INFO] numexpr.utils: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
player - [INFO] numexpr.utils: NumExpr defaulting to 8 threads.
No module named 'pyrealsense2'
player - [INFO] video_capture: Install pyrealsense to use the Intel RealSense backend
player - [INFO] video_capture: Install pyrealsense2 to use the Intel RealSense backend for D400 series cameras
player - [INFO] launchables.player: Session setting are from a  different version of this app. I will not use those.
player - [INFO] launchables.player: Starting new session with '/media/pfa/P L/pfa/recordings/capture-1.16-surface-test-calibrated'
player - [INFO] pupil_recording.update.new_style: Checking for world-less recording...
player - [INFO] camera_models: Previously recorded calibration found and loaded!
player - [INFO] camera_models: No user calibration found for camera eye0 at resolution (400, 400)
player - [INFO] camera_models: No pre-recorded calibration available
player - [WARNING] camera_models: Loading dummy calibration
player - [INFO] camera_models: No user calibration found for camera eye1 at resolution (192, 192)
player - [INFO] camera_models: No pre-recorded calibration available
player - [WARNING] camera_models: Loading dummy calibration
player - [INFO] numexpr.utils: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
player - [INFO] numexpr.utils: NumExpr defaulting to 8 threads.
No module named 'pyrealsense2'
player - [INFO] video_capture: Install pyrealsense to use the Intel RealSense backend
player - [INFO] video_capture: Install pyrealsense2 to use the Intel RealSense backend for D400 series cameras
player - [DEBUG] pupil_apriltags: Testing possible hit: /home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pupil_apriltags/lib64/libapriltag.so.3.1.0...
player - [DEBUG] pupil_apriltags: Found working clib at /home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pupil_apriltags/lib64/libapriltag.so.3.1.0
player - [INFO] launchables.player: Application Version: 1.19.84
player - [INFO] launchables.player: System Info: User: pfa, Platform: Linux, Machine: pfa-windows-machine, Release: 5.0.0-37-generic, Version: #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019
player - [INFO] av.buffered_decoder: Starting buffering thread!
player - [DEBUG] av.buffered_decoder: frames to buffer = 50
player - [DEBUG] av.buffered_decoder: Thread Seeking to 0
player - [INFO] camera_models: Previously recorded calibration found and loaded!
player - [INFO] launchables.player: Session setting are a different version of this app. I will not use those.
player - [DEBUG] av.buffered_decoder: frames to buffer = 0
player - [DEBUG] plugin: Loading plugin: Plugin_Manager with settings {}
player - [DEBUG] plugin: Loading plugin: Seek_Control with settings {}
player - [DEBUG] plugin: Loading plugin: Log_Display with settings {}
player - [DEBUG] plugin: Loading plugin: Raw_Data_Exporter with settings {}
player - [DEBUG] plugin: Loading plugin: Vis_Polyline with settings {}
player - [DEBUG] plugin: Loading plugin: Vis_Circle with settings {}
player - [DEBUG] plugin: Loading plugin: System_Graphs with settings {}
player - [DEBUG] plugin: Loading plugin: System_Timelines with settings {}
player - [DEBUG] plugin: Loading plugin: World_Video_Exporter with settings {}
player - [INFO] video_export.plugins.world_video_exporter: World Video Exporter has been launched.
player - [DEBUG] plugin: Loading plugin: Pupil_From_Recording with settings {}
player - [DEBUG] pupil_producers: pupil positions changed
player - [DEBUG] plugin: Loading plugin: GazeFromRecording with settings {}
player - [DEBUG] plugin: Loading plugin: Audio_Playback with settings {}
player - [DEBUG] av.buffered_decoder: frames to buffer = 1
player - [DEBUG] pupil_apriltags: Testing possible hit: /home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pupil_apriltags/lib64/libapriltag.so.3.1.0...
player - [DEBUG] pupil_apriltags: Found working clib at /home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pupil_apriltags/lib64/libapriltag.so.3.1.0
player - [DEBUG] surface_tracker.surface_marker_detector: Init Apriltag Detector (
        apriltag_families=ApriltagFamily.tag36h11
        apriltag_nthreads=2
        apriltag_quad_decimate=2.0
        apriltag_decode_sharpening=1.0
)
player - [DEBUG] pupil_apriltags: Testing possible hit: /home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pupil_apriltags/lib64/libapriltag.so.3.1.0...
player - [DEBUG] pupil_apriltags: Found working clib at /home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pupil_apriltags/lib64/libapriltag.so.3.1.0
player - [DEBUG] surface_tracker.surface_marker_detector: Init Apriltag Detector (
        apriltag_families=ApriltagFamily.tag36h11
        apriltag_nthreads=2
        apriltag_quad_decimate=2.0
        apriltag_decode_sharpening=1.0
)
player - [DEBUG] surface_tracker.surface_tracker_offline: Restored previous marker cache.
Background Video Processor - [DEBUG] background_helper: Entering _wrapper
Background Video Processor - [DEBUG] surface_tracker.background_tasks with pid: 6610: Started cacher process for Marker Detector
corrupted size vs. prev_size
------------------------------------------------------------------------
/home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/cysignals/signals.cpython-36m-x86_64-linux-gnu.so(+0x7f9b)[0x7efbf4844f9b]
/home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/cysignals/signals.cpython-36m-x86_64-linux-gnu.so(+0x8058)[0x7efbf4845058]
/home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/cysignals/signals.cpython-36m-x86_64-linux-gnu.so(+0xc205)[0x7efbf4849205]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7efbff2ca890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7efbfe760e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7efbfe762801]
/lib/x86_64-linux-gnu/libc.so.6(+0x89897)[0x7efbfe7ab897]
/lib/x86_64-linux-gnu/libc.so.6(+0x9090a)[0x7efbfe7b290a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x80f)[0x7efbfe7ba15f]
/usr/lib/x86_64-linux-gnu/libswscale.so.4(sws_freeContext+0x5f)[0x7efba41f8fbf]
/usr/lib/x86_64-linux-gnu/libswscale.so.4(sws_getCachedContext+0x103)[0x7efba41f9d33]
/home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/av/video/frame.cpython-36m-x86_64-linux-gnu.so(+0xe060)[0x7efb7950d060]
/home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/av/video/frame.cpython-36m-x86_64-linux-gnu.so(+0x1046a)[0x7efb7950f46a]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyCFunction_Call+0x33)[0x56555564ed43]
/home/pfa/.pyenv/versions/3.6.9/lib/python3.6/site-packages/av/video/frame.cpython-36m-x86_64-linux-gnu.so(+0x12ffe)[0x7efb79511ffe]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyCFunction_FastCallKeywords+0x273)[0x56555564f0f3]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1893a4)[0x5655556dc3a4]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x1338)[0x5655556de8b8]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188f93)[0x5655556dbf93]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyEval_EvalCodeEx+0x3e)[0x5655556dd05e]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0xc24c5)[0x5655556154c5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyObject_Call+0x3e)[0x5655555e29be]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x21ac95)[0x56555576dc95]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyObject_GenericGetAttr+0x87)[0x565555653367]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x3a18)[0x5655556e0f98]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188f93)[0x5655556dbf93]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x18922d)[0x5655556dc22d]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188f93)[0x5655556dbf93]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x18922d)[0x5655556dc22d]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188f93)[0x5655556dbf93]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyEval_EvalCodeEx+0x3e)[0x5655556dd05e]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0xc25bd)[0x5655556155bd]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyObject_Call+0x3e)[0x5655555e29be]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x148d)[0x5655556dea0d]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188498)[0x5655556db498]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1894d6)[0x5655556dc4d6]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188498)[0x5655556db498]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1894d6)[0x5655556dc4d6]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188498)[0x5655556db498]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1894d6)[0x5655556dc4d6]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188498)[0x5655556db498]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyFunction_FastCallDict+0x2b0)[0x5655556e56b0]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyObject_Call_Prepend+0x249)[0x5655555e2f59]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyObject_Call+0x3e)[0x5655555e29be]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x118d7d)[0x56555566bd7d]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x112867)[0x565555665867]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyObject_FastCallDict+0xb3)[0x5655555e2bc3]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1890f0)[0x5655556dc0f0]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188498)[0x5655556db498]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1894d6)[0x5655556dc4d6]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188498)[0x5655556db498]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1894d6)[0x5655556dc4d6]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188498)[0x5655556db498]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x1894d6)[0x5655556dc4d6]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188f93)[0x5655556dbf93]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x18922d)[0x5655556dc22d]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_PyEval_EvalFrameDefault+0x4745)[0x5655556e1cc5]
/home/pfa/.pyenv/versions/3.6.9/bin/python(+0x188f93)[0x5655556dbf93]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyEval_EvalCode+0x23)[0x5655556dcfe3]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyRun_FileExFlags+0x16b)[0x5655555b2bfb]
/home/pfa/.pyenv/versions/3.6.9/bin/python(PyRun_SimpleFileExFlags+0xfd)[0x5655555b2dfd]
/home/pfa/.pyenv/versions/3.6.9/bin/python(Py_Main+0xd70)[0x5655555c9ff0]
/home/pfa/.pyenv/versions/3.6.9/bin/python(main+0x18a)[0x5655555a92fa]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7efbfe743b97]
/home/pfa/.pyenv/versions/3.6.9/bin/python(_start+0x2a)[0x5655555a93ba]
------------------------------------------------------------------------
Background Video Processor - [INFO] camera_models: Previously recorded calibration found and loaded!
Background Video Processor - [DEBUG] surface_tracker.background_tasks with pid: 6610: User required seek. Marker caching at Frame: 0
Background Video Processor - [DEBUG] surface_tracker.background_tasks with pid: 6610: Caching completed.
Background Video Processor - [DEBUG] background_helper: Exiting _wrapper

Note the line corrupted size vs. prev_size before the cython part.

@romanroibu romanroibu added the plugin: surface_tracker Issues and PRs related to the Surface Tracker plugin label Feb 24, 2020
@papr
Copy link
Contributor

papr commented Jul 13, 2020

This issue is related to using a version of OpenCV that was not compiled with TBB support. Please compile OpenCV from source or use this trick to compile opencv-python with TBB support.

@papr papr closed this as completed Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: surface_tracker Issues and PRs related to the Surface Tracker plugin
Projects
None yet
Development

No branches or pull requests

3 participants