Viewport animation render crashes when collapsing the viewport. #82000

Open
opened 2020-10-23 11:53:46 +02:00 by user1 · 19 comments

Blender Version
Broken: version: 2.91.0 Beta, branch: master, commit date: 2020-10-21 22:57, hash: b0f34eee30 (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
0001-0485.mp4
Viewport render crash.blend

**Blender Version** Broken: version: 2.91.0 Beta, branch: master, commit date: 2020-10-21 22:57, hash: `b0f34eee30` (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** [0001-0485.mp4](https://archive.blender.org/developer/F9047282/0001-0485.mp4) [Viewport render crash.blend](https://archive.blender.org/developer/F9047283/Viewport_render_crash.blend)
Author

Added subscriber: @user1

Added subscriber: @user1

Added subscriber: @rjg

Added subscriber: @rjg

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
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 ```

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

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

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

Added subscriber: @dfelinto

Added subscriber: @dfelinto

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)

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)

@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.

@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.

Added subscriber: @ketanjainn

Added subscriber: @ketanjainn

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

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

@ketanjainn We have an introduction for new developers on [Blender's wiki ]]. The first step would be to familiarize yourself with how https:*wiki.blender.org/wiki/Developer_Intro/Overview , setup your https:*wiki.blender.org/wiki/Developer_Intro/Environment and https:*wiki.blender.org/wiki/Building_Blender . Once that is done you can start diving into Blender's source code. It may help to learn about concepts used in https:*wiki.blender.org/wiki/Source . 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 https:*blender.chat/channel/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 [ https://devtalk.blender.org/c/blender | DevTalk .

@ketanjainn We have an introduction for new developers on [Blender's wiki ]]. The first step would be to familiarize yourself with how [[ https:*wiki.blender.org/wiki/Developer_Intro/Overview | Blender's development is organized ]], setup your [[ https:*wiki.blender.org/wiki/Developer_Intro/Environment | development environment ]] and [[ https:*wiki.blender.org/wiki/Building_Blender | build Blender ]]. Once that is done you can start diving into Blender's source code. It may help to learn about concepts used in [[ https:*wiki.blender.org/wiki/Source | 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 [[ https:*blender.chat/channel/blender-coders | #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 [[ https://devtalk.blender.org/c/blender | DevTalk ](https:*wiki.blender.org/wiki/Developer_Intro).

@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

@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

@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 [ https:*blender.chat/direct/rjg/ | direct chat .

@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 [[ https:*blender.chat/direct/rjg/ | direct chat ](https:*blender.chat/channel/blender-coders).

Added subscriber: @patjan

Added subscriber: @patjan
Janusch Patas self-assigned this 2020-10-24 13:50:04 +02:00

You can find my suggested fix here: https://developer.blender.org/D9334

You can find my suggested fix here: https://developer.blender.org/D9334
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Added subscriber: @Siddarth-Calidas

Added subscriber: @Siddarth-Calidas

Has this been fixed? There was another issue that had this same title and some discussion went on there.

Has this been fixed? There was another issue that had this same title and some discussion went on there.
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:14:26 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#82000
No description provided.