Texture paint crashes blender
Closed, InvalidPublic

Description

System Information
Linux Fedora 25, Core i5, intel graphic card

Blender Version
Broken: 2.78c

Short description of error
Begining a paint session on a black image created in blender freezes Blender

Exact steps for others to reproduce the error
Use Cycles
Make a mesh, unwrap it.
Create a black image.
Create a material, link the black image to diffuse node.
Add a brush texture on texture panel. Select a png file.
Go in texture paint mode. Mesh is now black.
Check brush texture => ok
Click on the mesh, Blender freeze, CPU high, Computer frozen after a couple of seconds

Note: if I don't create a black image or don't link this black image to the diffuse node, I can paint. The problem is that after I painted, I cannot render with the painted texture because it's not recorded on an image.

I tried to check with strace, last lines are:

mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f440a3ff000
mprotect(0x7f440a3ff000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f440abfeef0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f440abff9d0, tls=0x7f440abff700, child_tidptr=0x7f440abff9d0) = 11682
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f4409bfe000
mprotect(0x7f4409bfe000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f440a3fdef0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f440a3fe9d0, tls=0x7f440a3fe700, child_tidptr=0x7f440a3fe9d0) = 11683
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f4408dff000
mprotect(0x7f4408dff000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f44095feef0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f44095ff9d0, tls=0x7f44095ff700, child_tidptr=0x7f44095ff9d0) = 11684
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f44085fe000
mprotect(0x7f44085fe000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f4408dfdef0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f4408dfe9d0, tls=0x7f4408dfe700, child_tidptr=0x7f4408dfe9d0) = 11685
futex(0x7f440abff9d0, FUTEX_WAIT, 11682, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
futex(0x7f440abff9d0, FUTEX_WAIT, 11682, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=11966, si_uid=1000} ---
+++ killed by SIGTERM +++

The kill is made in another terminal to be able to use my computer before to be unable to move the mouse :)

Details

Type
Bug

EDIT, unlink node crashes blender too. The only way is to not create a black image... and so I can't use my painted texture in render

Sergey Sharybin (sergey) triaged this task as "Incomplete" priority.Apr 21 2017, 4:47 PM

Please always attach .blend file which demonstrates the problem. Even in the cases when setup seems trivial.

Ok, I attach my blendfile and I add some new information.

Creating a new project with a simple sphere works. I tried to import my object in a new project and it crashes when I try to paint on.

The problem persist whatever the choosen render engine

Aaron Carlisle (Blendify) raised the priority of this task from "Incomplete" to "Needs Triage".Apr 21 2017, 10:02 PM

Ok.. I just undestand the problem and I'm feeling stupid...

I used "unwrap" instead of "smart unwrap". So the entire faces were overlapped. But I can confirm that this kind of bad manipulation can crash computer.

So, either you estimate that is a "bug", or I can set this report as "closed".

Sorry for that.

Dalai Felinto (dfelinto) closed this task as "Invalid".May 22 2017, 2:56 PM
Dalai Felinto (dfelinto) claimed this task.

It actually works, it's just really, really heavy to the computer:

Closing the report as invalid.