Author Topic: Vuze crashes on start (SOLVED)  (Read 2819 times)

Offline zmud

  • Jr. Member
  • **
  • Posts: 11
Vuze crashes on start (SOLVED)
« on: April 26, 2011, 04:18:13 AM »
I know that this may not help anyone, as there are probably very few PCLOS users using Vuze or Azureus, but I want to post this fix I found for Vuze crashing on startup. I am running KDE SC version 4.6.2 on OS version Linux 2.6.33.7-pclos6.bfs. All up to date through Synaptic on a 1TB drive I installed the latest iso on about a month ago.
When I installed Vuze 4.5.1.0 about a week ago, there were no error reports and all appeared ok. When I went to start it however, it would show the application icon in the panel then just disappear. No error message, nothing.

So from Synaptic, I tried reinstalling, removing then installing and removing everything then installing. None of it seemed to work. Then I started hitting the PCLOS forums looking for answers.
The first situation I found had a similar error log to mine and it talked about reinstalling JRE. http://www.pclinuxos.com/forum/index.php/topic,64790.0.html
After a fruitless search in Synaptic, I found that JRE stuff is under java. So I removed Vuze, installed java stuff and reinstalled Vuze, but it still disappeared upon startup.

The next situation I found mentioned Vuze having a problem after updating.
http://www.pclinuxos.com/forum/index.php/topic,66287.0.html
So I tried replacing swt.jar and Azureus2.jar in root/usr/lib/vuze with ones from their website. http://azureus.sourceforge.net/howto_linux.php
http://dev.vuze.com/
This also didn't fix the problem.

I tried installing and trying other torrent programs to see if they had the same problem. One at a time, I installed and removed Transmission-QT, Transmission and Deluge from Synaptic and they all worked fine, but they were slow. I tried reinstalling Vuze again, but still had the same problem.
Finally I found a thread on a Vuze forum that seemed to make sense.
http://forum.vuze.com/thread.jspa?threadID=96996&tstart=0&messageID=239347
It was a much more recent forum, and the error log file listed was a close match for mine. It mentioned a fatal error in the Java Runtime Environment (JRE) involving some libxul.so file, whatever that is. They discovered that this particular Vuze crash was caused by something in the new mozilla-xulrunner20 package and suggested going back to mozilla-xulrunner192.

I checked Synapic for a Package --> Force Version option in xulrunner, but there wasn't one there. That meant that trying this suggestion would involve using CLI instead of synaptic on its own. I am always cautious of going around Synaptic, as it is such an integral part of preventing noobs like me from breaking my PCLOS installation. ;)
The solution boils down to replacing xulrunner version 2.0-4pclos2011 with a previous version I found at
http://rpm.pbone.net/index.php3/stat/4/idpl/14906337/dir/pclinuxos/com/xulrunner-1.9.2.13-1pclos2010.i586.rpm.html

The trick for me was how to swap it over with the installed version. I removed xulrunner and libxulrunner version 2.0-4pclos2011 with Synaptic. Then I went into a console and typed su to become root.
I typed cd /var/cache/apt/archives to go to the directory where I had the rpm files.
I tried the RPM command with -Uvh for Update verbose hash on the xulrunner downgrade
rpm -Uvh xulrunner-1.9.2.13-1pclos2010.i586.rpm
It came up with an error:
error: Failed dependencies:
        libxulrunner1.9.2.13 = 1.9.2.13-1pclos2010 is needed by xulrunner-1.9.2.13-1pclos2010.i586
So I had to find libxulrunner version 1.9.2.13-1pclos2010 and got it from
http://rpm.pbone.net/index.php3/stat/4/idpl/14906257/dir/pclinuxos/com/libxulrunner1.9.2.13-1.9.2.13-1pclos2010.i586.rpm.html

Then I couldn't Upgrade libxulrunner, so I had to change the -U for a -i to install it
rpm -ivh libxulrunner1.9.2.13-1.9.2.13-1pclos2010.i586.rpm
Preparing...                ########################################### [100%]
   1:libxulrunner1.9.2.13   ########################################### [100%]
That seemed to work fine. Then I retried the original command with the xulrunner package.
rpm -Uvh xulrunner-1.9.2.13-1pclos2010.i586.rpm
Preparing...                ########################################### [100%]
   1:xulrunner              ########################################### [100%]
Yay, success! Now I had to retry Vuze. Guess what? It worked like a dream.  :)

So if this helps anyone, that's cool. And if any of you PCLOS Legends have words of advice for how I could have done this better, or quicker, please don't hesitate to let me know.

