Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Eclipse RCP app hang on MACOSX 10.6
Eclipse RCP app hang on MACOSX 10.6 [message #605497] Wed, 07 April 2010 09:58 Go to next message
Christian  is currently offline Christian Friend
Messages: 8
Registered: April 2010
Junior Member
Hello, we have an Eclipse RCP application running perfectly on windows but we cannot make it run on MAC OS X (10.6) with Java 6.
When launching the application in the OSGI console we have:
[Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10000
and the application hangs indefinitely.
In the OSGI console we can display the status of our ui bundle; it is RESOLVED; and if we start it manually, we can see that the bundle Activator class is executed but the GUI does not show up.

We tried with Eclipse galileo SR1-cocoa-32 and SR2-cocoa-32; but it produce the same result.

- Is there any issue with SWT on Mac OS X ?
- Why do we have the message "CocoaComponent compatibility mode" ?
- We are developping with SWT Designer on windows, is there known problems on Macosx ?
- Could you suggest some options we can try ?

Best regards

Christian
Re: Eclipse RCP app hang on MACOSX 10.6 [message #605501 is a reply to message #605497] Wed, 07 April 2010 11:57 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi Christian,

> - Could you suggest some options we can try ?

how do you launch the RCP application? The only issue on OS X I can think of is that SWT
on Cocoa requires the Display to be initialized on the main thread. Imho this cannot be
done in a plain OSGi environment using Activators, you have to start such applications
using the 'Eclipse Application' launch configuration type (which works around this issue).
Not sure if that's what's going on in your case, it would be very uncommon not to start an
RCP application as 'Eclipse application', but as you mentioned the OSGi console /
Activator explicitly, I thought it might be worth mentioning.

Greetings,

Ralf


--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Re: Eclipse RCP app hang on MACOSX 10.6 [message #605514 is a reply to message #605501] Wed, 07 April 2010 12:27 Go to previous messageGo to next message
Christian  is currently offline Christian Friend
Messages: 8
Registered: April 2010
Junior Member
Hello Ralf, thanks for the answer,

our RCP application is deployed as an eclipse product :
--eclipse
|---configuration
| |---config.ini
|---eclipse.exe
|---eclipse.ini
|---plugins
|---...

With the following eclipse.ini file:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715. jar
--launcher.library
plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.1.R35x _v20090707
-os

-ws

-arch

-nl

-clean
-console
-consolelog
-vmargs
-Driena.lnf=ch.llb.contact.ui.applications.LigueLnf
-Driena.application.width=1120
-Driena.application.height=850
-Driena.lnf.update.view=true
-Dreport.output.dir=


Any suggestion ?

Regards

Christian.

Here is our config.ini file:

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxF wConfigFileParser
#Tue Sep 15 18:23:11 CEST 2009

osgi.bundles=reference\:file\:mailto:ch.llb.abonnement.busi_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.abonnement.entity_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.abonnement.report_1.0.0.jar@4\:start, \
reference\:file\:mailto:ch.llb.activite.busi_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.activite.entity_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.activite.report_1.0.0.jar@4\:start, \
reference\:file\:mailto:ch.llb.common.report-i18n_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.common.report_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.common.i18n_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.common.ui-i18n_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.common.util_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.common.vo_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.contact.busi_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.contact.entity_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.contact.report_1.0.0.jar@4\:start, \
reference\:file\:mailto:ch.llb.contact.ui_1.0.0.200909151822.jar@4, \
reference\:file\:mailto:ch.llb.contact.ui.stage.prod_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.don.busi_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.don.entity_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.facturation.busi_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.facturation.entity_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.librairie.busi_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.librairie.entity_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.librairie.report_1.0.0.jar@4\:start, \
reference\:file\:mailto:ch.llb.reference.busi_1.0.0.jar@4, \
reference\:file\:mailto:ch.llb.reference.entity_1.0.0.jar@4, \
reference\:file\:mailto:asm.osgi-2.2.3-SNAPSHOT.jar@4, \
reference\:file\:mailto:com.caucho.hessian_3.1.3.jar@4, \
reference\:file\:mailto:com.ibm.icu_4.0.1.v20090415.jar@4, \
reference\:file\:mailto:com.lowagie.itext-2.1.0.jar@4, \
reference\:file\:mailto:com.springsource.antlr-2.7.7.jar@4, \
reference\:file\:mailto:commons-collections-3.2.1.jar@4, \
reference\:file\:mailto:commons-digester-2.0.jar@4, \
reference\:file\:mailto:groovy-1.7.0.jar@4, \
reference\:file\:mailto:javax.servlet_2.5.0.v200806031605.jar@4, \
reference\:file\:mailto:net.sf.jasperreports-3.7.0.jar@4, \
reference\:file\:mailto:org.apache.commons.beanutils_1.7.0.v200902170505.jar@4, \
reference\:file\:mailto:org.apache.commons.logging_1.0.4.v200904062259.jar@4, \
reference\:file\:mailto:org.apache.log4j_1.2.13.v200903072027.jar@4, \
reference\:file\:mailto:org.eclipse.core.commands_3.5.0.I20090525-2000.jar@4, \
reference\:file\:mailto:org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar@4, \
reference\:file\:mailto:org.eclipse.core.databinding_1.2.0.M20090819-0800.jar@4, \
reference\:file\:mailto:org.eclipse.core.databinding.beans_1.2.0.I20090525-2000.jar@4, \
reference\:file\:mailto: org.eclipse.core.databinding.observable_1.2.0.M20090902-0800 .jar @4, \
reference\:file\:mailto: org.eclipse.core.databinding.property_1.2.0.M20090819-0800.j ar @4, \
reference\:file\:mailto:org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar@4, \
reference\:file\:mailto:org.eclipse.core.jobs_3.4.100.v20090429-1800.jar@4, \
reference\:file\:mailto:org.eclipse.core.runtime_3.5.0.v20090525.jar@4\:start, \
reference\:file\:mailto:org.eclipse.core.variables_3.2.200.v20090521.jar@4, \
reference\:file\:mailto:org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar@4, \
reference\:file\:mailto:org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar@2\:start, \
reference\:file\:mailto:org.eclipse.equinox.ds_1.1.1.R35x_v20090806.jar@4\:start, \
reference\:file\:mailto:org.eclipse.equinox.log_1.2.0.v20090520-1800.jar@4, \
reference\:file\:mailto:org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar@4, \
reference\:file\:mailto:org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar@4, \
reference\:file\:mailto:org.eclipse.equinox.util_1.0.100.v20090520-1800.jar@4, \
reference\:file\:mailto:org.eclipse.help_3.4.1.v20090805_35x.jar@4, \
reference\:file\:mailto:org.eclipse.jface_3.5.2.M20100120-0800.jar@4, \
reference\:file\:mailto:org.eclipse.jface.databinding_1.3.1.M20090826-0800.jar@4, \
reference\:file\:mailto:org.eclipse.nebula.widgets.compositetable_1.0.0.jar@4, \
reference\:file\:mailto:org.eclipse.osgi.services_3.2.0.v20090520-1800.jar@4, \
reference\:file\:mailto:org.eclipse.riena.beans.common_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.riena.client_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto: org.eclipse.riena.communication.console_1.2.0.v20091214_1_2_ 0_0.jar @4, \
reference\:file\:mailto: org.eclipse.riena.communication.core_1.2.0.v20091214_1_2_0_0 .jar @4, \
reference\:file\:mailto: org.eclipse.riena.communication.factory.hessian_1.2.0.v20091 214_1_2_0_0.jar @4, \
reference\:file\:mailto:org.eclipse.riena.core_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.riena.navigation_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.riena.navigation.ui_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto: org.eclipse.riena.navigation.ui.swt_1.2.0.v20091214_1_2_0_0. jar @4, \
reference\:file\:mailto: org.eclipse.riena.security.common_2.0.0.v20091214_1_2_0_0.ja r @4, \
reference\:file\:mailto:org.eclipse.riena.ui.common_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.riena.ui.core_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.riena.ui.filter_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.riena.ui.ridgets_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto: org.eclipse.riena.ui.ridgets.swt_2.0.0.v20091214_1_2_0_0.jar @4, \
reference\:file\:mailto:org.eclipse.riena.ui.swt_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.riena.ui.workarea_1.2.0.v20091214_1_2_0_0.jar@4, \
reference\:file\:mailto:org.eclipse.swt_3.5.2.v3557f.jar@4, \
reference\:file\:mailto:org.eclipse.swt.cocoa.macosx_3.5.2.v3557f.jar@4, \
reference\:file\:mailto:org.eclipse.ui_3.5.2.M20100120-0800.jar@4, \
reference\:file\:mailto:org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar@4, \
reference\:file\:mailto:org.hibernate.client_3.3.1.GA.jar@4

eclipse.application=ch.llb.contact.ui.application

# the default start level is 4
osgi.bundles.defaultStartLevel=4

osgi.framework=file\:plugins/org.eclipse.osgi_3.5.2.R35x_v20 100126.jar
eclipse.product=ch.llb.contact.ui.llb_app_ui_product
osgi.framework.extensions=reference\:file\:org.eclipse.equin ox.transforms.hook_1.0.100.v20090520-1800.jar
eclipse.p2.data.area=@config.dir/../p2/
eclipse.p2.profile=profile
Re: Eclipse RCP app hang on MACOSX 10.6 [message #605530 is a reply to message #605497] Wed, 07 April 2010 15:51 Go to previous message
Alex Shterev is currently offline Alex ShterevFriend
Messages: 20
Registered: April 2010
Junior Member
Hi Christian,

is there any specific UI component that you are using? For instance,
custom components, Nebula widgets or Swing code using an AWT bridge?
Keep in mind that the Cocoa implementation of SWT is fairly new and
might be not completely finished.
You could also try out the Carbon version, if 64-bit is not a requirement.

Regards,
Alex

Am 07.04.2010 11:58, schrieb Christian:
> Hello, we have an Eclipse RCP application running perfectly on windows
> but we cannot make it run on MAC OS X (10.6) with Java 6.
> When launching the application in the OSGI console we have:
> [Java CocoaComponent compatibility mode]: Setting timeout for SWT to
> 0.10000
> and the application hangs indefinitely.
> In the OSGI console we can display the status of our ui bundle; it is
> RESOLVED; and if we start it manually, we can see that the bundle
> Activator class is executed but the GUI does not show up.
>
> We tried with Eclipse galileo SR1-cocoa-32 and SR2-cocoa-32; but it
> produce the same result.
>
> - Is there any issue with SWT on Mac OS X ?
> - Why do we have the message "CocoaComponent compatibility mode" ?
> - We are developping with SWT Designer on windows, is there known
> problems on Macosx ?
> - Could you suggest some options we can try ?
>
> Best regards
>
> Christian
Previous Topic:Custom Ant tasks and runtime jar libraries
Next Topic:coordinates of editor Area
Goto Forum:
  


Current Time: Thu Mar 28 09:44:43 GMT 2024

Powered by FUDForum. Page generated in 0.02091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top