Viewport Rendering and Texture Baking freezes Blender #82483

Open
opened 2020-11-07 11:10:15 +01:00 by Steve · 23 comments

System Information
Operating system: Windows 7 64bit
Graphics card: GTX 1660 Super

Blender Version
Broken: 2.90.1
Worked: 2.83
Worked: builds prior to b21ba5e579

Short description of error

Blender freeze when baking ambiant occlusion

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

I prepared my scene to bake all objects, but almost every time I try to bake an object (especially the table under the tv), blender is often stuck at 0%, using high CPU usage and freeze.CtUrban.blend

Update: Viewport Rendering also crash Blender.

**System Information** Operating system: Windows 7 64bit Graphics card: GTX 1660 Super **Blender Version** Broken: 2.90.1 Worked: 2.83 Worked: builds prior to b21ba5e579 **Short description of error** Blender freeze when baking ambiant occlusion **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible). I prepared my scene to bake all objects, but almost every time I try to bake an object (especially the table under the tv), blender is often stuck at 0%, using high CPU usage and freeze.[CtUrban.blend](https://archive.blender.org/developer/F9226825/CtUrban.blend) Update: Viewport Rendering also crash Blender.
Author

Added subscriber: @Snake1726

Added subscriber: @Snake1726
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

This is due to the Margin being too large (it writes into other islands).

Should not freeze of course, so would assume this is a bug, checking further.

This is due to the Margin being too large (it writes into other islands). Should not freeze of course, so would assume this is a bug, checking further.
Philipp Oeser changed title from Blender freezing when baking ambiant occlusion to Texture Baking freezes if margin is too large and writes into other islands 2020-11-10 17:24:31 +01:00
Member

For me, this broke somewhere between b21ba5e579 and f2b5f731d5

Maybe 99436acde8 ?

While bisecting I was also seeing (not sure if this is related to)

blender: /blender/intern/cycles/kernel/../kernel/bvh/bvh_shadow_all.h:396: bool ccl::bvh_intersect_shadow_all_instancing(ccl::KernelGlobals*, const Ray*, ccl::Intersection*, ccl::uint, ccl::uint, ccl::uint*): Assertion `!"Should not happen"' failed.

Not sure if margin has to do with it though, I can also get it to freeze with zero margin

For me, this broke somewhere between b21ba5e579 and f2b5f731d5 Maybe 99436acde8 ? While bisecting I was also seeing (not sure if this is related to) ``` blender: /blender/intern/cycles/kernel/../kernel/bvh/bvh_shadow_all.h:396: bool ccl::bvh_intersect_shadow_all_instancing(ccl::KernelGlobals*, const Ray*, ccl::Intersection*, ccl::uint, ccl::uint, ccl::uint*): Assertion `!"Should not happen"' failed. ``` Not sure if margin has to do with it though, I can also get it to freeze with zero margin
Philipp Oeser changed title from Texture Baking freezes if margin is too large and writes into other islands to Texture Baking freezes 2020-11-10 18:49:07 +01:00
Member

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'
Member

There is something wrong with the urban guy.
If this object is disabled in viewports and rendering, baking seems to go fine.
(will try to contiue investigations tomorrow)

I havent been able to figure out what exactly it is that makes baking fail in this situation, but can you confirm that it works with this objects excluded/deleted?

There is something wrong with the `urban` guy. If this object is disabled in viewports and rendering, baking seems to go fine. (will try to contiue investigations tomorrow) I havent been able to figure out what exactly it is that makes baking fail in this situation, but can you confirm that it works with this objects excluded/deleted?
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

In #82483#1051971, @lichtwerk wrote:
There is something wrong with the urban guy.
If this object is disabled in viewports and rendering, baking seems to go fine.
(will try to contiue investigations tomorrow)

I havent been able to figure out what exactly it is that makes baking fail in this situation, but can you confirm that it works with this objects excluded/deleted?

Hrmf, testing further, this [urban guy is the culprit] is also not true, will try to profile now where it hangs

> In #82483#1051971, @lichtwerk wrote: > There is something wrong with the `urban` guy. > If this object is disabled in viewports and rendering, baking seems to go fine. > (will try to contiue investigations tomorrow) > > I havent been able to figure out what exactly it is that makes baking fail in this situation, but can you confirm that it works with this objects excluded/deleted? Hrmf, testing further, this [`urban` guy is the culprit] is also not true, will try to profile now where it hangs
Member

ASAN will not show any errors, this sometimes goes right the first time, then freezes on a second try (so situation is not even the same in the same build).

ASAN will not show any errors, this sometimes goes right the first time, then freezes on a second try (so situation is not even the same in the same build).

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

I'm unable to reproduce this, testing:

  • 2.90.1 and latest 2.92 master
  • CPU and CUDA baking
  • Baking multiple objects in the scene multiple times
I'm unable to reproduce this, testing: * 2.90.1 and latest 2.92 master * CPU and CUDA baking * Baking multiple objects in the scene multiple times
Author

I just tried again today with Blender 2.91.1 and 2.92 beta, it crashed after 1-3 attempts to bake textures (AO and Lightmap). I also noticed that the problem only occurs when all objects are selected for rendering, Blender doesn't seem to hang when ignoring objects from the render and baking 1 by 1.

I just tried again today with Blender 2.91.1 and 2.92 beta, it crashed after 1-3 attempts to bake textures (AO and Lightmap). I also noticed that the problem only occurs when all objects are selected for rendering, Blender doesn't seem to hang when ignoring objects from the render and baking 1 by 1.
Author

Update: Blender also crash when rendering viewport so this is not related to baking textures as I thought.

Update: Blender also crash when rendering viewport so this is not related to baking textures as I thought.
Steve changed title from Texture Baking freezes to Viewport Rendering and Texture Baking freezes Blender 2021-01-21 21:20:16 +01:00
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Will have to check again

Will have to check again
Member

Added subscriber: @leesonw

Added subscriber: @leesonw
Member

I tried this today and noticed 2 things. The first time I tried to bake it started to compile all the kernels which can take a while then I tried selecting many objects and backing them at some point I got the following

intern/cycles/device/cuda/device_impl.cpp

I am guessing we are either freeing some already freed memory or this was an uninitialised pointer. On machine machine this does not cause a crash but it does cause all the CUDA stuff in blender to just stop working which may be the cause of the issue.

I tried this today and noticed 2 things. The first time I tried to bake it started to compile all the kernels which can take a while then I tried selecting many objects and backing them at some point I got the following ## intern/cycles/device/cuda/device_impl.cpp I am guessing we are either freeing some already freed memory or this was an uninitialised pointer. On machine machine this does not cause a crash but it does cause all the CUDA stuff in blender to just stop working which may be the cause of the issue.
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

In #82483#1231332, @leesonw wrote:
I tried this today and noticed 2 things. The first time I tried to bake it started to compile all the kernels which can take a while then I tried selecting many objects and backing them at some point I got the following

##intern/cycles/device/cuda/device_impl.cpp##

I am guessing we are either freeing some already freed memory or this was an uninitialised pointer. On machine machine this does not cause a crash but it does cause all the CUDA stuff in blender to just stop working which may be the cause of the issue.

@leesonw : not sure what you got there? (seems incomplete)
If I read this right, you were able to repro an issue at that point in time.
Can you still repro?

> In #82483#1231332, @leesonw wrote: > I tried this today and noticed 2 things. The first time I tried to bake it started to compile all the kernels which can take a while then I tried selecting many objects and backing them at some point I got the following > > ##intern/cycles/device/cuda/device_impl.cpp## > > I am guessing we are either freeing some already freed memory or this was an uninitialised pointer. On machine machine this does not cause a crash but it does cause all the CUDA stuff in blender to just stop working which may be the cause of the issue. @leesonw : not sure what you got there? (seems incomplete) If I read this right, you were able to repro an issue at that point in time. Can you still repro?
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:01:59 +01:00

I am the original op, this issue is still really frequent. Freezing on almost every bake (Blender 4.0 and Blender 4.1 RC)

Is this issue going to be adressed one day?

Thx

I am the original op, this issue is still really frequent. Freezing on almost every bake (Blender 4.0 and Blender 4.1 RC) Is this issue going to be adressed one day? Thx

Here is my blend scene where it freeze on almost every bake. Open it and hit Bake those 3 cube. After 3-4 bake, blender will freeze.

Here is my blend scene where it freeze on almost every bake. Open it and hit Bake those 3 cube. After 3-4 bake, blender will freeze.
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
5 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#82483
No description provided.