Page MenuHome

Scale gizmos cause complete freezes in Blender 2.83 on Intel graphics
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-5.6.15-arch1-1-x86_64-with-glibc2.29 64 Bits
Graphics card: Mesa Intel(R) UHD Graphics 620 (KBL GT2) Intel 4.6 (Core Profile) Mesa 20.0.7

Blender Version
Broken: version: 2.83.0, branch: makepkg (modified), commit date: 2020-06-03 14:38, hash: rB211b6c29f771
Worked: 2.82a

Short description of error
Blender freezes completely when the scale gizmo is used.
The exact number of operations that can be performed before crashing seems to vary between 1 and about 10.
When frozen, the UI is unresponsive, one CPU core is pinned at 100% usage, and the system becomes quite sluggish until Blender is force-killed.
Memory usage is normal (<5% usage).
The issue doesn't seem to happen on my Nvidia card (Geforce MX150) when started with prime-run.

Exact steps for others to reproduce the error

  • Add a cube
  • Select the cube
  • Click on the resize gizmo
  • Resize on the X,Y, and Z Asis.

Result: OK. Still Working

  • Click on the rotation gizmo
  • Then click on the resize Gizmo

Result: Freeze happen, forced to restart Blender

  • Add a cube
  • Select the cube
  • Click on the resize Gizmo

Result: Freeze again

By deleting the .blend files in the /tmp folder, the user could again do more resizes, the freeze can also be triggerred with other types of actions.

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Needs Information from User.Jun 8 2020, 3:41 PM

The steps are not very clear.
Do we have to use the same gizmo a number of times or can it be different gizmos?

Any single gizmo or multiple gizmos can be used.

A recent problem with the undo system has been fixed.
For many it could look like random crashes.
Can you try the latest daily build and confirm that the problem still exists? https://builder.blender.org/download/

Just checked both the 2.83 and 2.90 builds. The problem still persists in both.

Germano Cavalcante (mano-wii) changed the task status from Needs Information from User to Needs Triage.Jun 8 2020, 8:24 PM

Hi, Have to report the same problem with someone from the french community using a Intel NUC (Intel GPU), and using Ubuntu 20.04 as OS. The issue happen more often when using the gizmo to rescale an object. The UI freeze and he can only force quit Blender.

Can this be related on "picking" on Intel? (like the pick function would go in an infinite loop because of the way the driver respond to the pick requests)
Like this change?: https://developer.blender.org/rB3685347b4172

It happen while dragging, then freeze, then have to force Quit Blender. As mentionned, this will not reproduce every time. Need to do it a couple of times to have it reproduce..

EDIT: The user tried the last build of 2.9Alpha build (june 22) and the problem is reproductible using the scale gizmo. The issue is not present on Blender 2.82a.

Edit2(June 25) Asked the user to retest using newly released Blender 2.83.1. Waiting for the feedback.

Update: In Blender 2.83.1, the problem now only occurs with the scale gizmo and not move or rotate.

Update: (june 29)
Got new result from my french community user testing the problem with 2.83.1
User tried with 2.83.1. It still freeze.

Hardware: This user run an Intel NUC, running with and i7 processor on Ubuntu, and using the integrated GPU.

Here are the steps that were used to test:

  • Add a cube
  • Select the cube
  • Click on the resize gizmo
  • Resize on the X,Y, and Z Asis.

Result: OK. Still Working

  • Click on the rotation gizmo
  • Then click on the resize Gizmo

Result: Freeze happen, forced to restart Blender

  • Add a cube
  • Select the cube
  • Click on the resize Gizmo

Result: Freeze again

By deleting the .blend files in the /tmp folder, the user could again do more resizes, the freeze can also be triggerred with other types of actions.

Germano Cavalcante (mano-wii) renamed this task from Object gizmos cause complete freezes in Blender 2.83 on Intel graphics to Scale gizmos cause complete freezes in Blender 2.83 on Intel graphics.Tue, Jun 30, 3:21 PM
Germano Cavalcante (mano-wii) updated the task description. (Show Details)

