Re: Building Openjfx on Centos 6.6
On 1/1/15, 12:18 PM, Jens Kapitza wrote: Am 30.12.2014 um 14:16 schrieb Nick Pratt: Ok, I setup a fresh Ubuntu 12.0.4 server install on a VM (32 bit this time), installed Gradle 1.8, Oracle JDK 1.8u25 (x86 version, removed the existing jfxrt.jar), grabbed all the latest OpenJFX source and Pi/Arm tool chain and rebuilt. I copied the resulting contents of ./rt/build/armv6hf-sdk/rt over the top of JDK_HOME/jre/ on my Pi, but I'm still hitting a link error when running a JavaFX app: I've testet this some days ago; you have to remove some more jars. || |rm| |-f $JAVA_HOME||/jre/lib/ext/jfx||*jar $JAVA_HOME||/jre/lib/arm/libjavafx_font_t2k||.so| This was added to to wiki this week as I worked to figure out what was happening. https://wiki.openjdk.java.net/display/OpenJFX/Cross+Building+for+ARM+Hard+Float Also added, on the Pi we need you to use 'sudo java ...' because of the permissions of udev and the devices that we need to read. Dave https://wiki.openjdk.java.net/display/OpenJFX/Cross+Building+for+ARM+Hard+Float pi@raspberrypi ~ $ java -jar JavaFXApp.jar Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: com.sun.glass.ui.monocle.linux.Udev._open()J at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:296) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:216) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:653) at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:314) at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:305) ... 5 more Caused by: java.lang.UnsatisfiedLinkError: com.sun.glass.ui.monocle.linux.Udev._open()J at com.sun.glass.ui.monocle.linux.Udev._open(Native Method) at com.sun.glass.ui.monocle.linux.Udev.init(Udev.java:68) at com.sun.glass.ui.monocle.linux.Udev.getInstance(Udev.java:54) at com.sun.glass.ui.monocle.linux.LinuxInputDeviceRegistry.init(LinuxInputDeviceRegistry.java:77) at com.sun.glass.ui.monocle.linux.LinuxPlatform.createInputDeviceRegistry(LinuxPlatform.java:19) at com.sun.glass.ui.monocle.NativePlatform.getInputDeviceRegistry(NativePlatform.java:58) at com.sun.glass.ui.monocle.MonocleApplication.init(MonocleApplication.java:78) at com.sun.glass.ui.monocle.MonoclePlatformFactory.createApplication(MonoclePlatformFactory.java:45) at com.sun.glass.ui.Application.run(Application.java:145) at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:281) ... 9 more pi@raspberrypi~ $which java /opt/java/bin/java I look at a couple of libs within the ./jre/lib/arm folder (one I replaced, one original): pi@raspberrypi/opt/java/jre/lib/arm $file libjava.so libjava.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x85ac21c4b5e873e5ed15d80b0e64fb4c38122e8f, not stripped pi@raspberrypi /opt/java/jre/lib/arm $ file libjavafx_iio.so libjavafx_iio.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xd4b0794ac7451d58e5bf2ab6d8c856b2aa0005e5, not stripped So the latter looks correct (the former was supplied by Oracle) My C knowledge is extremely rusty (like 15 years old), and that was mostly on MS Windows - how do I check which shared lib contains the com.sun.glass.ui.monocle.linux.Udev._open()J method? Perhaps this is a gcc/link problem - did I use a different version of the compiler than I was supposed to and my version has mangled things differently, or did I install all the .so files in the wrong place (I put them all in /opt/java/jre/lib/arm): pi@raspberrypi /opt/java/jre/lib/arm $ ls -la | grep Dec 30 drwxr-xr-x 12 pi pi 4096 Dec 30 07:46 .. -rwxrwxr-x 1 pi pi61200 Dec 30 07:54 libdecora_sse.so -rwxr-xr-x 1 pi pi 134489 Dec 30 07:54 libfxplugins.so -rwxrwxr-x 1 pi pi31428 Dec 30 07:54 libglass_monocle.so -rwxrwxr-x 1 pi pi15946 Dec 30 07:54 libglass_monocle_x11.so -rwxrwxr-x 1 pi pi 193850 Dec 30 07:54 libglass.so -rwxr-xr-x 1 pi pi 1530711 Dec 30 07:54 libgstreamer-lite.so -rwxrwxr-x 1 pi pi23301 Dec 30 07:54 libjavafx_font_freetype.so -rwxrwxr-x 1 pi pi20564 Dec 30 07:54 libjavafx_font_pango.so -rwxrwxr-x 1 pi pi14950 Dec 30 07:54 libjavafx_font.so -rwxrwxr-x 1 pi pi 218614 Dec 30 07:54 libjavafx_iio.so -rwxr-xr-x 1 pi pi 224345 Dec 30 07:54 libjfxmedia.so -rwxr-xr-x 1 pi pi 30879536 Dec 30 07:54 libjfxwebkit.so -rwxrwxr-x 1 pi pi42591 Dec 30 07:54 libprism_common.so -rwxrwxr-x 1 pi pi
Re: NPE in VirtualFlow
Thanks! I’ve created the issue for this https://javafx-jira.kenai.com/browse/RT-39752 and will try to create a test case in the next few days. Best regards, Mario Am 02.01.2015 um 22:18 schrieb Chien Yang chien.y...@oracle.commailto:chien.y...@oracle.com: The closest I can find that is somewhat related to TableView and NPE, but not exactly the same issue is the following JIRA: https://javafx-jira.kenai.com/browse/RT-39624 Please file a JIRA once you have a reproducible test case ready. Here is a link on how to file a bug report with us: https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report Thanks, - Chien On 12/26/2014 1:30 AM, Mario Ivankovits wrote: Hi! Every now and then I get the exception down there (starting with JavaFX 8u40-b18 if I remember correctly) It seems it has something to to with the fact that the items list of one of my TableViews gets cleared and so no cells are visible any more. I was not yet able to always reproduce that. I will try to do that, but probably someone has a clue anyway? BR, Mario java.lang.NullPointerException at com.sun.javafx.scene.control.skin.VirtualFlow.getCellIndex(VirtualFlow.java:1726) at com.sun.javafx.scene.control.skin.VirtualFlow.addLeadingCells(VirtualFlow.java:1274) at com.sun.javafx.scene.control.skin.VirtualFlow.layoutChildren(VirtualFlow.java:1194) at com.sun.javafx.scene.control.skin.VirtualFlow.setCellCount(VirtualFlow.java:231) at com.sun.javafx.scene.control.skin.TableViewSkinBase.updateRowCount(TableViewSkinBase.java:554) at com.sun.javafx.scene.control.skin.VirtualContainerBase.checkState(VirtualContainerBase.java:113) at com.sun.javafx.scene.control.skin.VirtualContainerBase.layoutChildren(VirtualContainerBase.java:108) at com.sun.javafx.scene.control.skin.TableViewSkinBase.layoutChildren(TableViewSkinBase.java:683) at javafx.scene.control.Control.layoutChildren(Control.java:576) at javafx.scene.Parent.layout(Parent.java:1076) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Scene.doLayoutPass(Scene.java:552) at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2397) at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:314) at com.sun.javafx.tk.Toolkit$$Lambda$243/122134773.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:313) at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:340) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:525) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:505) at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$400(QuantumToolkit.java:334) at com.sun.javafx.tk.quantum.QuantumToolkit$$Lambda$41/2090707712.run(Unknown Source) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Re: NPE in VirtualFlow
The closest I can find that is somewhat related to TableView and NPE, but not exactly the same issue is the following JIRA: https://javafx-jira.kenai.com/browse/RT-39624 Please file a JIRA once you have a reproducible test case ready. Here is a link on how to file a bug report with us: https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report Thanks, - Chien On 12/26/2014 1:30 AM, Mario Ivankovits wrote: Hi! Every now and then I get the exception down there (starting with JavaFX 8u40-b18 if I remember correctly) It seems it has something to to with the fact that the items list of one of my TableViews gets cleared and so no cells are visible any more. I was not yet able to always reproduce that. I will try to do that, but probably someone has a clue anyway? BR, Mario java.lang.NullPointerException at com.sun.javafx.scene.control.skin.VirtualFlow.getCellIndex(VirtualFlow.java:1726) at com.sun.javafx.scene.control.skin.VirtualFlow.addLeadingCells(VirtualFlow.java:1274) at com.sun.javafx.scene.control.skin.VirtualFlow.layoutChildren(VirtualFlow.java:1194) at com.sun.javafx.scene.control.skin.VirtualFlow.setCellCount(VirtualFlow.java:231) at com.sun.javafx.scene.control.skin.TableViewSkinBase.updateRowCount(TableViewSkinBase.java:554) at com.sun.javafx.scene.control.skin.VirtualContainerBase.checkState(VirtualContainerBase.java:113) at com.sun.javafx.scene.control.skin.VirtualContainerBase.layoutChildren(VirtualContainerBase.java:108) at com.sun.javafx.scene.control.skin.TableViewSkinBase.layoutChildren(TableViewSkinBase.java:683) at javafx.scene.control.Control.layoutChildren(Control.java:576) at javafx.scene.Parent.layout(Parent.java:1076) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Parent.layout(Parent.java:1082) at javafx.scene.Scene.doLayoutPass(Scene.java:552) at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2397) at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:314) at com.sun.javafx.tk.Toolkit$$Lambda$243/122134773.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:313) at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:340) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:525) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:505) at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$400(QuantumToolkit.java:334) at com.sun.javafx.tk.quantum.QuantumToolkit$$Lambda$41/2090707712.run(Unknown Source) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Re: TitledPane background color
titled-pane .content { -fx-background-color: green; } Cheers, Mo On 25 Dec 2014, at 23:13, Peter Penzov peter.pen...@gmail.com wrote: Hi All, I have a question how to change TitledPane background color. I tested this code: public class MainApp extends Application { @Override public void start(Stage stage) throws Exception { TitledPane pane = new TitledPane(Title, null); pane.setStyle(-fx-focus-color: transparent; -fx-background-color: green;); pane.setCollapsible(false); pane.setPrefSize(300, 500); Scene scene = new Scene(pane); stage.setTitle(JavaFX and Maven); stage.setScene(scene); stage.show(); } public static void main(String[] args) { launch(args); } } I tried to set the background color to green but when I run the code the background color is gray. What is the proper way to change the background color of the TitledPane body? BR, Peter
Re: 3D shape not clipped by ScrollPane properly?
We haven't specified the semantic of Clip on 3D primitive and it is currently a NOP. - Chien On 12/29/2014 3:28 PM, Mike Hearn wrote: I have a ScrollPane into which I put a Pane with a min width/height, and then I place a Button and a Sphere. For both of them I use setLayoutX/Y to move them around. Now when I scroll the ScrollPane I can see it move the button around correctly, and the sphere, but the sphere is able to draw over the scrollbars. It's not being clipped like the Button is. I have not configured any special cameras or the like. Do 3D objects clip differently to 2D objects? If so, why?