bootchart dies with stack trace in 9.10

Bug #455017 reported by Andrey Lebedev
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcj-4.4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bootchart

After upgrade from ubuntu 9.04 to 9.10 bootchart stopped to produce png images to /var/log/bootchart. In fact it creates 0 byte .png files instead of rendered charts.

When I run bootchart manually:

  $ bootchart -f png '/var/log/bootchart/kednote-karmic-20091018-2.tgz'

I get the exception printed after about 7 minutes of work:

Parsing /var/log/bootchart/kednote-karmic-20091018-2.tgz
Exception in thread "main" java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory
   at java.lang.Runtime._load(libgcj.so.10)
   at java.lang.Runtime.loadLibrary(libgcj.so.10)
   at java.lang.System.loadLibrary(libgcj.so.10)
   at gnu.java.awt.peer.gtk.CairoGraphics2D.<clinit>(libgcj.so.10)
   at java.lang.Class.initializeClass(libgcj.so.10)
   at java.lang.Class.initializeClass(libgcj.so.10)
   at java.lang.Class.forName(libgcj.so.10)
   at java.lang.Class.forName(libgcj.so.10)
   at gnu.java.awt.peer.headless.HeadlessGraphicsEnvironment.createGraphics(libgcj.so.10)
   at java.awt.image.BufferedImage.createGraphics(libgcj.so.10)
   at org.bootchart.renderer.ImageRenderer.render(Unknown Source)
   at org.bootchart.renderer.PNGRenderer.render(Unknown Source)
   at org.bootchart.Main.render(Unknown Source)
   at org.bootchart.Main.main(Unknown Source)

If I choose to render svg image (by omitting -f png) flag, chart is rendered correctly.

ProblemType: Bug
Architecture: i386
Date: Mon Oct 19 00:51:45 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: bootchart 0.90.2-3
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: bootchart
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Andrey Lebedev (andrey-lebedev) wrote :
Revision history for this message
Andrey Lebedev (andrey-lebedev) wrote :

Have to mention, that after upgrade, the default jvm became gij (GNU libgcj) version 4.4.1. When I switched it back to sun java 6 with

  $ sudo update-alternatives --config java

Problem gets fixed and bootchart is run for about 15 seconds instead of 7 minutes with gij.

affects: bootchart (Ubuntu) → gcc-defaults (Ubuntu)
affects: gcc-defaults (Ubuntu) → gcj-4.4 (Ubuntu)
Revision history for this message
cougarten (5p4m0r) wrote :

Same to me, but it worked once.
My error (for png) is a bit shorter and none of the formats work:

Parsing /var/log/bootchart/User-karmic-20091028-1.tgz
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
 at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
 at java.awt.image.Raster.createPackedRaster(Raster.java:458)
 at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
 at java.awt.image.BufferedImage.<init>(BufferedImage.java:321)
 at org.bootchart.renderer.ImageRenderer.render(Unknown Source)
 at org.bootchart.renderer.PNGRenderer.render(Unknown Source)
 at org.bootchart.Main.render(Unknown Source)
 at org.bootchart.Main.main(Unknown Source)

Revision history for this message
cougarten (5p4m0r) wrote :

appart from a longer bootime the bootlogs are also bigger:
the tgz files are now (karmic) between 1.3 and 2.8MB instead of 200 to 280KB (jaunty)

Revision history for this message
Chad Miller (cmiller) wrote :

--- /usr/bin/bootchart 2009-12-11 10:31:04.900595872 -0500
+++ /usr/bin/bootchart-fixed 2009-12-11 10:30:57.584097720 -0500
@@ -4,4 +4,4 @@
 CLASSPATH="/usr/share/bootchart/bootchart.jar:/usr/share/java/commons-cli.jar:/usr/share/java/commons-compress.jar"
 PROPERTY="java.awt.headless=true"

-exec java -D"$PROPERTY" -classpath "$CLASSPATH" $MAIN_CLASS "$@"
+exec java -Xms128m -Xmx256m -D"$PROPERTY" -classpath "$CLASSPATH" $MAIN_CLASS "$@"

Revision history for this message
Maxime R. (max.r) wrote :

I had the same problem : 0 byte png bootcharts since the 9.04 -> 9.10 update.

$ bootchart -f png /var/log/bootchart/some_log.tgz
gave me the same error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: etc....
after ~20 min of 100% cpu usage (old pentium M 1,6GHz)

I have installed openjdk-6-jre and selected it using :
 $ sudo update-alternatives --config java
(I have used gij-4.4 until then)

Now:
$ bootchart -f png /var/log/bootchart/some_log.tgz
works and produce the png bootchart in ~50 s

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.