Assigning UV for aniso tangent hangs Blender when rendering starts. Probably in rare cases only. #49384
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#49384
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?
CrashObject.blend
Attached file (also avail here if it doesn't work will hang Blender, and have at least one confirmation that it happens to others. Not sure what is wrong with it, but will hang Blender when doing the steps below:
Instant hang, the selection doesn't even update. If render was not initialized, Blender will allow switching to UV based, but will hang once you start rendering.
CPU/GPU doesn't matter. Something went kind of awry when I made of the "lamps", in that when I enabled subsurf (>0) some faces just wouldn't show up. Normals seemed okay, no doubles, everything unhid, no verts seemed loose, and I could select and move the face. I had to delete a few loops and recreate them to get it back. That's the first time that has ever happened to me (I build it on the Disney version, not sure if it matters), and I've had no issues before using UV based tangents. That's no guarantee though that I didn't mess up this time.
Both objects was previously operated like this:
The converting mesh->curve->edit&refine->mesh process has caused frequent crashes, and also did it this time. On next restart everything seem normal again and conversion process will work. I believe the full mesh isn't UV unwrapped, but it would still crash if I select all and did a simple unwrap.
Bug as posted on blenderartists:
https://blenderartists.org/forum/showthread.php?406850-Blender-2-78-Release-Candidate-2&p=3099588&viewfull=1#post3099588
Tested on 2.78RC2, one Disney shader build (which is the one I use most often) and others. Seems to be something that's been around for a while, but it's the first time it has struck me (and I'm usually using UV based tangents for aniso shading).
I'm suspecting something in the data structure to be partly cause, because of what happened to my mesh during the editing process. Not the UV tangent command itself, but what it reads from attached file.
Changed status to: 'Open'
Added subscriber: @CarlG
Added subscriber: @brecht
Confirmed. In fact Blender internal crashes as well if you use a tangent space normal map with this mesh, it uses the same mikktspace library as Cycles.
This mesh has NaN vertices. If you select all vertices and look in the 3D view Transform panel you can see this. We can fix the crash for this specific case, but the main bug is in the tool that led to these NaNs, and being able to reproduce that from scratch will probably not be possible.
This issue was referenced by
0552d5820b
Crash fixed now.
If you can find a way to create NaN vertices you can create a new bug report. The simple way to fix this existing mesh is to select all visible vertices with something like border select or linked select, then invert the selection to delete the NaN vertices.
Changed status from 'Open' to: 'Resolved'