Example does not run on OSX
Opened this issue · 2 comments
As reported in akhikhl/wuff#24 this example does not work on OSX. Plain SWT app is know to work with Wuff and OSX (see https://github.com/tschulte/griffon-e4) however e(fx)clipse requires different setup.
The following transcript shows no errors when running this app on OSX however the screen fails to show
[wuff-efxclipse-samples]> gradle -version
------------------------------------------------------------
Gradle 2.1
------------------------------------------------------------
Build time: 2014-09-08 10:40:39 UTC
Build number: none
Revision: e6cf70745ac11fa943e19294d19a2c527a669a53
Groovy: 2.3.6
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_20 (Oracle Corporation 25.20-b23)
OS: Mac OS X 10.9.4 x86_64
[wuff-efxclipse-samples]> gradle run -i
Starting Gradle daemon
Starting daemon process: workingDir = /Users/aalmiray/.gradle/daemon/2.1, daemonArgs: [/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java, -XX:MaxPermSize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=UTF-8, -Duser.country=US, -Duser.language=en, -Duser.variant, -cp, /Users/aalmiray/.gvm/gradle/2.1/lib/gradle-launcher-2.1.jar, org.gradle.launcher.daemon.bootstrap.GradleDaemon, 2.1, /Users/aalmiray/.gradle/daemon, 10800000, f717d712-27ed-482b-8b95-5366a2f8b31b, -XX:MaxPermSize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=UTF-8, -Duser.country=US, -Duser.language=en, -Duser.variant]
Starting process 'Gradle build daemon'. Working directory: /Users/aalmiray/.gradle/daemon/2.1 Command: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /Users/aalmiray/.gvm/gradle/2.1/lib/gradle-launcher-2.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 2.1 /Users/aalmiray/.gradle/daemon 10800000 f717d712-27ed-482b-8b95-5366a2f8b31b -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 0.483 secs.
Connected to the daemon. Dispatching Build{id=219d9d3f-cd22-4945-8699-eb34bef6e848.1, currentDir=/private/tmp/wuff-efxclipse-samples} request.
The client will now receive all logging from the daemon (pid: 51486). The daemon log file: /Users/aalmiray/.gradle/daemon/2.1/daemon-51486.out.log
Executing build with daemon context: DefaultDaemonContext[uid=f717d712-27ed-482b-8b95-5366a2f8b31b,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home,daemonRegistryDir=/Users/aalmiray/.gradle/daemon,pid=51486,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Starting Build
Settings evaluated using settings file '/private/tmp/wuff-efxclipse-samples/settings.gradle'.
Projects loaded. Root project using build file '/private/tmp/wuff-efxclipse-samples/build.gradle'.
Included projects: [root project 'efxclipse-wuff-samples', project ':efxclipse-skeleton', project ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app']
Evaluating root project 'efxclipse-wuff-samples' using build file '/private/tmp/wuff-efxclipse-samples/build.gradle'.
Evaluating project ':efxclipse-skeleton' using build file '/private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/build.gradle'.
pl.cmil.efxclipse.skeleton.app: Found manifest: /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/src/main/resources/META-INF/MANIFEST.MF
allDownloadedPackagesAreInstalled, repository=file:/Users/aalmiray/.wuff/m2_repository, all checksums match, returning true
allDownloadedPackagesAreInstalled, repository=file:/Users/aalmiray/.wuff/m2_repository, all checksums match, returning true
Evaluating project ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app' using empty build file.
pl.cmil.efxclipse.skeleton.app: Found eclipse plugin configuration: /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/src/main/resources/plugin.xml
Error in equinox application configuration for project pl.cmil.efxclipse.skeleton.app:
Could not generate extension-point "org.eclipse.core.runtime.applications" and there are no user-provided extension-points of this type.
Reason: project sources do not contain Application.java or Application.groovy.
pl.cmil.efxclipse.skeleton.app: Found manifest: /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/src/main/resources/META-INF/MANIFEST.MF
All projects evaluated.
Selected primary task 'run' from project :
Tasks to be executed: [task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:compileJava', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createExtraFiles', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:processResources', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:classes', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createOsgiManifest', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:jar', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:wrapLibs', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:prepareRunConfig', task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:run']
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:compileJava (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:compileJava
Invalidating in-memory cache of /private/tmp/wuff-efxclipse-samples/.gradle/2.1/taskArtifacts/fileSnapshots.bin
Invalidating in-memory cache of /private/tmp/wuff-efxclipse-samples/.gradle/2.1/taskArtifacts/taskArtifacts.bin
Invalidating in-memory cache of /private/tmp/wuff-efxclipse-samples/.gradle/2.1/taskArtifacts/outputFileStates.bin
Invalidating in-memory cache of /private/tmp/wuff-efxclipse-samples/.gradle/2.1/taskArtifacts/fileHashes.bin
Executing task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:compileJava' (up-to-date check took 0.063 secs) due to:
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/classes/main has changed.
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/dependency-cache has changed.
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/classes/main/pl/cmil/efxclipse/skeleton/view/SamplePart.class has been removed.
All input files are considered out-of-date for incremental task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:compileJava'.
Compiling with JDK Java compiler API.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:compileJava (Thread[Daemon,5,main]) completed. Took 0.548 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createExtraFiles (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createExtraFiles
Executing task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createExtraFiles' (up-to-date check took 0.006 secs) due to:
Task.upToDateWhen is false.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createExtraFiles (Thread[Daemon,5,main]) completed. Took 0.01 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:processResources (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:processResources
Executing task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:processResources' (up-to-date check took 0.006 secs) due to:
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/resources/main has changed.
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/resources/main/plugin.xml has been removed.
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/resources/main/META-INF/MANIFEST.MF has been removed.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:processResources (Thread[Daemon,5,main]) completed. Took 0.053 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:classes (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:classes
Skipping task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:classes' as it has no actions.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:classes (Thread[Daemon,5,main]) completed. Took 0.002 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createOsgiManifest (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createOsgiManifest
Executing task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createOsgiManifest' (up-to-date check took 0.087 secs) due to:
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/tmp-osgi/MANIFEST.MF has changed.
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/tmp-osgi/MANIFEST.MF has been removed.
Analyzing import packages in plugin[attributes={}; value=[extension[attributes={id=product, point=org.eclipse.core.runtime.products}; value=[product[attributes={application=org.eclipse.fx.ui.workbench.fx.application, name=Efxclipse Demo}; value=[property[attributes={name=appName, value=e(fx)clipse skeleton}; value=[]], property[attributes={name=applicationXMI, value=pl.cmil.efxclipse.skeleton.app/Application.e4xmi}; value=[]], property[attributes={name=cssTheme, value=default}; value=[]]]]]], extension[attributes={point=org.eclipse.fx.ui.theme}; value=[theme[attributes={basestylesheet=css/default.css, id=default, name=Default}; value=[]]]]]]
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:createOsgiManifest (Thread[Daemon,5,main]) completed. Took 0.309 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:jar (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:jar
Executing task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:jar' (up-to-date check took 0.089 secs) due to:
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/libs/pl.cmil.efxclipse.skeleton.app_1.0.0-SNAPSHOT.jar has changed.
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/libs/pl.cmil.efxclipse.skeleton.app_1.0.0-SNAPSHOT.jar has been removed.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:jar (Thread[Daemon,5,main]) completed. Took 0.152 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:wrapLibs (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:wrapLibs
Skipping task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:wrapLibs' as it is up-to-date (took 0.004 secs).
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:wrapLibs UP-TO-DATE
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:wrapLibs (Thread[Daemon,5,main]) completed. Took 0.005 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:prepareRunConfig (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:prepareRunConfig
Executing task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:prepareRunConfig' (up-to-date check took 0.005 secs) due to:
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/run/configuration/config.ini has changed.
Output file /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/run/configuration/config.ini has been removed.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:prepareRunConfig (Thread[Daemon,5,main]) completed. Took 0.582 secs.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:run (Thread[Daemon,5,main]) started.
:efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:run
Executing task ':efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:run' (up-to-date check took 0.001 secs) due to:
Task has not declared any outputs.
Starting process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java''. Working directory: /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app Command: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java -XstartOnFirstThread -Xms256m -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/run/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar org.eclipse.equinox.launcher.Main -configuration /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/run/configuration -data /private/tmp/wuff-efxclipse-samples/efxclipse-skeleton/pl.cmil.efxclipse.skeleton.app/build/run -consoleLog -consoleLog -console 5555 -clearPersistedState -application org.eclipse.fx.ui.workbench.fx.application
Successfully started process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java''
> Building 88% > :efxclipse-skeleton:pl.cmil.efxclipse.skeleton.app:run
Thank you, for the script output. I have tried to reproduce this issue on Mac OS X on a virtual machine (Mavericks). My errors, when I use the built product are quite different:
2014-09-27 13:05:00.056 java[1131:9103] invalid pixel format
2014-09-27 13:05:00.056 java[1131:9103] invalid context
Fail in createContext
java(1131,0x1e3a7c000) malloc: *** error for object 0x7ffa0b717f50: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
./pl.cmil.efxclipse.skeleton.app.sh: line 2: 1131 Abort trap: 6 java -Xmx2048m -Xms256m -Dosgi.framework.extensions=org.eclipse.fx.osgi-1.0.0.201409241226.jar -XstartOnFirstThread -jar plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -clearPersistedState -application org.eclipse.fx.ui.workbench.fx.application "$@"
Unfortunately I'm not sure if its an issue with the vmware virtualization, or the underlyin�g problem is the same one. When I call the :run
task, I get a fatal error # SIGSEGV (0xb) at pc=0x00007fff902ba097, pid=1526, tid=37123
.
Have you tried running any standard efxclipse applications on OS X? Or the https://github.com/tschulte/contacts-griffon application? (I've got the same issue with it)
And additionally, you could use a telnet connection and try to connect to port 5555 port to access the osgi console. The ss
and diag
commands would allow us to discover any unresolved bundles problems.
I have not run into that error. Tobias' contacts-griffon also fails to work. It does show the splash screen and then freezes. I've run your example again and connected to the OSGi console. Here's the output
osgi> ss
"Framework is launched."
id State Bundle
0 ACTIVE org.eclipse.osgi_3.10.0.v20140606-1445
Fragments=1
1 RESOLVED org.eclipse.fx.osgi_1.0.0.201408130501
Master=0
2 STARTING com.ibm.icu_52.1.0.v201404241930
3 RESOLVED javax.annotation_1.2.0.v201401042248
4 RESOLVED javax.inject_1.0.0.v20091030
5 RESOLVED javax.servlet_3.0.0.v201112011016
6 RESOLVED javax.xml_1.3.4.v201005080400
7 RESOLVED org.apache.commons.lang_2.6.0.v201404270220
8 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
9 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
10 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
11 RESOLVED org.eclipse.core.commands_3.6.100.v20140528-1422
12 ACTIVE org.eclipse.core.contenttype_3.4.200.v20140207-1251
13 STARTING org.eclipse.core.databinding_1.4.1.v20140214-0004
14 RESOLVED org.eclipse.core.databinding.beans_1.2.200.v20140214-0004
15 STARTING org.eclipse.core.databinding.observable_1.4.1.v20140210-1835
16 STARTING org.eclipse.core.databinding.property_1.4.200.v20140214-0004
17 STARTING org.eclipse.core.expressions_3.4.600.v20140128-0851
18 STARTING org.eclipse.core.filesystem_1.4.100.v20140514-1614
19 ACTIVE org.eclipse.core.jobs_3.6.0.v20140424-0053
20 STARTING org.eclipse.core.resources_3.9.0.v20140514-1307
21 ACTIVE org.eclipse.core.runtime_3.10.0.v20140318-2214
22 RESOLVED org.eclipse.core.runtime.compatibility.registry_3.5.300.v20140128-0851
Master=44
23 STARTING org.eclipse.e4.core.commands_0.10.2.v20140424-2344
24 ACTIVE org.eclipse.e4.core.contexts_1.3.100.v20140407-1019
25 STARTING org.eclipse.e4.core.di_1.4.0.v20140414-1837
26 STARTING org.eclipse.e4.core.di.extensions_0.12.0.v20140417-2033
27 STARTING org.eclipse.e4.core.services_1.2.0.v20140509-1840
28 STARTING org.eclipse.e4.ui.di_1.0.0.v20140328-2112
29 ACTIVE org.eclipse.e4.ui.model.workbench_1.1.0.v20140512-1820
30 STARTING org.eclipse.e4.ui.services_1.1.0.v20140328-1925
31 ACTIVE org.eclipse.e4.ui.workbench_1.1.0.v20140528-1949
32 ACTIVE org.eclipse.emf.common_2.10.0.v20140514-1158
33 STARTING org.eclipse.emf.ecore_2.10.0.v20140514-1158
34 STARTING org.eclipse.emf.ecore.change_2.10.0.v20140514-1158
35 STARTING org.eclipse.emf.ecore.xmi_2.10.0.v20140514-1158
36 STARTING org.eclipse.emf.edit_2.10.0.v20140519-0339
37 ACTIVE org.eclipse.equinox.app_1.3.200.v20130910-1609
38 ACTIVE org.eclipse.equinox.common_3.6.200.v20130402-1505
39 STARTING org.eclipse.equinox.concurrent_1.1.0.v20130327-1442
40 ACTIVE org.eclipse.equinox.console_1.1.0.v20140131-1639
41 ACTIVE org.eclipse.equinox.ds_1.4.200.v20131126-2331
42 ACTIVE org.eclipse.equinox.event_1.3.100.v20140115-1647
43 ACTIVE org.eclipse.equinox.preferences_3.5.200.v20140224-1527
44 ACTIVE org.eclipse.equinox.registry_3.5.400.v20140428-1507
Fragments=22
45 ACTIVE org.eclipse.equinox.util_1.0.500.v20130404-1337
46 ACTIVE org.eclipse.fx.core_1.0.0.201408130602
47 RESOLVED org.eclipse.fx.core.databinding_1.0.0.201408130602
48 RESOLVED org.eclipse.fx.core.di_1.0.0.201408130602
49 RESOLVED org.eclipse.fx.core.fxml_1.0.0.201408130602
50 STARTING org.eclipse.fx.emf.databinding_1.0.0.201408130602
51 RESOLVED org.eclipse.fx.emf.edit.ui_1.0.0.201408130602
52 STARTING org.eclipse.fx.javafx_2.2.0.201408130501
53 ACTIVE org.eclipse.fx.osgi.util_1.0.0.201408130602
54 STARTING org.eclipse.fx.ui.controls_1.0.0.201408130602
55 RESOLVED org.eclipse.fx.ui.databinding_1.0.0.201408130602
56 STARTING org.eclipse.fx.ui.di_1.0.0.201408130602
57 RESOLVED org.eclipse.fx.ui.dialogs_1.0.0.201408130602
58 STARTING org.eclipse.fx.ui.keybindings_1.0.0.201408130602
59 RESOLVED org.eclipse.fx.ui.keybindings.e4_1.0.0.201408130602
60 STARTING org.eclipse.fx.ui.keybindings.generic_1.0.0.201408130602
61 RESOLVED org.eclipse.fx.ui.panes_1.0.0.201408130602
62 STARTING org.eclipse.fx.ui.services_1.0.0.201408130602
63 STARTING org.eclipse.fx.ui.theme_1.0.0.201408130602
64 ACTIVE org.eclipse.fx.ui.workbench.base_1.0.0.201408130602
65 ACTIVE org.eclipse.fx.ui.workbench.fx_1.0.0.201408130602
66 RESOLVED org.eclipse.fx.ui.workbench.renderers.base_1.0.0.201408130602
67 STARTING org.eclipse.fx.ui.workbench.renderers.fx_1.0.0.201408130602
68 STARTING org.eclipse.fx.ui.workbench.services_1.0.0.201408130602
69 RESOLVED org.eclipse.osgi.services_3.4.0.v20140312-2051
70 RESOLVED pl.cmil.efxclipse.skeleton.app_1.0.0.qualifier
osgi> diag
No unresolved bundles.