Offline lthatfield

  • New Friend
  • *
  • Posts: 2
Re: Vuze crashes on start (SOLVED)
« Reply #1 on: July 08, 2011, 11:16:16 PM »
Same thing occurred to me. I followed your instructions and Vuze works. Thanks for taking the time to post the solution.

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Vuze crashes on start (SOLVED)
« Reply #2 on: July 09, 2011, 04:14:04 AM »
Hello,

I suspect your "fix" is going to break Firefox ...

AS

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Vuze crashes on start (SOLVED)
« Reply #3 on: July 23, 2011, 11:31:23 AM »
Similar crash is seen for me too with a fully updated install of 2010.10.
Commandline output is as follows:

Code: [Select]
Starting Azureus...
Suitable java version found [java = 1.6.0_26]
Configuring environment...
Java exec found in PATH. Verifying...
Browser check failed with: InvocationTargetException, No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
Auto-scanning for GRE/XULRunner.  You can skip this by appending the GRE path to LD_LIBRARY_PATH and setting MOZILLA_FIVE_HOME.
  checking /usr/lib/xulrunner-1.9.2.3 for GRE
        Can not use GRE from /usr/lib/xulrunner-1.9.2.3 because it's missing libxpcom.so.
  checking /usr/lib/mozilla for GRE
        Can not use GRE from /usr/lib/mozilla because it's missing libxpcom.so.
  checking /usr/lib/xulrunner-1.9.2.10 for GRE
        Can not use GRE from /usr/lib/xulrunner-1.9.2.10 because it's missing libxpcom.so.
  checking /usr/lib/firefox-5.0.1 for GRE
GRE found at /usr/lib/firefox-5.0.1.
Browser check failed with: InvocationTargetException, XPCOM error -2147467261
Can't create browser.  Will try to set LD_LIBRARY_PATH and hope Vuze has better luck.
setting LD_LIBRARY_PATH to: /usr/lib/firefox-5.0.1
setting MOZILLA_FIVE_HOME to: /usr/lib/firefox-5.0.1
Loading Azureus:
java -Xmx128m -cp "./Azureus2.jar:./commons-cli.jar:./log4j.jar:./swt.jar" -Djava.library.path="/usr/lib/vuze" -Dazureus.install.path="/usr/lib/vuze" -Dazureus.script="./vuze" -Dazureus.script.version=2 org.gudy.azureus2.ui.swt.Main
file:/usr/lib/vuze/Azureus2.jar ; file:/usr/lib/vuze/commons-cli.jar ; file:/usr/lib/vuze/log4j.jar ; file:/usr/lib/vuze/swt.jar ; file:/usr/lib/vuze/
changeLocale: *Default Language* != English (United States). Searching without country..
changeLocale: Searching for language English in *any* country..
changeLocale: no message properties for Locale 'English (United States)' (en_US), using 'English (default)'
MainWindow: constructor
UIFunctions/ImageLoad took 25ms
new shell took 387ms
new shell setup took 100ms
skin init took 251ms
MainMenu init took 327ms
pre skin widgets init took 75ms
WARNING: already added UIUpdatable com.aelitis.azureus.ui.swt.views.skin.sidebar.SideBar@502819
skin widgets (1/2) init took 353ms
skin widgets (2/2) init took 201ms
pre SWTInstance init took 0ms
Init Core Columns took 125ms
SWTInstance init took 0ms
shell.layout took 352ms
---------SHOWN AT 1311479663585;4085ms
showEntry Welcome; was null
./vuze: line 188:  4436 Segmentation fault      ${JAVA_PROGRAM_DIR}java "${JAVA_ARGS}" -cp "${CLASSPATH}" -Djava.library.path="${PROGRAM_DIR}" -Dazureus.install.path="${PROGRAM_DIR}" -Dazureus.script="$0" $JAVA_PROPS $START_CLASS "$@"
Exit from Azureus complete
No shutdown tasks to do
Azureus TERMINATED.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Vuze crashes on start (SOLVED)
« Reply #4 on: July 23, 2011, 11:41:23 AM »
I solved the problem by typing this as root:
Code: [Select]
ln -s /usr/lib/firefox-5.0.1/libxpcom.so /usr/lib/mozilla/libxpcom.so
I followed the solution from here but slightly modified to suit the present situation:
http://www.linuxquestions.org/questions/linux-software-2/azureus-segmentation-fault-suddenly-caused-by-java-768144/

-SS.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6