Re: NPE in PrismFontLoader.java: Loading primary font factory failed

2016-02-29 Thread Maurice
For those searching for an answer, I could fix it by adding pango and 
fontconfig to the Yocto build.


Maurice.



Re: NPE in PrismFontLoader.java: Loading primary font factory failed

2016-02-19 Thread Maurice
It seems that pango isn't present on the system. Given that we have a 
fairly naked Yocto image, is there another way than trail and error to 
know all dependencies needed by Java and JavaFX?


Maurice.

Op 19-02-16 om 17:00 schreef Kevin Rushforth:
What I meant was for you to find out whether the system pango library 
that javafx_font_pango.so depends upon is present. Run the "ldd" 
commands and make sure there are no missing dependencies.


Also, I hadn't noticed you were trying to use the ARM bits. Maybe Dave 
Hill has some additional thoughts on this.


-- Kevin


Maurice wrote:

Kevin,

Yes, in lib/arm these libraries are present. I'm using the Oracle ARM 
JDK 1.8.0_33 fwiw. On the default ubuntu based image I can run JavaFX 
with this Java setup, but without HW acceleration.


Maurice.

root@udooqdl:/# find / -name "*javafx_font*.so"
/opt/jdk1.8.0_33/lib/arm/libjavafx_font_freetype.so
/opt/jdk1.8.0_33/lib/arm/libjavafx_font_pango.so
/opt/jdk1.8.0_33/lib/arm/libjavafx_font.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font_freetype.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font_pango.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font.so


Op 19-02-16 om 16:49 schreef Kevin Rushforth:
Do you have the pango and freetype libraries installed on your 
platform? One thing to check is whether any dependent libraries are 
missing for the following .so files:


   ldd  libjavafx_font.so
   ldd  libjavafx_font_freetype.so
   ldd  libjavafx_font_pango.so

-- Kevin


Maurice wrote:
I'm building a Yocto Embedded Linux image for the ARM based Udoo 
Board Quad. At the moment the build is good enough that JavaFX 
seems to see the Vivante GPU, but my small test program fails with 
a NullPointerException:
at 
com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:172)

at javafx.scene.text.Font.font(Font.java:148)
at javafx.scene.text.Font.font(Font.java:228)
at com.cuhka.Sample.start(Sample.java:18)

I tried several steps from the OpenJFX Font Setup 
 page, I 
checked the presence of the ${java.home}/lib/fonts folder and it 
does exist. Running the program with -Dprism.debugfonts=true shows 
some error:


Loading FontFactory com.sun.javafx.font.freetype.FTFactory
Subpixel: enabled
Loading font factory failed com.sun.javafx.font.freetype.FTFactory
Loading font factory failed com.sun.javafx.font.t2k.T2KFactory
*** Loading primary font factory failed. ***
*** Fallbacking to com.sun.javafx.font.t2k.T2KFactory ***

What should be added to the platform for this to be fixed?

Maurice.







Re: NPE in PrismFontLoader.java: Loading primary font factory failed

2016-02-19 Thread Kevin Rushforth
What I meant was for you to find out whether the system pango library 
that javafx_font_pango.so depends upon is present. Run the "ldd" 
commands and make sure there are no missing dependencies.


Also, I hadn't noticed you were trying to use the ARM bits. Maybe Dave 
Hill has some additional thoughts on this.


-- Kevin


Maurice wrote:

Kevin,

Yes, in lib/arm these libraries are present. I'm using the Oracle ARM 
JDK 1.8.0_33 fwiw. On the default ubuntu based image I can run JavaFX 
with this Java setup, but without HW acceleration.


Maurice.

root@udooqdl:/# find / -name "*javafx_font*.so"
/opt/jdk1.8.0_33/lib/arm/libjavafx_font_freetype.so
/opt/jdk1.8.0_33/lib/arm/libjavafx_font_pango.so
/opt/jdk1.8.0_33/lib/arm/libjavafx_font.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font_freetype.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font_pango.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font.so


