Page MenuHome

Viewport animation render crashes when collapsing the viewport.
Confirmed, NormalPublicBUG

Description

Blender Version
Broken: version: 2.91.0 Beta, branch: master, commit date: 2020-10-21 22:57, hash: rBb0f34eee30c4 (and 2.83, 2.80, ...)
Worked: never

Short description of error
Viewport animation render crashes when collapsing the viewport.

Exact steps for others to reproduce the error

Event Timeline

I can confirm this issue. ED_view3d_draw_offscreen_imbuf seems to get passed invalid pointers to region and v3d.

ED_view3d_draw_offscreen_imbuf(Depsgraph * depsgraph, Scene * scene, eDrawType drawtype, View3D * v3d, ARegion * region, int sizex, int sizey, eImBufFlags imbuf_flag, int alpha_mode, const unsigned char * viewname, GPUOffScreen * ofs, unsigned char * err_out) Line 1889	C
screen_opengl_render_doit(const bContext * C, OGLRender * oglrender, RenderResult * rr) Line 373	C
screen_opengl_render_apply(const bContext * C, OGLRender * oglrender) Line 514	C
screen_opengl_render_anim_step(bContext * C, wmOperator * op) Line 1187	C
screen_opengl_render_modal(bContext * C, wmOperator * op, const wmEvent * event) Line 1239	C
wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2022	C
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2803	C
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2851	C
wm_event_do_handlers(bContext * C) Line 3273	C
WM_main(bContext * C) Line 479	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 523	C
Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.Oct 23 2020, 12:50 PM
Robert Guetzkow (rjg) triaged this task as High priority.

This also affects Blender 2.83.x and all previous versions as far back as 2.80.

Dalai Felinto (dfelinto) lowered the priority of this task from High to Normal.Oct 23 2020, 6:50 PM
Dalai Felinto (dfelinto) updated the task description. (Show Details)

Sorry but this is not a high priority bug. We had this for a long time it seems. It would be nice to fix of course, but as far as I see, this is not a priority for 2.91.

(also think this is probably a good first issue, but let that not stop anyone from fixing it)

@Dalai Felinto (dfelinto) Sure, no problem. I triaged it as high since it results in a crash and I wasn't sure if it's in the "really obscure" category from the triaging playbook to warrant a lower priority.

Can someone help get started with this? I am a complete beginner developer.

@Ketan Jain (ketanjainn) We have an introduction for new developers on Blender's wiki. The first step would be to familiarize yourself with how Blender's development is organized, setup your development environment and build Blender. Once that is done you can start diving into Blender's source code. It may help to learn about concepts used in Blender's architecture. Don't worry, you don't have to understand everything right away. If you have further questions, that are unrelated to this ticket, I would suggest you join the #blender-coders channel and ask them there if they are short. Longer posts or questions related to the developement that can't be quickly answered in chat are best suited for DevTalk.

Robert Guetzkow (rjg) changed the subtype of this task from "Report" to "Bug".Oct 24 2020, 11:46 AM

@Robert Guetzkow (rjg) I have already done, the above-mentioned steps. The next thing I am facing problem is how to start solving this particular issue. Since according to the documentation it was recommended to work on A "Good-First-Issue" as above

@Ketan Jain (ketanjainn) I'll have to take another look at the code myself in order to give you pointers in the right direction. I would suggest we continue this conversation either on #blender-coders or in a direct chat.

@Ketan Jain (ketanjainn) did you fix the bug or can I start with it??
I'm starting with blender so , @Robert Guetzkow (rjg) can you help to get started with this issue??