Bug 217460 - kernelshark does not display graphs properly
Summary: kernelshark does not display graphs properly
Status: RESOLVED INVALID
Alias: None
Product: Tools
Classification: Unclassified
Component: Trace-cmd/Kernelshark (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: Default virtual assignee for Trace-cmd and kernelshark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-18 15:24 UTC by Vitaly Chikunov
Modified: 2023-05-18 16:55 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
trace.data and screenshot (1.79 MB, application/gzip)
2023-05-18 15:24 UTC, Vitaly Chikunov
Details

Description Vitaly Chikunov 2023-05-18 15:24:52 UTC
Created attachment 304289 [details]
trace.data and screenshot

It seem that kernelshark 2.2.0 does not display graph correctly. For example no text or scales are visible, only vertical bars.

In the attachment `trace.dat` and screenshot for it.

We have it compiled with Qt 5.15.9.

Additional screenshot at the link https://attachments.bugzilla.altlinux.org/attachment.cgi?id=13217 for easy viewing.
Comment 1 Vitaly Chikunov 2023-05-18 16:04:40 UTC
It's may be possible to reproduce in Docker:

When `trace.dat` is in `$PWD/ks/`
```
$ docker run --rm --net=host -it -e DISPLAY --volume="$HOME/.Xauthority:/root/.Xauthority:rw" -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD/ks:/ks alt:sisyphus
```
Then
```
docker# apt-get install -y kernelshark xorg-dri-swrast xorg-dri-intel fonts-ttf-dejavu
docker# cd /ks
docker# kernelshark
```
Comment 2 Yordan Karadzhov 2023-05-18 16:14:59 UTC
Hi Vitaly,

Unfortunately I am unable to reproduce the problem on my machine. Nevertheless, I'v been seeing something similar before. See:
https://bugzilla.kernel.org/show_bug.cgi?id=203871

At the end the conclusion was that the problems disappears after building  Qt from sources instead of using the distro package. You can also try doing the debugging steps suggested in comment 34.

thanks!
Y.
Comment 3 Vitaly Chikunov 2023-05-18 16:55:14 UTC
Thanks that link is really helpful!
I am building kernelshark package for ALT Linux so rebuilding Qt from the source is not solution from me.
It seems that Tzvetomir Stoyanov suggested right thing about missing `FreeSans.ttf`. After I installed `fonts-ttf-freefont` problem is resolved itself, so I will add it to dependencies.

Thanks much again!

Note You need to log in before you can comment on or make changes to this bug.