Page MenuHome

Blender 2.8 crash (motion tracking)
Closed, ResolvedPublic

Description

System Information
OS: Fedora 28
Processor: Intel® Core™ i3-5010U CPU @ 2.10GHz × 4
Graphics card: Intel® HD Graphics 5500 (Broadwell GT2)

Blender Version
blender-2.80-405c6c077f6-linux-glibc219-x86_64

Short description of error
Blender crashes

Exact steps for others to reproduce the error
new workspace (motion tracking) -> open a movie (file type .mp4 ~17mb) -> set screen frames -> prefetch everything goes fine until now but if I press reload during the prefetch is running it crashes every time I repeat these steps

Event Timeline

Bastien Montagne (mont29) triaged this task as Confirmed priority.Jul 24 2018, 3:26 PM

Confirmed (though a bit difficult to reproduce with default settings, since prefetch is nearly immediate with simple video files…).

@Sergey Sharybin (sergey) reload should first kill any prefetch job imho?

ASAN report of the crash btw:

=================================================================
==18187==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000cae (pc 0x7f98e1688956 bp 0x000000000001 sp 0x7f98a28900d0 T41)
==18187==The signal is caused by a WRITE memory access.
==18187==Hint: address points to the zero page.
    #0 0x7f98e1688955  (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x302955)
    #1 0x7f98e16d51ee  (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x34f1ee)
    #2 0x7f98e16d6e61  (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x350e61)
    #3 0x7f98e16dd25c  (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x35725c)
    #4 0x7f98e15b2446  (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x22c446)
    #5 0x7f98e15b5237 in avcodec_send_packet (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x22f237)
    #6 0x7f98e15b5616  (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x22f616)
    #7 0x5561f5009e59 in ffmpeg_decode_video_frame /home/i74700deb64/blender/__work__/src/source/blender/imbuf/intern/anim_movie.c:856
    #8 0x5561f500bb52 in ffmpeg_fetchibuf /home/i74700deb64/blender/__work__/src/source/blender/imbuf/intern/anim_movie.c:1185
    #9 0x5561f500c93c in IMB_anim_absolute /home/i74700deb64/blender/__work__/src/source/blender/imbuf/intern/anim_movie.c:1369
    #10 0x5561f477ef5a in movieclip_load_movie_file /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/movieclip.c:294
    #11 0x5561f478771b in BKE_movieclip_anim_ibuf_for_frame /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/movieclip.c:1581
    #12 0x5561f25f87ba in prefetch_movie_frame /home/i74700deb64/blender/__work__/src/source/blender/editors/space_clip/clip_editor.c:867
    #13 0x5561f25f8943 in do_prefetch_movie /home/i74700deb64/blender/__work__/src/source/blender/editors/space_clip/clip_editor.c:899
    #14 0x5561f25f8ea8 in prefetch_startjob /home/i74700deb64/blender/__work__/src/source/blender/editors/space_clip/clip_editor.c:932
    #15 0x5561f21ff598 in do_job_thread /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_jobs.c:337
    #16 0x5561f51eadda in tslot_thread_start /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/threads.c:253
    #17 0x7f98e73f1f29 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7f29)
    #18 0x7f98dfb06ede in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xf7ede)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libavcodec.so.58+0x302955) 
Thread T41 created by T0 here:
    #0 0x7f98e8e12270 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x38270)
    #1 0x5561f51eaede in BLI_threadpool_insert /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/threads.c:269
    #2 0x5561f21ffced in WM_jobs_start /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_jobs.c:422
    #3 0x5561f25f9716 in clip_start_prefetch_job /home/i74700deb64/blender/__work__/src/source/blender/editors/space_clip/clip_editor.c:1034
    #4 0x5561f25a5a5d in clip_prefetch_invoke /home/i74700deb64/blender/__work__/src/source/blender/editors/space_clip/clip_ops.c:1480
    #5 0x5561f21d1885 in wm_operator_invoke /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:1321
    #6 0x5561f21d5ccb in wm_handler_operator_call /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:2040
    #7 0x5561f21d76d4 in wm_handlers_do_intern /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:2325
    #8 0x5561f21d8faa in wm_handlers_do /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:2573
    #9 0x5561f21dc13f in wm_event_do_handlers /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:3027
    #10 0x5561f21c18d4 in WM_main /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm.c:471
    #11 0x5561f21b7018 in main /home/i74700deb64/blender/__work__/src/source/creator/creator.c:521
    #12 0x7f98dfa31b16 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x22b16)

==18187==ABORTING

I think it should lock the reload button and if pressed highlight the ongoing prefetch job percentage with an appropriate message in the bottom panel{F4031466}