Page MenuHome

Blender crashes when changin image source to Movie
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-4.4.0-146-generic-x86_64-with-debian-stretch-sid 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.56

Blender Version
Broken: version: 2.80 (sub 70), branch: master, commit date: 2019-05-20 08:52, hash: rBbb88485a1693
Worked: (optional)

Short description of error
If you change the image source to Movie in the Image panel, Blender crashes

Exact steps for others to reproduce the error
Open this file:


Try to change the image source from Generated to Movie. Crashes evey time for me.

Event Timeline

Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.

Confirmed, checking...

 	blender.exe!IMB_anim_open_index(anim * anim, IMB_Timecode_Type tc) Line 1314	C
 	blender.exe!IMB_anim_get_duration(anim * anim, IMB_Timecode_Type tc) Line 1403	C
>	blender.exe!uiTemplateImageInfo(uiLayout * layout, bContext * C, Image * ima, ImageUser * iuser) Line 1256	C
 	blender.exe!uiTemplateImage(uiLayout * layout, bContext * C, PointerRNA * ptr, const unsigned char * propname, PointerRNA * userptr, bool compact, bool multiview) Line 927	C
 	blender.exe!UILayout_template_image_call(bContext * C, ReportList * reports, PointerRNA * _ptr, ParameterList * _parms) Line 3060	C
 	blender.exe!RNA_function_call(bContext * C, ReportList * reports, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 7417	C
 	blender.exe!pyrna_func_call(BPy_FunctionRNA * self, _object * args, _object * kw) Line 6102	C
 	[External Code]	
 	blender.exe!bpy_class_call(bContext * C, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 8276	C
 	blender.exe!panel_draw(const bContext * C, Panel * pnl) Line 143	C
 	blender.exe!ed_panel_draw(const bContext * C, ScrArea * sa, ARegion * ar, ListBase * lb, PanelType * pt, Panel * panel, int w, int em, bool vertical) Line 2273	C
 	blender.exe!ED_region_panels_layout_ex(const bContext * C, ARegion * ar, ListBase * paneltypes, const unsigned char * * contexts, int contextnr, const bool vertical, const unsigned char * category_override) Line 2429	C
 	blender.exe!image_buttons_region_layout(const bContext * C, ARegion * ar) Line 767	C
 	blender.exe!ED_region_do_layout(bContext * C, ARegion * ar) Line 534	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 556	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 735	C
 	blender.exe!wm_draw_update(bContext * C) Line 897	C
 	blender.exe!WM_main(bContext * C) Line 424	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 502	C
 	[External Code]

Crash in IMB_anim_open_index

if (anim->curr_idx[i]) {     <-----Crash
  return anim->curr_idx[i];
}

uiTemplateImageInfo sends anim NULL

if (ima->source == IMA_SRC_MOVIE && BKE_image_has_anim(ima)) {
  duration = IMB_anim_get_duration(((ImageAnim *)ima->anims.first)->anim, IMB_TC_RECORD_RUN);
}