Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40045 - systemd-analyze plot elements zero height

Attached to Project: Arch Linux
Opened by Jeffrey Clark (h0tw1r3) - Tuesday, 22 April 2014, 22:04 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Wednesday, 23 April 2014, 21:16 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

systemd-analyze produces an svg which all element height and y# attributes equal 0. Visually garbage output.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="2574px" height="0px" version="1.1" xmlns="http://www.w3.org/2000/svg">
...
<rect class="box" x="0" y="0" width="2573.511" height="0.000" />
<line class="sec5" x1="0.000" y1="0" x2="0.000" y2="0.000" />
<text class="sec" x="0.000" y="-0.000" >0.0s</text>
<line class="sec01" x1="10.781" y1="0" x2="10.781" y2="0.000" />

Additional info:
* systemd 212-3

Steps to reproduce:

$ systemd-analyze plot > output.svg

View generated file in text editor, check height and y# attributes.
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Wednesday, 23 April 2014, 21:16 GMT
Reason for closing:  Not a bug
Comment by Jeffrey Clark (h0tw1r3) - Tuesday, 22 April 2014, 22:14 GMT
This may be a bug on arm. I currently do not have arch installed on an x86 machine.
Comment by Doug Newgard (Scimmia) - Wednesday, 23 April 2014, 01:43 GMT
Everything seems fine here. If it's ARM specific, you're in the wrong place, as ArchLinux doesn't support ARM.
Comment by Jeffrey Clark (h0tw1r3) - Wednesday, 23 April 2014, 17:50 GMT
Thanks for confirmation. I found the problem and will be submitting the following patch upstream and the the arm port maintainers.

--- a/src/analyze/analyze.c 2014-04-23 09:59:01.642964712 -0500
+++ b/src/analyze/analyze.c 2014-04-23 12:47:01.680298309 -0500
@@ -43,7 +43,7 @@
#include "pager.h"

#define SCALE_X (0.1 / 1000.0) /* pixels per us */
-#define SCALE_Y 20.0
+#define SCALE_Y (20.0)

#define compare(a, b) (((a) > (b))? 1 : (((b) > (a))? -1 : 0))
Comment by Jason Plum (WarheadsSE) - Wednesday, 23 April 2014, 18:07 GMT
While this is non-issue @ x86, it is present on ARM, and might be on other architectures. Sounds like a FIXME for systemd itself, and not any distribution.

Loading...