azureus crashes on startup

Bug #78167 reported by guidol
4
Affects Status Importance Assigned to Milestone
azureus (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: azureus

EDIT: See third post first

Ubuntu version: 7.04 Feisty Fawn
Azureus version: 2.5.0.0repack1-0ubuntu1
Java version: sun-java-6

Azureus crashes on next startup if it was not properly exited. It simply loads, shows the main screen a few nanoseconds and exits.

I've found two temporary workarounds:
-delete ~/.azureus
In other words start with a fresh configuration. This will allow you to start azureus again with it crashing. But should it exit unexpectedly again you will have to delete the .azureus directory again so it's not really a workaround. I have tried to isolate the bug to the deletion of just one file (any file) in the .azureus directory but without any success.

-open the "About Azureus" dialog once
This one actually seems to work. Open this dialog once and Azureus will not crash on next startup after it has been exited unexpectedly.

I don't know if this bug is a duplicate of https://launchpad.net/bugs/71220 but I don't think so.

Revision history for this message
guidol (monk-e) wrote :

Update: this bug does not appear to produce itself on sun-java-5

Revision history for this message
guidol (monk-e) wrote :

Update: when running sun-java-6

The bug does not reproduce itself after doing a
sudo update-java-alternatives -s java-6-sun

Before I did this I only checked
sudo update-alternatives --config java
and it was set to java-6-sun automatically after installing the sun-java-6 package (if I recall correctly) but maybe in the case of java running update-java-alternatives is required.

I apologize if this has been a terrible waste of time for any dev.

description: updated
Revision history for this message
Sam Brightman (sambrightman) wrote :

If this bug is not a duplicate of bug 71220 then it is almost certainly a duplicate of bug 68020. I think these informational dialogs have been an issue for a while - they never used to go away, and I seem to recall the workaround then being to load the about box.

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :
Download full text (5.0 KiB)

OK, I'm having similar issues here, but I can't tell if it's exactly the same bug. Azureus (2.5.0.0 on Ubuntu Feisty) worked for a bit after the install, then (I suppose it was force-closed by a log-out) it stopped starting. The main window would appear for a bit and then it just died.

At first I was using the gcj java, and the errors in the console looked like: ********************
$ azureus
DEBUG::Thu Jan 18 16:11:30 GMT+01:00 2007::org.gudy.azureus2.core3.security.impl.SESecurityManagerImpl::initialise::-1:
  No SSL provider available
    SESecurityManager::initialise::-1,ConfigurationChecker::setSystemProperties::-1,ConfigurationManager::initialise::-1,ConfigurationManager::getInstance::-1,LoggerImpl::init::-1,Logger::<clinit>::-1,Class::initializeClass::-1,Logger::isEnabled::-1,StartServer::<init>::-1,Main::<init>::-1,Main::main::-1
DEBUG::Thu Jan 18 16:11:30 GMT+01:00 2007::org.gudy.azureus2.core3.security.impl.SESecurityManagerImpl::initialise::-1:
  No SSL provider available
    SESecurityManager::initialise::-1,CryptoManagerImpl::<init>::-1,CryptoManagerImpl::getSingleton::-1,CryptoManagerFactory::getSingleton::-1,AzureusCoreImpl::<init>::-1,AzureusCoreImpl::create::-1,AzureusCoreFactory::create::-1,Main::<init>::-1,Main::main::-1
DEBUG::Thu Jan 18 16:11:32 GMT+01:00 2007::org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl::writeStats::-1:
  java.io.FileNotFoundException: /Azureus_Stats.xml (Permission denied)
   at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.70)
   at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.70)
   at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.70)
   at java.io.FileOutputStream.<init>(libgcj.so.70)
   at java.io.FileOutputStream.<init>(libgcj.so.70)
   at java.io.FileOutputStream.<init>(libgcj.so.70)
   at org.gudy.azureus2.core3.stats.impl.StatsWriterImpl.write(Azureus2.jar.so)
   at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl.writeStats(Azureus2.jar.so)
   at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl.update(Azureus2.jar.so)
   at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl$1.runSupport(Azureus2.jar.so)
   at org.gudy.azureus2.core3.util.AEThread.run(Azureus2.jar.so)

Aborted (core dumped)

