Page MenuHome

Assert going to Texture Paint workspace without a UVMap
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-5.8.4-200.fc32.x86_64-x86_64-with-fedora-32-Thirty_Two 64 Bits
Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 450.66

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-24 09:56, hash: rBf564126cdf1b
Caused by rBd6525e8d133b: Use DrawManager for Image/UV Editor I think

Short description of error
Assert going to Texture Paint workspace without a UVMap

Exact steps for others to reproduce the error
From the default startup file:

  • remove the UVMap from the default Cube
  • switch to Texture Paint workspace -->
BLI_assert failed: /blender/source/blender/draw/intern/draw_cache_impl_mesh.c:1147, drw_mesh_batch_cache_check_available(), at '!DRW_batch_requested(((GPUBatch **)&cache->batch)[i], 0)'

Sound rather harmless, just dropping this here so @Jeroen Bakker (jbakker) is aware.

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Sep 24 2020, 12:56 PM
Philipp Oeser (lichtwerk) created this task.

This needs to be investigated, IMO it should still create a batch, but it should have an empty IndexBuffer. It could be that the current implementation doesn't following the architecture. The draw manger used to have some hacks in order to support rendering UVs in the old image editor. The new image editor should work fully in the architecture. That was one of the goals of that change.