UDIM Texture Paint Crash #73110

Closed
opened 2020-01-14 08:09:13 +01:00 by Thura Thein Tin · 14 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-10 15:30, hash: 1cb938ef2c
Worked: (optional)

Short description of error
1.Paint on Multiple UDIM texture cause Blender crash
2.Pack all in blend didn't work.

Exact steps for others to reproduce the error

  1. Please open the attach Blend file.UDIM Texture paint Crash.zip
  2. The file is ready to paint.
  3. paint a stroke on the model.
  4. Blender crash.

I try to pack all texture file in the blend file . But It only pack the start of UDIM file ( 1001 ) only.

Thanks.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13 **Blender Version** Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-10 15:30, hash: `1cb938ef2c` Worked: (optional) **Short description of error** 1.Paint on Multiple UDIM texture cause Blender crash 2.Pack all in blend didn't work. **Exact steps for others to reproduce the error** 1. Please open the attach Blend file.[UDIM Texture paint Crash.zip](https://archive.blender.org/developer/F8277561/UDIM_Texture_paint_Crash.zip) 2. The file is ready to paint. 3. paint a stroke on the model. 4. Blender crash. I try to pack all texture file in the blend file . But It only pack the start of UDIM file ( 1001 ) only. Thanks.

Added subscriber: @Thura

Added subscriber: @Thura
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

I cannot reproduce with the attached file. Perhaps due to missing textures.
If I still perform the steps provided it doesn't crash for me.

Please provide us with an as simple as possible blend file that shows the issue. Remove anything that is not required to check the bug.

I cannot reproduce with the attached file. Perhaps due to missing textures. If I still perform the steps provided it doesn't crash for me. Please provide us with an as simple as possible blend file that shows the issue. Remove anything that is not required to check the bug.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

2.Pack all in blend didn't work.
I try to pack all texture file in the blend file . But It only pack the start of UDIM file ( 1001 ) only.

This is part of #72390 (Improve UDIM functionality), see D6492: Support packing UDIM textures

> 2.Pack all in blend didn't work. > I try to pack all texture file in the blend file . But It only pack the start of UDIM file ( 1001 ) only. This is part of #72390 (Improve UDIM functionality), see [D6492: Support packing UDIM textures](https://archive.blender.org/developer/D6492)
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Can confirm a crash.

@Jeroen-Bakker: since UDIMs cannot be packed atm., @Thura provided the files in the Texture/UDIM ER TExtures folder.
(just use File > External Data > Find Missing Files to browse to that folder, wait a bit to let the viewport update, then paint)

seems BKE_image_get_tile_from_iuser cant get an ImageTile, checking...

(doesnt seem to happen on all maps, but painting on ER.Shadowpass seems to cause a crash relyably...)

1   image_initialize_after_load               image.c            3880 0x302b2cb 
2   load_sequence_single                      image.c            3964 0x302b565 
3   image_load_sequence_file                  image.c            3990 0x302b616 
4   image_acquire_ibuf                        image.c            4810 0x302d594 
5   BKE_image_has_ibuf                        image.c            4946 0x302da32 
6   project_paint_prepare_all_faces           paint_image_proj.c 4447 0x3cd3624 
7   project_paint_begin                       paint_image_proj.c 4581 0x3cd3bdb 
8   paint_proj_new_stroke                     paint_image_proj.c 5999 0x3cd7c2b 
9   texture_paint_init                        paint_image.c      495  0x3cbaa81 
10  paint_stroke_test_start                   paint_image.c      682  0x3cbb1fd 
11  paint_stroke_modal                        paint_stroke.c     1390 0x3cdff85 
12  paint_invoke                              paint_image.c      704  0x3cbb2ac 
13  wm_operator_invoke                        wm_event_system.c  1273 0x32affdf 
                                                               
