intel_gpu_top crashes with intel_gpu_top: ../tools/intel_gpu_top.c:1202: print_percentage_bar: Assertion `max_len > 0' failed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intel-gpu-tools (Ubuntu) |
Fix Released
|
Undecided
|
Hector CAO | ||
Jammy |
Fix Released
|
Undecided
|
Hector CAO | ||
Mantic |
Fix Released
|
Undecided
|
Hector CAO | ||
Noble |
Fix Released
|
Undecided
|
Hector CAO |
Bug Description
[ Impact ]
When resizing the terminal window, intel_gpu_top may crash if the window
becomes small enough. The output when it crashes is:
intel_gpu_top: ../tools/
`max_len > 0' failed.
The fix has been reported and fixed upstream recently : https:/
The fix has been part of a serie of fixes that improve intel_gpu_top UI behavior for some corner cases : https:/
The proposed fix consists of backporting these fixes to affected Ubuntu releases (Jammy, Mantic and Noble)
Tvrtko Ursulin (4):
tools/
tools/
tools/
tools/
NOTES:
For Noble, all the 4 patches will be backported
For Mantic, Jammy, only "tools/
[ Test Plan ]
Run intel_gpu_top inside a console
Resize the console with the mouse to it smallest size
[ Where problems could occur ]
The problem occurs when intel_gpu_top try to draw information on the console
[ Other Info ]
This fix should not cause regression on any other feature.
----
When resizing the terminal window, intel_gpu_top may crash if the window become small enough. The output when it crashes is:
intel_gpu_top: ../tools/
Abortado
I was able to reproduce this crash with tilix and xterm.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: intel-gpu-tools 1.26-2
ProcVersionSign
Uname: Linux 5.13.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu72
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Sun Oct 31 21:06:01 2021
InstallationDate: Installed on 2017-06-13 (1601 days ago)
InstallationMedia: Xubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: intel-gpu-tools
UpgradeStatus: Upgraded to jammy on 2019-12-22 (679 days ago)
modified.
Changed in intel-gpu-tools (Ubuntu): | |
assignee: | nobody → Hector CAO (hectorcao) |
status: | Confirmed → In Progress |
description: | updated |
Changed in intel-gpu-tools (Ubuntu Jammy): | |
status: | New → In Progress |
assignee: | nobody → Hector CAO (hectorcao) |
description: | updated |
description: | updated |
description: | updated |
Changed in intel-gpu-tools (Ubuntu Mantic): | |
status: | New → In Progress |
Changed in intel-gpu-tools (Ubuntu Mantic): | |
assignee: | nobody → Hector CAO (hectorcao) |
description: | updated |
tags: |
added: verification-done verification-done-mantic removed: verification-needed verification-needed-jammy verification-needed-mantic |
tags: | added: verification-done-jammy |
I was able to reproduce this problen on 22.04