Page MenuHome

Crash when switching to UVEditing or Texture Paint
Closed, ResolvedPublic


System Information
Operating system: ArchLinux
Graphics card: Nvidia GTX 1080

Blender Version
Broken: 2.80, Manual build from today commit c358da6b21158792bc05fa17fa00440675d0e76e
Worked: 2.80, Manual build from yesterday (c041e10c9a94)

Short description of error
Blender crashes when switching to the UV Editing tab or Texture Paint tab in default startup.
Another type of crash stack trace is generated opening the file from this issue T63969, and then switching to the Animation tab as soon as possible.

Exact steps for others to reproduce the error
Just open Blender and switch to UV Editing or Texture Paint.

I did not split the bugs because they are probably related, but tell me if you would like them to be filed separately.

Event Timeline

I can unwrap but only without the UV editor open. If the UV editor is open unwraping crashes directly. Same for the UV reset. It's probably related. This is with the latest build through the buildbot: May 8, 22:00 (GMT?).
The version two or three days ago worked fine, meaning I could unwrap while having the UV editor open.

Brecht Van Lommel (brecht) triaged this task as Confirmed, High priority.

@Clément Foucault (fclem), in the future, please don't commit big refactorings in the evening when it's too late to fix issues like this before the next nightly build.

6e33729462d9 Should fix the UV Editing tab problem.

Seems to fixed it for my problem.

I'm using commit f09aead64a7 and I can confirm that 6e33729462d9 fixes the UV Editing tab crash and the crash using the blend file from T63969, but switching to Texture Paint tab still crashes:

#0  texpaint_request_active_uv (cache=cache@entry=0x0, me=me@entry=0x7fffc200e708) at /home/smjert/Development/blender-git/blender/source/blender/draw/intern/draw_cache_impl_mesh.c:4253
#1  0x00005555567cc77b in DRW_mesh_batch_cache_get_uv_edges (me=me@entry=0x7fffc200e708) at /home/smjert/Development/blender-git/blender/source/blender/draw/intern/draw_cache_impl_mesh.c:4517
#2  0x0000555557de3dd3 in draw_uvs_texpaint (scene=0x7fffe3eac808, depsgraph=0x7fffde42d108, ob=0x0) at /home/smjert/Development/blender-git/blender/source/blender/editors/uvedit/uvedit_draw.c:232
#3  ED_uvedit_draw_main (sima=sima@entry=0x7fffde39a008, scene=scene@entry=0x7fffe3eac808, view_layer=view_layer@entry=0x7fffde383ec8, obedit=obedit@entry=0x0, obact=obact@entry=0x7fffde444808, depsgraph=depsgraph@entry=0x7fffde42d108)
    at /home/smjert/Development/blender-git/blender/source/blender/editors/uvedit/uvedit_draw.c:509
#4  0x0000555556a2d69b in image_main_region_draw (C=0x7fffe3e63208, ar=0x7fffde4e4ac8) at /home/smjert/Development/blender-git/blender/source/blender/editors/space_image/space_image.c:609
#5  0x0000555556ad6aa1 in ED_region_do_draw (C=C@entry=0x7fffe3e63208, ar=ar@entry=0x7fffde4e4ac8) at /home/smjert/Development/blender-git/blender/source/blender/editors/screen/area.c:567
#6  0x00005555565c80dc in wm_draw_window_offscreen (stereo=false, win=0x7fffde43d708, C=0x7fffe3e63208) at /home/smjert/Development/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:596
#7  wm_draw_window (win=0x7fffde43d708, C=0x7fffe3e63208) at /home/smjert/Development/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:732
#8  wm_draw_update (C=C@entry=0x7fffe3e63208) at /home/smjert/Development/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:895
#9  0x00005555565c5808 in WM_main (C=0x7fffe3e63208) at /home/smjert/Development/blender-git/blender/source/blender/windowmanager/intern/wm.c:424
#10 0x00005555561a3d5b in main (argc=1, argv=0x7fffffffe318) at /home/smjert/Development/blender-git/blender/source/creator/creator.c:500

Seems the same crash, just with source lines number updated.

Though it still crashes with the latest commit (7c9e649015d), switching on Texture Paint.