Op 19-02-16 om 16:49 schreef Kevin Rushforth:
Do you have the pango and freetype libraries installed on your 
platform? One thing to check is whether any dependent libraries are 
missing for the following .so files:


   ldd  libjavafx_font.so
   ldd  libjavafx_font_freetype.so
   ldd  libjavafx_font_pango.so

-- Kevin


Maurice wrote:
I'm building a Yocto Embedded Linux image for the ARM based Udoo 
Board Quad. At the moment the build is good enough that JavaFX seems 
to see the Vivante GPU, but my small test program fails with a 
NullPointerException:
at 
com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:172)

at javafx.scene.text.Font.font(Font.java:148)
at javafx.scene.text.Font.font(Font.java:228)
at com.cuhka.Sample.start(Sample.java:18)

I tried several steps from the OpenJFX Font Setup 
 page, I 
checked the presence of the ${java.home}/lib/fonts folder and it 
does exist. Running the program with -Dprism.debugfonts=true shows 
some error:


Loading FontFactory com.sun.javafx.font.freetype.FTFactory
Subpixel: enabled
Loading font factory failed com.sun.javafx.font.freetype.FTFactory
Loading font factory failed com.sun.javafx.font.t2k.T2KFactory
*** Loading primary font factory failed. ***
*** Fallbacking to com.sun.javafx.font.t2k.T2KFactory ***

What should be added to the platform for this to be fixed?

Maurice.





Re: NPE in PrismFontLoader.java: Loading primary font factory failed

2016-02-19 Thread Maurice

Kevin,

Yes, in lib/arm these libraries are present. I'm using the Oracle ARM 
JDK 1.8.0_33 fwiw. On the default ubuntu based image I can run JavaFX 
with this Java setup, but without HW acceleration.


Maurice.

root@udooqdl:/# find / -name "*javafx_font*.so"
/opt/jdk1.8.0_33/lib/arm/libjavafx_font_freetype.so
/opt/jdk1.8.0_33/lib/arm/libjavafx_font_pango.so
/opt/jdk1.8.0_33/lib/arm/libjavafx_font.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font_freetype.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font_pango.so
/opt/jdk1.8.0_33/jre/lib/arm/libjavafx_font.so


Op 19-02-16 om 16:49 schreef Kevin Rushforth:
Do you have the pango and freetype libraries installed on your 
platform? One thing to check is whether any dependent libraries are 
missing for the following .so files:


   ldd  libjavafx_font.so
   ldd  libjavafx_font_freetype.so
   ldd  libjavafx_font_pango.so

-- Kevin


Maurice wrote:
I'm building a Yocto Embedded Linux image for the ARM based Udoo 
Board Quad. At the moment the build is good enough that JavaFX seems 
to see the Vivante GPU, but my small test program fails with a 
NullPointerException:
at 
com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:172)

at javafx.scene.text.Font.font(Font.java:148)
at javafx.scene.text.Font.font(Font.java:228)
at com.cuhka.Sample.start(Sample.java:18)

I tried several steps from the OpenJFX Font Setup 
 page, I 
checked the presence of the ${java.home}/lib/fonts folder and it does 
exist. Running the program with -Dprism.debugfonts=true shows some 
error:


Loading FontFactory com.sun.javafx.font.freetype.FTFactory
Subpixel: enabled
Loading font factory failed com.sun.javafx.font.freetype.FTFactory
Loading font factory failed com.sun.javafx.font.t2k.T2KFactory
*** Loading primary font factory failed. ***
*** Fallbacking to com.sun.javafx.font.t2k.T2KFactory ***

What should be added to the platform for this to be fixed?

Maurice.





Re: NPE in PrismFontLoader.java: Loading primary font factory failed

2016-02-19 Thread Kevin Rushforth
Another thing that might help diagnose which library has the problem is 
to run with "java -Djavafx.verbose=true ..." -- that option will print 
each native library as it is being loaded and print the exception 
message if one fails.


-- Kevin


