** Description changed:
+ [ 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/intel_gpu_top.c:1202: print_percentage_bar: Assertion
+ `max_len > 0' failed.
+
+
+ The proposed fix consists of removing the assert() function and only skip
drawing.
+
+ [ 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/intel_gpu_top.c:1202: print_percentage_bar: Assertion
`max_len > 0' failed.
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
ProcVersionSignature: Ubuntu 5.13.0-19.19-generic 5.13.14
Uname: Linux 5.13.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu72
Architecture: amd64
CasperMD5CheckResult: unknown
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.conffile..etc.cron.daily.apport: [deleted]
** Changed in: intel-gpu-tools (Ubuntu Jammy)
Status: New => In Progress
** Changed in: intel-gpu-tools (Ubuntu Jammy)
Assignee: (unassigned) => Hector CAO (hectorcao)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1949314
Title:
intel_gpu_top crashes with intel_gpu_top:
../tools/intel_gpu_top.c:1202: print_percentage_bar: Assertion
`max_len > 0' failed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/intel-gpu-tools/+bug/1949314/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs