[jitsi-dev] Re: [jitsi~svn:9695] Tries to fix 'Jitsi (Debian 32-bit) crashes at startup' reported by Kerte


#1

It seems that this commit fixed this issue. Jitsi version 4095 runs fine.

lubomir_m@java.net wrote:

···

Project: jitsi
Repository: svn
Revision: 9695
Author: lubomir_m
Date: 2012-07-02 10:09:23 UTC
Link:

Log Message:
------------
Tries to fix 'Jitsi (Debian 32-bit) crashes at startup' reported by Kertesz Laszlo on the dev mailing list.

Revisions:
----------
9695

Modified Paths:
---------------
trunk/src/net/java/sip/communicator/launcher/BrowserLauncher.java
trunk/src/net/java/sip/communicator/util/launchutils/LaunchArgHandler.java

Diffs:
------
Index: trunk/src/net/java/sip/communicator/launcher/BrowserLauncher.java

--- trunk/src/net/java/sip/communicator/launcher/BrowserLauncher.java (revision 9694)
+++ trunk/src/net/java/sip/communicator/launcher/BrowserLauncher.java (revision 9695)
@@ -6,8 +6,6 @@
  */
package net.java.sip.communicator.launcher;

-import org.jitsi.util.*;
-
import com.apple.eio.*;

/**
@@ -57,11 +55,19 @@
         {
             try
             {
- if (OSUtils.IS_MAC)
+ /*
+ * XXX The detection of the operating systems is the
+ * responsibility of OSUtils. It used to reside in the util.jar
+ * which is in the classpath but it is now in libjitsi.jar which
+ * is not in the classpath.
+ */
+ String osName = System.getProperty("os.name");
+
+ if ((osName != null) && osName.startsWith("Mac"))
                 {
                     FileManager.openURL(url);
                 }
- else if (OSUtils.IS_WINDOWS)
+ else if ((osName != null) && osName.startsWith("Windows"))
                 {
                    Runtime.getRuntime().exec(
                        "rundll32 url.dll,FileProtocolHandler " + url);
Index: trunk/src/net/java/sip/communicator/util/launchutils/LaunchArgHandler.java

--- trunk/src/net/java/sip/communicator/util/launchutils/LaunchArgHandler.java (revision 9694)
+++ trunk/src/net/java/sip/communicator/util/launchutils/LaunchArgHandler.java (revision 9695)
@@ -12,8 +12,6 @@

import net.java.sip.communicator.util.*;

-import org.jitsi.util.*;
-
/**
  * The <tt>LauncherArgHandler</tt> class handles invocation arguments that have
  * been passed to us when running SIP Communicator. The class supports a fixed
@@ -169,7 +167,14 @@
         }

         // Start url handler for Mac OS X.
- if (OSUtils.IS_MAC)
+ /*
+ * XXX The detection of the operating systems is the responsibility of
+ * OSUtils. It used to reside in the util.jar which is in the classpath
+ * but it is now in libjitsi.jar which is not in the classpath.
+ */
+ String osName = System.getProperty("os.name");
+
+ if ((osName != null) && osName.startsWith("Mac"))
             new AEGetURLEventHandler(this);
     }

--
O zi buna,
Kertesz Laszlo


#2

Confirmed on my Ubuntu 32-bit system, now launching Jitsi from console
is successful, only throwing the following exceptions:

$ jitsi
java.io.IOException: Referenced file does not exist: sc-bundles/version.jar
  at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:842)
  at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:549)
  at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:219)
  at org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:223)
  at org.apache.felix.framework.Felix.init(Felix.java:662)
  at org.apache.felix.main.Main.main(Main.java:288)
  at net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:146)
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem
(MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem
(MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports
only playback stream
20:04:31.091 SEVERE:
impl.osdependent.SystemTray.getDefaultDesktop().66 Failed to
initialize the java.awt.SystemTray implementation.
java.lang.UnsupportedOperationException:
java.lang.reflect.InvocationTargetException
  at net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:188)
  at net.java.sip.communicator.impl.osdependent.Desktop.getDefaultDesktop(Desktop.java:62)
  at net.java.sip.communicator.impl.osdependent.DesktopServiceImpl.<init>(DesktopServiceImpl.java:30)
  at net.java.sip.communicator.impl.osdependent.OsDependentActivator.start(OsDependentActivator.java:87)
  at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
  at org.apache.felix.framework.Felix.activateBundle(Felix.java:1904)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:1822)
  at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
  at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
  at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at net.java.sip.communicator.impl.osdependent.Desktop$AWTDesktopPeer.<init>(Desktop.java:180)
  ... 9 more
Caused by: java.lang.UnsupportedOperationException: Desktop API is not
supported on the current platform
  at java.awt.Desktop.getDesktop(Desktop.java:144)
  ... 14 more

Thanks for the speedy recovery!

Cheers,

Alex

···

On 2 July 2012 15:37, Kertesz Laszlo <laszlo.kertesz@gmail.com> wrote:

It seems that this commit fixed this issue. Jitsi version 4095 runs fine.