************************************
Then I did a "$ sudo update-java-alternatives -s java-6-sun" and I got:
************************************
$ azureus
DEBUG::Thu Jan 18 16:15:38 CET 2007::org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl::writeStats::206:
  java.io.FileNotFoundException: /Azureus_Stats.xml (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterImpl.write(StatsWriterImpl.java:63)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl.writeStats(StatsWriterPeriodicImpl.java:203)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl.update(StatsWriterPeriodicImpl.java:102)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl$1.runSupport(StatsWriterP...

Read more...

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

Hmm. Now it started crashing again on startup, and simply deleting .azureus/logs/* doesn't fix it anymore:
*************************
$ rm /home/bogdanb/.azureus/logs/* -r
bogdanb@bogdanb-laptop:~$ azureus
DEBUG::Thu Jan 18 16:42:45 CET 2007::org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl::writeStats::206:
  java.io.FileNotFoundException: /Azureus_Stats.xml (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterImpl.write(StatsWriterImpl.java:63)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl.writeStats(StatsWriterPeriodicImpl.java:203)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl.update(StatsWriterPeriodicImpl.java:102)
        at org.gudy.azureus2.core3.stats.impl.StatsWriterPeriodicImpl$1.runSupport(StatsWriterPeriodicImpl.java:235)
        at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)

#
# An unexpected error has been detected by Java Runtime Environment:
#
# Internal Error (53484152454432554E54494D450E435050020F), pid=15460, tid=3084819344
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
# An error report file with more information is saved as hs_err_pid15460.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted (core dumped)
*************************
I attached the error report from hotspot, too. I noticed a few other reports there, I can add them too if anyone needs them. (I think they're from older crashes.)

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

OK, that
  java.io.FileNotFoundException: /Azureus_Stats.xml (Permission denied)
error is probably a silly bug somewhere, setting a wrong path as default. I created the file and chown-ed it to me, and now the error is no longer displayed.

However, it still won't start. I'm really reluctant to delete the home directory. I always spend half a day configuring Azureus to my liking, and it crashes after less time than that sometimes.

Revision history for this message
Sam Brightman (sambrightman) wrote :

As I said, this looks like a duplicate of bug 68020. Please see my comments there. Most of the errors you see on Azureus startup seem pretty harmless to me (they are annoying though).

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

I didn't notice your more elaborate comment there until now. Still, I think there's something else here, too, because at one point even deleting the logs directory didn't fix the issue. I renamed the entire .azureus directory, started Azureus again, reconfigured it, and I copied some of the files back to the (newly-created) .azureus directory.

I think the azureus.config file brought the crashes back, but downloads.config didn't. So I'm pretty sure there's more than just the logs directory, though the problem might be the same (some weirdness with one of the dialogs).

Revision history for this message
Sam Brightman (sambrightman) wrote :

It may be something different, but it looks very similar to me. The crash report looks like the same cause. Are you not still using Sun Java? If so, try switching to GCJ as I described and seeing if the informational window comes up. If it does, a successful shutdown of Azureus should allow it to work with both (or just carry on using GCJ until this is fixed).

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

Yes, it's using Sun Java. I didn't try your fix yet, but the reason I use Sun's Java is that I was getting the same (or a very similar) type of crash using GCJ.

For now I've been able to fix it by deleting the logs, but if it happens again I might try the GCJ thing, to see how it works. It's not very clear from your description, though: doing the switch how you described fixes the problem permanently, or just until the next crash?

Revision history for this message
Sam Brightman (sambrightman) wrote :

I remember there might be other issues with Azureus 2.5 and Sun Java 1.5, so it may be best to stick with GCJ for a while until these are cleared up.

I started looking into it but haven't done anything for a while. It seems to me that it's the display/resize/move of the informational window that causes the crash. Hence, switching to GCJ will fix the problem permanently. Switching to GCJ and switching back will fix the problem until it wants to show you another informational window.

Revision history for this message
sk0rp10 (matteo-andreozzi) wrote :

Azureus crashes at startup on my Feisty with Sun JVM 6, I attach here the crash log

Revision history for this message
mog (launchpad-net-mog) wrote :

A workaround is discussed in the forums:
http://ubuntuforums.org/showthread.php?t=413192

It involves one of:
 * Not using the ubuntu package and downloading azureus manually.
 * Switching to GCJ.

More reports on JVM crashes like this one (mostly azureus on ubuntu but also other issues which appear to trigger a similair JVM crash) can be easily found by searching for 53484152454432554E54494D450E435050020F (which is found at the top of hs_err_pidxxxx.log on google:

http://www.google.com/search?hl=en&q=53484152454432554E54494D450E435050020F

Revision history for this message
Oliver Sic (soliver) wrote :

It crashes when i start Azureus with this message:

changeLocale: *Default Language* != German (Austria). Searching without country..
changeLocale: Searching for language German in *any* country..
changeLocale: no message properties for Locale 'German (Austria)' (de_AT), using 'German (Germany)'
/home/oliver/.themes/Whiteplate/gtk-2.0/icons/iconrc:75: Bilddatei konnte nicht in pixmap_path gefunden werden: »panel-utility.png«
/home/oliver/.themes/Whiteplate/gtk-2.0/icons/iconrc:76: Bilddatei konnte nicht in pixmap_path gefunden werden: »panel-searchtool.png«
java.lang.Exception: Theme directory 64x64/devices.64x64/filesystems of theme kearonesIcons has no size field

        at org.gnu.glib.GObject.printStackTrace(GObject.java:818)
        at org.gnu.gtk.IconTheme.gtk_icon_theme_lookup_icon(Native Method)
        at org.gnu.gtk.IconTheme.lookupIcon(IconTheme.java:88)
        at org.gudy.azureus2.ui.swt.ImageRepository.getThemedIcon(ImageRepository.java:75)
        at org.gudy.azureus2.ui.swt.ImageRepository.loadImages(ImageRepository.java:130)
        at org.gudy.azureus2.ui.swt.mainwindow.Initializer.run(Initializer.java:214)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread$1.runSupport(SWTThread.java:115)
        at org.gudy.azureus2.core3.util.AERunnable.run(AERunnable.java:38)
        at java.lang.Thread.run(Thread.java:619)
#
# An unexpected error has been detected by Java Runtime Environment:
#
# Internal Error (53484152454432554E54494D450E4350500214), pid=8969, tid=3084233616
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# An error report file with more information is saved as hs_err_pid8969.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted (core dumped)

and i habe an error repost log file.

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.