Crash when adding subdivision surface modifier to object while in rendered mode #82608
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#82608
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: Win10 2004
Graphics card: GeFroce GTX 980
Blender Version
Broken: (2.90.1)? Currently only reproducible in 2.92 based on provided steps.
Worked: (2.8.3)
Short description of error
Blender crashes in a project with displacement when adding a subdivision surface modifier to the object while the Viewport Shading is set to Rendered
Exact steps for others to reproduce the error
While it is rendering, add a Subdivision Surface modifier
#82608.blend
Old information and log files:
Here are the log files from the scene and the debug info
habitat_scene_02.crash.txt
blender_debug_output.txt
blender_system_info.txt
https://pasteall.org/LG6X
https://pasteall.org/j0Lv
https://pasteall.org/9MuA
Added subscriber: @Sergey-Belyaev
Added subscriber: @rjg
Changed status from 'Needs Triage' to: 'Needs User Info'
Unfortunately stack trace is empty, perhaps because you're using the Steam version. This might be a duplicate of #81116 if you're using OptiX denoising in the viewport. Check if disabling the viewport denoising avoids the crash.
If this doesn't solve the issue, please download Blender 2.92 for testing and extract the archive. Open Blender's folder and double click on the
blender_debug_gpu.cmd
. This will start Blender in debug mode and create log files. Try to make Blender crash again. Once it crashes the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located inC:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt
(or simply type%TEMP%
into the path bar of the Windows Explorer).I am not enabled any viewport denoising.
I am downloading 2.92 and will let you know if it crashes
ok it crashes too
habitat_scene_02.crash.txt
blender_debug_output.txt
blender_system_info.txt
Does this only occur in a specific project? If yes, please create a minimal version of this project file that allows you to reproduce the crash and upload it here as well. The problem seems to be caused during setup of the render kernels by having true displacement enabled. This could theoretically crash when
node
would beNULL
inGeometry::has_true_displacement()
.Here is how I can reproduce the problem
Start new blender;
delete cube;
create plane
scale it
go in edit mode
rmb subdivide 100
rmb subdivide 1
go to modifiers
add displacment
create new texture
set to uv
go to texture
open height map in .tif format
click on rendered mode
click on solid mode (sometimes it crashes when going into solid mode from rendered mode)
add subdivision
crash
I made a video for you to show it
https://youtu.be/lQKY98DOosM
blender_debug_output.txt
blender_system_info.txt
test.crash.txt
Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Added subscriber: @lichtwerk
Hm, weird, I have seen weird artifacts once [no crash but hexagon shaped shading anomalies when adding the subd modifier], but havent been able to reproduce since.
weird enough this only happens in blender 2.9 en not 2.83
EXCEPTION_ACCESS_VIOLATION in Blender 2.90.1to Crash when adding subdivision surface modifier to object while in rendered modeChanged status from 'Needs Developer To Reproduce' to: 'Confirmed'
I can confirm the crash in 2.92. With the linked file, switch to Viewport Shading to Rendered and add a Subdivision Surface modifier while it is rendering samples.
#82608.blend
Since we haven't bisected #82607 yet, it may have a related cause. Both stack traces go through
ccl::GeometryManager::device_update
.Added subscribers: @kevindietrich, @brecht
I was unable so far to reproduce a crash in 2.90.1, but there it may be a duplicate of some random crashes that were already fixed.
I could not get it to crash in 2.91 beta. Can anyone confirm if that work crashes?
However I do see mesh artifacts in 2.92, which I'm guessing is related to the recent node API changes. @kevindietrich, can you check this?
I got a buffer overflow when packing the normals:
which corroborates @rjg's stacktrace.
I think it is because the attributes are not cleared on the original mesh as we just copy the new attributes to it, so we have stale attribute data (vertex normals on both the regular and subd attributes).
@brecht I was unable to reproduce it in 2.90.1 and 2.91 as well. Perhaps the originally reported issue is a different one than the provided steps reproduce?
@Sergey-Belyaev Do the steps you've provided really result in a crash in 2.90.1 and 2.91 or only in 2.92?
The video and steps I did in 2.92 as you asked it to test it in there.
However my first post about the crashes was with 2.90.1
@Sergey-Belyaev Just to avoid any confusion, are you saying that the steps and error are not the same in 2.90.1? In that case, what are the steps to get the error in 2.90.1?
Here is how I can reproduce it in Blender2.90.1
I think the problem is that the panes are setup this way: split from left to right to have two vertical panes and then the right one from bottom to top to get one horizontal pane>then setup all to rendered mode and bottom right to shader editor
Here is the video and description if you dont want to watch:
https://youtu.be/fZ9umdBdz44
and crash
I included the blend file and two videos to show it
4272_autosave.crash.txt
4272_autosave.blend
blender_debug_output.txt
blender_system_info.txt
viewportPanes_blendercrash.mp4
I committed a fix for the issue in 2.92 (
88bb29dea6
) which also reported elsewhere, but I cannot reproduce the crash with the two viewport windows, so I guess this was already fixed since then, and this could be closed.With the new instructions I could get a crash in 2.90.1, 2.91 (build from 2020-11-06
8df84f7be4
) and 2.92 (build from 2020-11-0227acf8ced8
). The cause may not be the same in all versions, it could just be a common trigger. I will check with more recent builds, once I'm done bisecting another issue.2.90.1:
2.91:
2.92:
Edit: Still crashes in master
I still cannot reproduce the crash in master (
a25bc79633
) with the new instructions, I tried with both a debug and a release build. Also, this issue is different than the original report (adding a modifier crashes Cycles, which was fixed), so suggest to rename this report, or open a new one.@kevindietrich I will create a new report tomorrow
Is there a bug in 2.91 still? That's mainly what we need to know for the release. A regression in master needs to be fixed too, but it's not as urgent.
@brecht This appears to be fixed in 2.91 and 2.92 now. I can't reproduce the issue anymore.
@Sergey-Belyaev Could you test again with the latest daily builds of 2.91 and 2.92, to confirm that the issue is gone?
Added subscriber: @dfelinto
@rjg if you can reproduce with an old build, but not with the latest master then the issue is fixed. If that's the case can you close this?
@dfelinto I wanted have another look at this, just to make sure. I only did a quick check last evening. I will close this if the issue is definitely gone.
Changed status from 'Confirmed' to: 'Resolved'
I've bisected the build and the second problem appears to be fixed by
d59fa12f2a
as well.I will download the latest build and try it out
just tested with blender-2.91.0-dca36a8ec922-windows64 and I cannot reproduce it anymore :)
I think it is fixed now ;D
thx guys
Added subscriber: @Danijan
I have a very similar issue. Using Blender 3.3.1 on Windows 10. Open Blender, delete cube, add roundcube with radius 1, got to edit mode, select 1 half, delete vertices, go to object mode, add modifier mirror, add modifier subdivision, crash. Repeatable.
Even when I try to add the SDS modifier to the starting cube, it instantly crashes
I've just tried blender-3.3.2-candidate+v33.19202736d516-windows.amd64-release with the same effect.
Same with blender-3.5.0-alpha+master.9a09adb7aff8-windows.amd64-release
... as well as with blender-3.4.0-beta+v34.841460afcebd-windows.amd64-release. Works in blender-2.93.11-stable+v293.d52a0fa11595-windows.amd64-release, though.
@Danijan, please create a new bug report, and provide all the information requested in the form:
https://developer.blender.org/maniphest/task/edit/form/1/
This reports is two years old and most likely different than the issue you are having.