Maniphest T93935

Blender 3.0 Motion tracking footage just crashes blender
Closed, Archived

Assigned To
None
Authored By
Ahmad Naveed (Ahmadisshark)
Dec 10 2021, 10:49 AM
Tags
  • BF Blender
  • Images & Movies
  • VFX & Video
Subscribers
Ahmad Naveed (Ahmadisshark)
Andy Harris (AndyThirtover)
Evan Wilson (EAW)
Graeme (GraemeBull)
Jesse Yurkovich (deadpin)
John (John2022)
Nikiforos Bafas (theBigBanik)
6 More Subscribers

Description

Having troubles tracking footage inside of the latest official blender, tracking footage works for a few seconds before the program just closes, footage works just fine in Blender 2.93.

Footage Information
35.2MB, 3840x2160 29.97 FPS, mp4

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 497.09

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: rBf1cca3055776
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

Event Timeline

Ahmad Naveed (Ahmadisshark) created this task.Dec 10 2021, 10:49 AM
Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Dec 10 2021, 10:16 PM
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

Please upload footage that causes crash.

Andy Harris (AndyThirtover) added a subscriber: Andy Harris (AndyThirtover).Dec 14 2021, 9:32 PM

I can confirm that this happens very consistently with 4K footage and will also happen with HD. I've tried both H264 and H265 encoding.

This does track, but fails shortly afterwards in moving through the timeline.

Regards

Andy

Graeme (GraemeBull) added a subscriber: Graeme (GraemeBull).Dec 15 2021, 6:59 AM

I can confirm this happens very consistently. Sometimes it will track through, but then when you set the tracking scene it crashes, the VFX area for motion tracking seems to have had a change to it that causes unending crashes now though.
Running windows 10 blender 3.0 with RTX 2060

Philipp Oeser (lichtwerk) changed the task status from Needs Information from User to Needs Triage.Dec 15 2021, 10:59 AM
Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.Dec 15 2021, 1:22 PM
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

Cannot reproduce here

**System Information**
Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits
Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.44
version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `rBf1cca3055776`

Please open Blender's installation directory and double click on the blender_debug_gpu.cmd. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once it crashes or you close Blender manually the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt (or simply type %TEMP% into the path bar of the Windows Explorer).

Philipp Oeser (lichtwerk) mentioned this in T94114: Crashes during motion tracking.Dec 15 2021, 4:56 PM
Graeme (GraemeBull) added a comment.Dec 15 2021, 5:21 PM

There's the crash report, explorer did not open with the two files showing after the crash though. Where do I find those files?
I can say for sure that this is a very repeatable problem. In fact, it has never succeeded.

Graeme (GraemeBull) added a comment.Dec 15 2021, 5:24 PM

