Blender 2.78 can't render a plane with subdivision surface, displacement modifier & normal map on it #49523
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#49523
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
OS: Windows 10
GPU: GTX 1080
CPU: intel i7 5820k
RAM: 32gb
drivers: GeForce Game Ready Driver version 372.90
system-info.txt
Blender Version
Broken: 2.78
Worked: 2.78 release candidate v2
Short description of error
Blender cycles won't render a subdivided plane with displacement modifier & normal map on it. The program goes unresponsive or gets stuck when using either GPU or CPU to render it & won't close unless closed from task manager. I rendered a scene that had the same plane in it with 2.78 release candidate v2 and it worked fine.
Open the .blend file, press render and it won't render the image. If you use the preview render in viewport, it will say Blender is not responding at the top left corner. You can't cancel the render either.
BUG.blend
Exact steps for others to reproduce the error
Add a plane, scale it up > CTRL+A > appply scale. subdivide it 100 times in edit mode using w > subdivide. Add a subdivision surface with subdiv level 2 or 3. Then add a displacement modifier & a 4k displacement texture. It will still render it just fine. Then add a diffuse material. Add a normal map node & an image texture node with non-color data. Add a 4k normal map texture to the image texture node & connect it to the normal map's color input. Then connect the normal map node's output to the normal input of the diffuse shader. Try to render the scene > it gets stuck and won't render. If you change the viewport to rendered, blender stops responding & you have to close it from task manager.
reproduced_bug.blend
Changed status to: 'Open'
Added subscriber: @Syntex3D
#49576 was marked as duplicate of this issue
Closed as duplicate of #49472
Changed status from 'Duplicate' to: 'Open'
I used normal subsurf modifier, not adaptive subsurf & the material is not black. This is not a duplicate of that bug
Added subscriber: @Sergey
Can reproduce the error on Windows. Doesn't happen on Linux tho. Indeed 2,78-rc2 synchronizes the scene quite fast while 2.78 release is getting stuck.
Something weird, will dig into!
Added subscriber: @brecht
@brecht, this is caused by recent mikkspace fix from you. There seems to be some really suspecious code around "else" when updating min/max value. Leaving it out seemsto be more clear. But unfortunately, this particular bug seems to be a compiler bug of some sort. Here is a patch which works it arond:
P408: Fix for #49523
But can't doublecheck whether the initial report you've been fixing here is still fixed (for some reason reverting the fix does not cause any crashes or anytthing).
Mind having a second glance perhaps?
Added subscriber: @jkmonsun
This issue was referenced by
5a0f397eaa
It's odd, the
else
indeed shouldn't have been there but not sure why this is happening. Restoring it to work more like the old code seems to fix it, so I committed that. I left out themin()
since I don't think it's needed.Changed status from 'Open' to: 'Resolved'
@brecht, seems to be some sort of compiler issue. I remember having similar crazy thing happening, but that was caused by code area not having SSE2 flag and which tried to use SSE2 function.. But nowadays SSE2 is enabled globally. Also didn't see anything odd with CFLAGS or anything. Would be interesting to see if the issue happens with MSVC2015, but it'll take forever for me to test that on my laptop, so can't be bothered right now. It also didn't happen in debug builds and in release builds on Linux.
Thanks for giving an extra help here!