Crash when baking diffuse map. (EXCEPTION_ACCESS_VIOLATION) #77106
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#77106
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10 Pro x64
Graphics card: AMD Radeon R9 290
Memory: 24 GB DDR3
Blender Version
Broken: Seems to be all 2.8 versions
Worked: None of the versions.
Short description of error
When trying to bake diffuse of selected materials, the bake crashes blender at exactly 60% throwing an EXCEPTION_ACCESS_VIOLATION every time.
Exact steps for others to reproduce the error
Files:
crashingBlend.blend
Added subscriber: @Lynxon
Added subscriber: @iss
Changed status from 'Needs Triage' to: 'Confirmed'
Access violation reading location
Running debug build I got completely different stacktrace:
Exception thrown at 0x00007FFB05C8169C (ucrtbased.dll) in blender.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
Added subscriber: @grosgood
@iss declared:
Not me. In the debug build I have here - see my attached sys-info.txt - I SEGV right here at @ intern/cycles/kernel/bvh.h, line 326; ditto with the release build.
Here's the backtrace. Note the parameters being passed to ## ccl::scene_intersect_local## has uninitialized pointers: ##lcg_state=0x0, local_object=0, local_isect=0x0,##
The die point can be anywhere from 40% to 57% through the render.
System Info
system-info.txt
Some initial observations that may not be that relevant, but for the record:
I don't think the matter of missing textures is reason to close this bug as Blender should (and usually does) posts warnings about missing textures: it should not crash in their absence. Their absence may not even be relevant. I presume @Lynxon had them and still observed crashes.
So far, I have not been able to construct a simpler file that still exhibits the bug. The posted file is interesting, but poses a number of distracting rabbit holes. Should I produce such a file, I'll post it here.
Added subscribers: @LukasStockner, @brecht
Commit
799779d432
by @LukasStockner on Jun 15 11:03:29 2018 +0200, as a part of D3479 added intern/cycles/kernel/svm/svm_ao.h. At line 69 of that file, (backtrace frame #1; see my first post) , ##scene_intersect_local(kg, &ray, NULL, sd->object, NULL, 0)## is invoked with parameters ##local_isect=0x0## and ##lcg_state=0x0##, thus setting the tripwire for this bug.Perhaps ##scene_intersect_local()## could favourably employ at line 326 of [bvh.h]] a sanity check on ##local_isect## similar to what @brecht introduced some lines down at [ https:*developer.blender.org/diffusion/B/browse/master/intern/cycles/kernel/bvh/bvh.h$339|339. See #73778 and commit
ca72ff599a
.@Lynxon:
I waltzed through your various materials and, for each Ambient Occlusion node I found, I deselected the Only Local checkbox. With that, I was able to generate a color-only diffuse bake on your file. I advance this merely as a technical workaround (i.e, a hack), in case you really need to get off the dime on this file and the results still fit your aesthetic aims.
This issue was referenced by blender/cycles@e4fc1b6071
This issue was referenced by
389d550412
Changed status from 'Confirmed' to: 'Resolved'