Can confirm a crash. @Jeroen-Bakker: since UDIMs cannot be packed atm., @Thura provided the files in the `Texture/UDIM ER TExtures` folder. (just use `File` > `External Data` > `Find Missing Files` to browse to that folder, wait a bit to let the viewport update, then paint) seems `BKE_image_get_tile_from_iuser` cant get an `ImageTile`, checking... (doesnt seem to happen on all maps, but painting on `ER.Shadowpass` seems to cause a crash relyably...) ``` 1 image_initialize_after_load image.c 3880 0x302b2cb 2 load_sequence_single image.c 3964 0x302b565 3 image_load_sequence_file image.c 3990 0x302b616 4 image_acquire_ibuf image.c 4810 0x302d594 5 BKE_image_has_ibuf image.c 4946 0x302da32 6 project_paint_prepare_all_faces paint_image_proj.c 4447 0x3cd3624 7 project_paint_begin paint_image_proj.c 4581 0x3cd3bdb 8 paint_proj_new_stroke paint_image_proj.c 5999 0x3cd7c2b 9 texture_paint_init paint_image.c 495 0x3cbaa81 10 paint_stroke_test_start paint_image.c 682 0x3cbb1fd 11 paint_stroke_modal paint_stroke.c 1390 0x3cdff85 12 paint_invoke paint_image.c 704 0x3cbb2ac 13 wm_operator_invoke wm_event_system.c 1273 0x32affdf ``` ```

This issue was referenced by aee2b754dc

This issue was referenced by aee2b754dc8f5c4ddaf840cd83f979dd22fe4dc3
Member

The problem is that project_paint_face_paint_tile says to look for tile 1003 (because corresponding uv is in that range), but BKE_image_get_tile_from_iuser doesnt find it.
Underlying problem is that the .1003 file is actually on disk, but the 1003 tile is not added in blender.

Easier repro file (along with textures):
#73110.zip

Reminds me of the design question raised in #72734 (UDIMs don't behave properly on imported geometry) if it is actually necessary to add these tiles in blender as a list (in contrast to just looking on disk if the UVs are in that range) -- but this a whole different (design) question.

In order to survive (not crash), I would propose to be a bit more strict in image_quick_test to avoid problems later...

The problem is that `project_paint_face_paint_tile` says to look for tile 1003 (because corresponding uv is in that range), but `BKE_image_get_tile_from_iuser` doesnt find it. Underlying problem is that the `.1003` file is actually on disk, but the `1003` tile is not added in blender. Easier repro file (along with textures): [#73110.zip](https://archive.blender.org/developer/F8277727/T73110.zip) Reminds me of the design question raised in #72734 (UDIMs don't behave properly on imported geometry) if it is actually necessary to add these tiles in blender as a list (in contrast to just looking on disk if the UVs are in that range) -- but this a whole different (design) question. In order to survive (not crash), I would propose to be a bit more strict in `image_quick_test` to avoid problems later...

UDIM Further testing.zip

Hi, thanks for taking action my report.
I try testing the UDIM error and I found the problem.

The Problem is I can only use 4 UDIM texture.

Please follow this procedure.

  1. Unzip and open the attached blend file. ( I provide texture folder) . Please relink if missing texture.
    2.I already used 4 UDIM Textures. In the shading windows please connect the emission shader to add shder 2nd slot.
    3.The model turn pink because you just added the 5th UDIM texture ( It is not a missing texture)
    4.To verify this please down in the shader window. I collect all UDIM texture in a frame.
    5.Disconnect any of the UDIM texture from the material . The material work again.

( 4 Maximum UDIM texture work well. That is my testing . Thanks for take action to my report.)

Thura Thein Tin.

[UDIM Further testing.zip](https://archive.blender.org/developer/F8279545/UDIM_Further_testing.zip) Hi, thanks for taking action my report. I try testing the UDIM error and I found the problem. The Problem is I can only use 4 UDIM texture. Please follow this procedure. 1. Unzip and open the attached blend file. ( I provide texture folder) . Please relink if missing texture. 2.I already used 4 UDIM Textures. In the shading windows please connect the emission shader to add shder 2nd slot. 3.The model turn pink because you just added the 5th UDIM texture ( It is not a missing texture) 4.To verify this please down in the shader window. I collect all UDIM texture in a frame. 5.Disconnect any of the UDIM texture from the material . The material work again. ( 4 Maximum UDIM texture work well. That is my testing . Thanks for take action to my report.) Thura Thein Tin.
Member

Hi @Thura,

The Problem is I can only use 4 UDIM texture. The model turn pink because you just added the 5th UDIM texture ( It is not a missing texture)

This seems to be a separate issue, could you open another report for this? [I can sort of confirm, but it seems totally unrelated to the crash reported earlier]
Btw. the crash is already solved with D6578: Fix #73110: UDIM Texture Paint Crash, just needs another approval and then could be committed...

Hi @Thura, > The Problem is I can only use 4 UDIM texture. The model turn pink because you just added the 5th UDIM texture ( It is not a missing texture) This seems to be a separate issue, could you open another report for this? [I can sort of confirm, but it seems totally unrelated to the crash reported earlier] Btw. the crash is already solved with [D6578: Fix #73110: UDIM Texture Paint Crash](https://archive.blender.org/developer/D6578), just needs another approval and then could be committed...

Ok. I will report this as a new. Thanks.

Ok. I will report this as a new. Thanks.
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Philipp Oeser self-assigned this 2020-01-21 10:59:17 +01:00
Thomas Dinges added this to the 2.82 milestone 2023-02-08 16:41:33 +01:00
Sign in to join this conversation.
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
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73110
No description provided.