Kevin Rushforth wrote:
Do you have the pango and freetype libraries installed on your 
platform? One thing to check is whether any dependent libraries are 
missing for the following .so files:


   ldd  libjavafx_font.so
   ldd  libjavafx_font_freetype.so
   ldd  libjavafx_font_pango.so

-- Kevin


Maurice wrote:
I'm building a Yocto Embedded Linux image for the ARM based Udoo 
Board Quad. At the moment the build is good enough that JavaFX seems 
to see the Vivante GPU, but my small test program fails with a 
NullPointerException:
at 
com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:172)

at javafx.scene.text.Font.font(Font.java:148)
at javafx.scene.text.Font.font(Font.java:228)
at com.cuhka.Sample.start(Sample.java:18)

I tried several steps from the OpenJFX Font Setup 
 page, I 
checked the presence of the ${java.home}/lib/fonts folder and it does 
exist. Running the program with -Dprism.debugfonts=true shows some 
error:


Loading FontFactory com.sun.javafx.font.freetype.FTFactory
Subpixel: enabled
Loading font factory failed com.sun.javafx.font.freetype.FTFactory
Loading font factory failed com.sun.javafx.font.t2k.T2KFactory
*** Loading primary font factory failed. ***
*** Fallbacking to com.sun.javafx.font.t2k.T2KFactory ***

What should be added to the platform for this to be fixed?

Maurice.



Re: NPE in PrismFontLoader.java: Loading primary font factory failed

2016-02-19 Thread Kevin Rushforth
Do you have the pango and freetype libraries installed on your platform? 
One thing to check is whether any dependent libraries are missing for 
the following .so files:


   ldd  libjavafx_font.so
   ldd  libjavafx_font_freetype.so
   ldd  libjavafx_font_pango.so

-- Kevin


Maurice wrote:
I'm building a Yocto Embedded Linux image for the ARM based Udoo Board 
Quad. At the moment the build is good enough that JavaFX seems to see 
the Vivante GPU, but my small test program fails with a 
NullPointerException:

at com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:172)
at javafx.scene.text.Font.font(Font.java:148)
at javafx.scene.text.Font.font(Font.java:228)
at com.cuhka.Sample.start(Sample.java:18)

I tried several steps from the OpenJFX Font Setup 
 page, I 
checked the presence of the ${java.home}/lib/fonts folder and it does 
exist. Running the program with -Dprism.debugfonts=true shows some error:


Loading FontFactory com.sun.javafx.font.freetype.FTFactory
Subpixel: enabled
Loading font factory failed com.sun.javafx.font.freetype.FTFactory
Loading font factory failed com.sun.javafx.font.t2k.T2KFactory
*** Loading primary font factory failed. ***
*** Fallbacking to com.sun.javafx.font.t2k.T2KFactory ***

What should be added to the platform for this to be fixed?

Maurice.



NPE in PrismFontLoader.java: Loading primary font factory failed

2016-02-19 Thread Maurice
I'm building a Yocto Embedded Linux image for the ARM based Udoo Board 
Quad. At the moment the build is good enough that JavaFX seems to see 
the Vivante GPU, but my small test program fails with a 
NullPointerException:

at com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:172)
at javafx.scene.text.Font.font(Font.java:148)
at javafx.scene.text.Font.font(Font.java:228)
at com.cuhka.Sample.start(Sample.java:18)

I tried several steps from the OpenJFX Font Setup 
 page, I 
checked the presence of the ${java.home}/lib/fonts folder and it does 
exist. Running the program with -Dprism.debugfonts=true shows some error:


Loading FontFactory com.sun.javafx.font.freetype.FTFactory
Subpixel: enabled
Loading font factory failed com.sun.javafx.font.freetype.FTFactory
Loading font factory failed com.sun.javafx.font.t2k.T2KFactory
*** Loading primary font factory failed. ***
*** Fallbacking to com.sun.javafx.font.t2k.T2KFactory ***

What should be added to the platform for this to be fixed?

Maurice.