Sorry I didn't put in steps to reproduce. Here they are:
Open blender, go to VFX->motion tracking layout
Drag in footage, set scene frames and prefetch
Zoom out on the timeline to select the middle of the clip and then detect features
Set tracking to affine and prev frame
Click track forward to track the second half of the clip first, when done (if it actually works and doesn't crash there) click back in the middle and track back. Somewhere on the tracking it will crash. If by chance it doesn't (which has only once made it through in about 6 times or so) then set up the scene. I've never made it farther than that

Graeme (GraemeBull) added a comment.Dec 15 2021, 5:44 PM

found the system one but the debug one is half a gig... how do I get that to be a smaller file? delete it and have blender start from scratch?

Andy Harris (AndyThirtover) added a comment.Dec 15 2021, 8:51 PM

On MacOSX:

Andy-iMac-Pro:MacOS andy$ ./Blender
Read prefs: /Users/andy/Library/Application Support/Blender/3.0/config/userpref.blend
Exception in module register(): /Users/andy/Library/Application Support/Blender/3.0/scripts/addons/DECALmachine/__init__.py
Traceback (most recent call last):

File "/Applications/Blender.app/Contents/Resources/3.0/scripts/modules/addon_utils.py", line 387, in enable
  mod.register()
File "/Users/andy/Library/Application Support/Blender/3.0/scripts/addons/DECALmachine/__init__.py", line 122, in register
  bpy.types.TOPBAR_MT_app_system.append(draw_debug)

AttributeError: 'module' object has no attribute 'TOPBAR_MT_app_system'
botaniq is not installed in one of the default locations, please make sure the path is set in botaniq addon preferences!
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'pose_sub'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'outfit_sub'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'hair_sub'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'face_hair_sub'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'expressions_sub'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'footwear_sub'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'patterns_sub'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'HG_SETTINGS', '', 'texture_library'
HG_INFO: Activating HumGen
Writing: /var/folders/n7/9zddf8mn2rlcmy0ffcpdkbsh0000gn/T/blender.crash.txt
Segmentation fault: 11

and here is the log:

the instructions by Graeme are exactly what I did!

Regards

Andy

Evan Wilson (EAW) changed the task status from Needs Information from User to Confirmed.Dec 16 2021, 3:07 AM
Evan Wilson (EAW) added projects: Images & Movies, VFX & Video.
Evan Wilson (EAW) added subscribers: Jesse Yurkovich (deadpin), Evan Wilson (EAW).

Both crash stacktraces point to moviecache_valfree.

Marking as confirmed due to this and the other reports on the tracker involving crashing and moviefiles.

@Jesse Yurkovich (deadpin) it looks like you got bit by the old “commit into release, merge release into master switcharoo” 😀

As far as I can tell, Your fixes were only merged into master, and not the 3.0 release branch.

@Philipp Oeser (lichtwerk) if I am correct, then the the following two fixes will need to be added to the 3.0 corrective release
rB7061d1e39fea: Fix T92740: Missing lock around the image CacheLimiter and
D13122: Cleanup: Correct order of guard and lock in moviecache_valfree

Evan Wilson (EAW) triaged this task as High priority.Dec 16 2021, 3:07 AM
Evan Wilson (EAW) added a subscriber: shaoyen (h.disabuse).
Evan Wilson (EAW) added a subscriber: John (John2022).
Graeme (GraemeBull) added a comment.Dec 16 2021, 6:50 AM

I can confirm that 3.1 alpha does not crash and that build is off of the master. I hope you guys can update 3.0 pretty soon!

Philipp Oeser (lichtwerk) closed this task as Archived.Dec 16 2021, 8:56 AM

I have added the tow fixes to the list T93479: 3.0 Potential candidates for corrective releases.

So to sum up: 3.1 [that is master] is fine in that regards (workaround advice is to use that for tracking), 3.0 release has this issue, should be resolved by a potential (but rather likely) 3.0.1 corrective release.

No need to have a special report open for this though, will close this one, please keep an eye on release announcements for 3.0.1.

Thx everyone for investigations!

Peter Garland (GenXwing) added a subscriber: Peter Garland (GenXwing).Dec 16 2021, 2:10 PM
Philipp Oeser (lichtwerk) added subscribers: Shane Killian (shanedk), Steave (KD6-3.7).
Philipp Oeser (lichtwerk) merged a task: T94114: Crashes during motion tracking.Dec 22 2021, 2:05 PM
Philipp Oeser (lichtwerk) added a subscriber: Per Lund (Lunddesigns).
Nikiforos Bafas (theBigBanik) added a subscriber: Nikiforos Bafas (theBigBanik).Dec 31 2021, 5:48 PM

Yep, Blender 3.0 crashes when tracking a footage but only after I have "Setup Tracking Scene". Then, if I move the timeline back and forth a few times it crashes. I reproduced the same steps even with the KCycles version. Excactly the same crash.
So, I did some tests to figure out any possible reasons and here is what I discovered.

FHD resolution, MP4 H264
24fps: Crashes
25fps: Crashes
30fps: No Crash
60fps: Crashes

4K resolution, MP4 H264
24fps: Crashes
25fps: Crashes
30fps: Crashes
60fps: Crashes

It looks like blender 3.0 cannot handle specific fps and resolution. At least this is happening on my PC. To help you more my rig setup is:
OS: WINDOWS 1O PRO 64bit (updated to latest firmware)
GPU: MSI NVIDIA GEFORCE RTX3090 24GB (drivers are all updated to latest firmware)
RAM: 128GB DDR4 3200MHz
CPU: AMD Ryzen Threadripper 3960X 24-core

And it crashes.