@Jeroen Bakker (jbakker), do you have a setup to test the Intel(R) UHD Graphics 620 on Linux?

I am able to reproduce this one. Will have a look

The driver freezes in glGetQueryObjectuiv (gpu_select_sample_query.c) when i = 3 adding any additional delay here makes it very hard to reproduce.

for (i = 0; i < g_query_state.active_query; i++) {
  uint result = 0;
  /* We are not using GL_QUERY_RESULT_AVAILABLE and sleep to wait for results,
   * because it causes lagging on Windows/NVIDIA, see T61474. */
  glGetQueryObjectuiv(g_query_state.queries[i], GL_QUERY_RESULT, &result);

Probably introduced by rBd712f1f83af8: GPU: Add Polyline shader (wide line emulation) But due to the randomness of the issue, you should take it with a grain of salt.

git bisect start
# bad: [705015e0a42c09ae503e42ebc592c9f04f097617] Fix T78481: Workbench Shadow effects XRay
git bisect bad 705015e0a42c09ae503e42ebc592c9f04f097617
# bad: [d114288f90a8fbb2675d802f7e13f25fbee75801] Bumped blender version to 2.83.1
git bisect bad d114288f90a8fbb2675d802f7e13f25fbee75801
# good: [f1bf7bfa1b5b468514655a18fa99a6900948173f] Cleanup: spelling
git bisect good f1bf7bfa1b5b468514655a18fa99a6900948173f
# bad: [08048f7cceb82826bb520a2ca04f0bc38271faa9] Fix T75810: Child bone frozen when both Auto IK and X-Axis mirror are used
git bisect bad 08048f7cceb82826bb520a2ca04f0bc38271faa9
# good: [44b9f6a8885bed381e0b86bec378008490a58511] Fix T74881: Plane-track corner drag fails with LMB select
git bisect good 44b9f6a8885bed381e0b86bec378008490a58511
# good: [28f7c80c464b71911f926932f6a789efeea14c1e] Fix invalid RNA path for transform orientations.
git bisect good 28f7c80c464b71911f926932f6a789efeea14c1e
# bad: [e8d3996e6776029ce27e29d7e717b0f301a0fa55] Fix edit-mesh selection mode switching causing two undo pushes
git bisect bad e8d3996e6776029ce27e29d7e717b0f301a0fa55
# good: [5491c045af7b7f185a147bfe1ff34d88df431458] Cleanup: add explicit enum values in DNA_rigidbody_types.h
git bisect good 5491c045af7b7f185a147bfe1ff34d88df431458
# good: [2467f4df79755b4d503a1b7f93da36cea31fbc53] Fix T75607: crash trying to sculpt while remesh is in progress
git bisect good 2467f4df79755b4d503a1b7f93da36cea31fbc53
# bad: [d712f1f83af881be536ec0d183b7d3025c172684] GPU: Add Polyline shader (wide line emulation)
git bisect bad d712f1f83af881be536ec0d183b7d3025c172684
# good: [0fbcb824d0ff1673ad186055a472b977406fb61d] Fix T76014: correct description of COLLECTION_OT_objects_remove_all
git bisect good 0fbcb824d0ff1673ad186055a472b977406fb61d
# good: [d0ff3434cffa2e056e4f191ead21226f32ea8c15] Fix T73741 Grid Floor render on top of Wireframe objects
git bisect good d0ff3434cffa2e056e4f191ead21226f32ea8c15
# first bad commit: [d712f1f83af881be536ec0d183b7d3025c172684] GPU: Add Polyline shader (wide line emulation)

When it fails it seems to always fail when getting the result of GIZMO_GT_arrow_3d.

Jeroen Bakker (jbakker) triaged this task as High priority.Mon, Jul 6, 1:28 PM