Page MenuHome

SEGFAULT when viewing Movie Clip as a Background Image in a Camera
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Clear Linux (Build ID: 33060); Kernel 5.5.15-930.native
Graphics card: Intel(R) HD Graphics 4000 (IVB GT2)
This error occurs even with blender-softwaregl.

Blender Version
Broken: 7cd2c1fd2e7a, 144f780c71ed
Worked: LTS 2.83.3
Caused by rB97b597cd0440: GPU: Move and rename gpu_draw*.c to C++

Short description of error

Blender crashes when a movie clip is set as background image in a camera and viewing through said camera. Setting an image as the background image still works as intended.

Exact steps for others to reproduce the error

Load a video as a background image in a camera and view through it. I've attached a video just in case I didn't express it correctly. From my tests it doesn't matter which video is used.


Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Aug 3 2020, 12:05 PM
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".

Confirmed, checking...

Philipp Oeser (lichtwerk) triaged this task as High priority.Aug 3 2020, 1:31 PM

Git bisect gives rB97b597cd0440: GPU: Move and rename gpu_draw*.c to C++ as the culprit commit

gpu_get_movieclip_gputexture returns NULL in BKE_movieclip_get_gpu_texture

1  BKE_movieclip_get_gpu_texture       movieclip.c      1905 0x3331d4b 
2  image_camera_background_texture_get overlay_image.c  206  0x3ac5791 
3  OVERLAY_image_camera_cache_populate overlay_image.c  336  0x3ac5e5f 
4  OVERLAY_camera_cache_populate       overlay_extra.c  1262 0x3ac1a4a 
5  OVERLAY_cache_populate              overlay_engine.c 387  0x3abb4d0 
6  drw_engines_cache_populate          draw_manager.c   1015 0x3a694a5 
7  DRW_draw_render_loop_ex             draw_manager.c   1489 0x3a6a907 
8  DRW_draw_view                       draw_manager.c   1404 0x3a6a4f9 
9  view3d_draw_view                    view3d_draw.c    1595 0x45900ba 
10 view3d_main_region_draw             view3d_draw.c    1617 0x4590161 
11 ED_region_do_draw                   area.c           538  0x3ebae66 
12 wm_draw_window_offscreen            wm_draw.c        697  0x36e077f 
13 wm_draw_window                      wm_draw.c        823  0x36e0d05 
14 wm_draw_update                      wm_draw.c        1027 0x36e1344 
15 WM_main                             wm.c             481  0x36dde54 
16 main                                creator.c        546  0x3285c63