uvmap causes crash when entering texture paint mode #45514
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#45514
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 and graphics card
OS: windows 8.1 64bit
GPU: NVIDIA GTX 860m
Blender Version
Broken:
version 2.75 (sub 2), branch b'master', commit date b'2015-07-17' b'13:15', hash b'955c13d'
Worked: (optional)
Short description of error
when switching to texture paint mode blender crashes. i could pin it down to the uv map, when i remove it i can enter texture paint mode without crashing.
Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
blend file: uvmap_crash.blend
crashlog:
Changed status to: 'Open'
Added subscriber: @DanielGrauer
Added subscriber: @Blendify
Can confirm
Added subscriber: @Psy-Fi
Confirmed, thanks for the report.
I would be very interested to know how this file was created.
The file even crashes on 2.75 official. It's caused by the stencil layer not being there (usually it's the same as the UV layer). Also looks like the stencil layer index is set to 2, while the mesh only has one UV layer. This should be impossible normally. I can add checks in the code to ensure it is within bounds, but best would be to know what caused the file to have this behaviour in the first place.
Added subscriber: @sindra1961
Deletion of Shrinkwrap and Lattice modifier is recorded in crashlog attached in detail, but such modifier is not set in attached .blend file.
Is crashlog a thing recorded with attached .blend file?
Added subscriber: @antony-2
@antony-2: i will see if i can figure out what happened there
@perfection cat: it is the same blend file, i just stripped it down because i can not upload the full scene. but since it also happens when the modifiers are removed i dont think they are relevant to the problem.
uvmaap causes crash when entering texture paint modeto uvmap causes crash when entering texture paint modeso i looked into the scene to see how this came to be, and it has a long history. Models in the scene have been made in the age of 2.49 and were at some point ported to 2.5+, there was a lot of stuff like multiple uvmaps, drivers, and deformation setups with lattices and such that have been removed over the years and also stencil layers.
my best guess is that we manually assigned a uvmap to a stencil layer which later got removed and somehow created this special case.
How was the stencil layer assigned manually? was it through a python script?
The fix I will attempt will do two things:
i think it was manually, i cant remember ever using a script for stencils.
This comment was removed by @DanielGrauer
This issue was referenced by
67e32b3195
Changed status from 'Open' to: 'Resolved'
Since there is no recollection of how the file was produced and there's such a complicated history, we can do little to fix the real cause of the issue. There is a big chance this won't happen with regular use of recent versions though.
To fix the file, I have added functionality in mesh validation that fixes the invalid indices for you.
Just go to a text editor or a console and run this python script:
thanks a lot for adding the functionality! i also dont think this will happen with recent files and probably not possible to reproduce this without messing with very old blender versions.