Netflix / OpenVPCal

Apache License 2.0
93 stars 10 forks source link

Unhandled Exception on attribute 'samples' #23

Closed bootsch closed 8 months ago

bootsch commented 8 months ago

After loading a sequence of recorded patches I get the following error when I press 'Analyse'. An unhandled Exception Occurred. 'NoneType' object has no attribute 'samples'

The sequence has 50 frames, one frame per patch. It was generated with the last Nuke version of OpenVPCal.

screen_shot_27-02-2024_unhandled_exception_attribute_samples

bootsch commented 8 months ago

Here's the log output:

Exception in thread Thread-51 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run Exception in thread Thread-52 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "framework\sample_patch.py", line 105, in analyse_patch_frames Exception in thread Thread-53 (analyse_patch_frames): Exception in thread Thread-54 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "framework\sequence_loader.py", line 182, in get_frame Exception in thread Thread-56 (analyse_patch_frames): Traceback (most recent call last): File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 982, in run File "threading.py", line 982, in run Exception in thread Thread-57 (analyse_patch_frames): Traceback (most recent call last): Exception in thread Thread-55 (analyse_patch_frames): open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:63 out of range 1-49 Exception in thread Thread-58 (analyse_patch_frames): File "framework\sequence_loader.py", line 182, in get_frame Exception in thread Thread-59 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "framework\sample_patch.py", line 105, in analyse_patch_frames Exception in thread Thread-60 (analyse_patch_frames): open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:68 out of range 1-49 Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run Exception in thread Thread-62 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner Exception in thread Thread-61 (analyse_patch_frames): File "framework\sample_patch.py", line 105, in analyse_patch_frames Exception in thread Thread-63 (analyse_patch_frames): File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 982, in run File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 982, in run Exception in thread Thread-64 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 1045, in _bootstrap_inner Exception in thread Thread-65 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner Traceback (most recent call last): File "framework\sequence_loader.py", line 182, in get_frame Traceback (most recent call last): File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 982, in run File "threading.py", line 982, in run Exception in thread Thread-67 (analyse_patch_frames): File "threading.py", line 1045, in _bootstrap_inner Exception in thread Thread-66 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 982, in run Exception in thread Thread-68 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "framework\sample_patch.py", line 105, in analyse_patch_frames Traceback (most recent call last): File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:78 out of range 1-49 open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:73 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 982, in run File "threading.py", line 1045, in _bootstrap_inner File "framework\sequence_loader.py", line 182, in get_frame Exception in thread Thread-70 (analyse_patch_frames): File "threading.py", line 1045, in _bootstrap_inner open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:93 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames Exception in thread Thread-73 (analyse_patch_frames): Traceback (most recent call last): File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 982, in run File "framework\sample_patch.py", line 105, in analyse_patch_frames Exception in thread Thread-74 (analyse_patch_frames): File "threading.py", line 982, in run open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:108 out of range 1-49 Exception in thread Thread-71 (analyse_patch_frames): File "threading.py", line 982, in run File "threading.py", line 1045, in _bootstrap_inner File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:128 out of range 1-49 Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "framework\sequence_loader.py", line 182, in get_frame Exception in thread Thread-69 (analyse_patch_frames): Exception in thread Thread-77 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run Exception in thread Thread-72 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:103 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame Exception in thread Thread-79 (analyse_patch_frames): File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:133 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run Exception in thread Thread-76 (analyse_patch_frames): Traceback (most recent call last): Exception in thread Thread-75 (analyse_patch_frames): Traceback (most recent call last): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:88 out of range 1-49 Exception in thread Thread-78 (analyse_patch_frames): Traceback (most recent call last): Exception in thread Thread-82 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 982, in run File "threading.py", line 1045, in _bootstrap_inner Exception in thread Thread-83 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 1045, in _bootstrap_inner Exception in thread Thread-80 (analyse_patch_frames): Traceback (most recent call last): File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:98 out of range 1-49 File "threading.py", line 982, in run Traceback (most recent call last): File "framework\sample_patch.py", line 105, in analyse_patch_frames Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run Exception in thread Thread-84 (analyse_patch_frames): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run File "threading.py", line 982, in run File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 982, in run File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run File "threading.py", line 982, in run File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 982, in run File "framework\sequence_loader.py", line 182, in get_frame File "framework\sample_patch.py", line 105, in analyse_patch_frames Exception in thread Thread-81 (analyse_patch_frames): File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 1045, in _bootstrap_inner open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:148 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 1045, in _bootstrap_inner File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:143 out of range 1-49 File "threading.py", line 982, in run Traceback (most recent call last): File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:123 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:83 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 1045, in _bootstrap_inner File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 982, in run File "threading.py", line 982, in run File "threading.py", line 1045, in _bootstrap_inner File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 982, in run File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sequence_loader.py", line 182, in get_frame File "framework\sequence_loader.py", line 182, in get_frame File "threading.py", line 982, in run File "framework\sequence_loader.py", line 182, in get_frame File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:113 out of range 1-49 open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:158 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames File "threading.py", line 982, in run open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:193 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sequence_loader.py", line 182, in get_frame File "framework\sequence_loader.py", line 182, in get_frame File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:188 out of range 1-49 File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run File "threading.py", line 982, in run File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:153 out of range 1-49 open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:203 out of range 1-49 open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:208 out of range 1-49 File "threading.py", line 982, in run File "framework\sequence_loader.py", line 182, in get_frame File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:163 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame File "framework\sample_patch.py", line 105, in analyse_patch_frames File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:213 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:183 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:168 out of range 1-49 open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:118 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:228 out of range 1-49 open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:138 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:218 out of range 1-49 File "framework\sample_patch.py", line 105, in analyse_patch_frames open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:173 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:198 out of range 1-49 File "framework\sequence_loader.py", line 182, in get_frame open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:223 out of range 1-49 open_vp_cal.framework.sequence_loader.FrameRangeException: Frame:178 out of range 1-49 Traceback (most recent call last): File "widgets\main_window.py", line 1007, in run_analyse File "application_base.py", line 152, in analyse File "framework\processing.py", line 116, in run_sampling File "framework\processing.py", line 454, in get_eotf_ramp_samples AttributeError: 'NoneType' object has no attribute 'samples'

bootsch commented 8 months ago

When I use a sequence that has 25 fps this exception does not occur. Though it give another error message.

screenshot-execption-singular-matrix

Another issue I guess...

davisadam10 commented 8 months ago

Hey,

Well the honest truth is I don't know how the code is even getting to that point with that issue.

Could you possibly share the project file and image sequence via a google drive or drop box so I can debug this

davisadam10 commented 8 months ago

Ah I see what's going on, you can't uses the patches that where generated from Nuke you need to generate new patches which are generated from the standalone tool as the image sequence has changed and it's detecting the wrong frames to sample and it's well not finding them.

Can you try this as intended where we generate the patches Tom the standalone tool, play them back and record them and b then load that recording in.

Sadly we can't support the old patches as we have changed them to support a wider array of issues, features and functionality

bootsch commented 8 months ago

Thanks for finding this. I will try first with a fresh set of patches generated in the new version and report back.

bootsch commented 8 months ago

We have not been able to really test this yet due to another issue we ran into, see #26. Loading a fresh set of generated patches and pressing 'Analyse' does not give us the exceptions mentioned in this issue.

davisadam10 commented 8 months ago

Closing Issue as due to incorrect patches used, and exrs also now writing out as 16-bit as per rc 12