Closed cbimbo closed 1 year ago
Hi, I made sure the timeline computers pulled the latest code last night (2022-10-03), and I modified the facemap code so they only ran one video (just to have a minimal example of whether it is being called properly, and test what is causing the hanging with some print statements), overall I don't see the hanging any more: either facemap ran successfully or it returned an error in which case the matlab instance is still open but not running any code.
More specifically (I may open separate issues to address these)
time1 computer: restarted, I don't know why time2 computer: processed a single movie without issue time3 computer: seems like it encountered a video-causing error that I haven't seen before, the video opens fine using VLC so I will have to look into why facemap cannot process it:
The error is:
\zaru.cortexlab.net\Subjects\AV020\2022-08-04\7\2022-08-04_7_AV020_eyeCam.mj2
\zaru.cortexlab.net\Subjects\AV020\2022-08-04\7\2022-08-04_7_AV020_frontCam.mj2
\zaru.cortexlab.net\Subjects\AV020\2022-08-04\7\2022-08-04_7_AV020_sideCam.mj2
eyeCam not processed yet, will run facemap on it now
Computing subsampled mean...
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
Computed subsampled mean at 3.64s
Computing subsampled SVD...
motSVD True movSVD False
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
img load failed, replacing with prev..
Traceback (most recent call last):
File "C:\Users\Experiment\Documents\Github\PinkRigs\Analysis\+vidproc_facemap\run_facemap.py", line 1830, in
time4 computer:
there are two errors here: (1) another computer marked a video as "processed" after seeing the facemap output file before this computer had the chance, and so it couldn't find the "processing" file, this I can fix by asking the original computer to just not look for it after seeing the "processed" txt file. (2) There's this "Failed to add docroot into connector static content", which this post here suggest it's some firewall/antivirus issue, but I don't think it affected how facemap runs, and if nothing runs downstream of the facemap code then it doesn't affect the autorunovernight process. Perhaps it is caused by having PyCharm open at the same time (that's the only difference I noticed between time4 and the other timeline computers)
Full error message:
3 Candidate videos to look over
\zaru.cortexlab.net\Subjects\AV020\2022-08-04\8\2022-08-04_8_AV020_eyeCam.mj2
\zaru.cortexlab.net\Subjects\AV020\2022-08-04\8\2022-08-04_8_AV020_frontCam.mj2
\zaru.cortexlab.net\Subjects\AV020\2022-08-04\8\2022-08-04_8_AV020_sideCam.mj2
frontCam not processed yet, will run facemap on it now
Computing subsampled mean...
Computed subsampled mean at 3.92s
Computing subsampled SVD...
motSVD True movSVD False
Computed subsampled SVD at 1613.58s
Computing projection for motSVD...
Computed motSVD projection at 1900.58s
run time 1913.39s
Traceback (most recent call last):
File "C:\Users\Experiment\Documents\Github\PinkRigs\Analysis\+vidproc_facemap\run_facemap.py", line 1830, in
Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData Failed to add docroot into connector static content
Automatic facemap is hanging when automatically run.