Gradle build file, Eclipse & Exceptions during start time

172 views
Skip to first unread message

Даниэль Циммерманн

unread,
Apr 15, 2015, 8:11:40 AM4/15/15
to javafx...@googlegroups.com
Hi

From different sources at the javafxports page I have finally created a build script for a small application that is also creating a valid Eclipse project

build.gradle
apply plugin: 'java'
apply plugin
: 'eclipse'

sourceCompatibility
= 1.7

version
= '0.0.1'

Properties props = new Properties()
props
.load(new FileInputStream("./local.properties"))

String _androidSdk = props."android.sdk"
String _androidTarget = props."android.sdk.target"

jar
{
    manifest
{
        attributes
'Implementation-Title': 'Test', 'Implementation-Version': version
   
}
}

eclipse
{
    pathVariables
'GRADLE_HOME': file('/home/daniel/programs/gradle-2.3')

    project
{
        name
= 'Test'
        comment
= 'JavaFX Test App'

        natures
= ['org.eclipse.xtext.ui.shared.xtextNature', 'org.eclipse.jdt.core.javanature']

        buildCommand
'org.eclipse.xtext.ui.shared.xtextBuilder'
   
}

    classpath
{

        plusConfigurations
+= [ configurations.compile ]

        defaultOutputDir
= file('build-eclipse')

        downloadSources
= true
        downloadJavadoc
= true

        file
{

            withXml
{

               
def node = it.asNode()

                node
.appendNode("classpathentry kind=\"con\" path=\"org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER\"")
                node
.appendNode("classpathentry kind=\"lib\" path=\"${_androidSdk}/platforms/${_androidTarget}/android.jar\"")
           
}
       
}
   
}
}

buildscript
{
    repositories
{
        jcenter
()
   
}

    dependencies
{
        classpath
'org.javafxports:jfxmobile-plugin:1.0.0-b7'
   
}
}

apply plugin
: 'org.javafxports.jfxmobile'

mainClassName
= 'eu.dzim.app.Main'

repositories
{
    jcenter
()
}

jfxmobile
{
    ios
{
        forceLinkClasses
= [ 'eu.dzim.**.*' ]
   
}
    android
{
        androidSdk
= "${_androidSdk}/"
        applicationPackage
= 'eu.dzim.app'
   
}
}

dependencies
{
    compile fileTree
(include: ['*.jar'], dir: 'libs')
    runtime fileTree
(include: ['*.jar'], dir: 'libs')
    compile
"org.javafxports:jfxdvk:8u40-b5"
    runtime
"org.javafxports:jfxdvk:8u40-b5"
}

task wrapper
(type: Wrapper) {
    gradleVersion
= '2.2.1'
}

Now. When I call gradle eclipse the eclipse project settings are generated as requested (I use Eclipse and the e(fx)clipse project, that's why I did this whole thing).

My local.properties:
android.sdk=/home/daniel/programs/android-sdk-linux
android
.sdk.target=android-21

So far so good.

But when I now call gradle android and install the generated APK file, I get an exception and the app crashes imediatly with a brutally long log in logcat - and none of the messages really tell me, what actually went wrong. Mybe my Code is flawed, but I can test it on the desktop, so I don't really know it.

So here is the stack trace and sorry for the length!

Can someone tell me what is happening??? I hope so :-(

Cheers,
Daniel




04-15 13:42:21.822: I/ActivityManager(1962): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=eu.dzim.app cmp=eu.dzim.app/javafxports.android.FXActivity} from uid 10069 on display 0
04-15 13:42:21.830: V/WindowManager(1962): addAppToken: AppWindowToken{b8d81e token=Token{5767459 ActivityRecord{335240a0 u0 eu.dzim.app/javafxports.android.FXActivity t756}}} to stack=1 task=756 at 0
04-15 13:42:21.846: V/WindowManager(1962): Adding window Window{1cb368f7 u0 Starting eu.dzim.app} at 8 of 14 (after Window{29c26b19 u0 com.android.packageinstaller/com.android.packageinstaller.InstallAppProgress})
04-15 13:42:21.922: I/art(2701): Late-enabling -Xcheck:jni
04-15 13:42:21.928: I/ActivityManager(1962): Start proc 2701:eu.dzim.app/u0a152 for activity eu.dzim.app/javafxports.android.FXActivity
04-15 13:42:21.961: D/OpenGLRenderer(2338): endAllStagingAnimators on 0x9e136400 (RippleDrawable) with handle 0x9e0e16e0
04-15 13:42:21.981: I/MultiDex(2701): VM with version 2.1.0 has multidex support
04-15 13:42:21.981: I/MultiDex(2701): install
04-15 13:42:21.981: I/MultiDex(2701): VM has multidex support, MultiDex support library is disabled.
04-15 13:42:21.990: V/FXActivity native(2701): Loading library
04-15 13:42:21.994: V/FXActivity(2701): onCreate called, Using 8u40-b5
04-15 13:42:21.996: V/FXActivity native(2701): Notification queue instance created.
04-15 13:42:21.996: V/FXActivity native(2701): Notification queue started
04-15 13:42:22.016: E/FXActivity(2701): Failed to read build timestamp.
04-15 13:42:22.016: E/FXActivity(2701): java.io.FileNotFoundException: buildtime
04-15 13:42:22.016: E/FXActivity(2701):     at android.content.res.AssetManager.openAsset(Native Method)
04-15 13:42:22.016: E/FXActivity(2701):     at android.content.res.AssetManager.open(AssetManager.java:313)
04-15 13:42:22.016: E/FXActivity(2701):     at android.content.res.AssetManager.open(AssetManager.java:287)
04-15 13:42:22.016: E/FXActivity(2701):     at javafxports.android.FXActivity.getCurrentBuildStamp(FXActivity.java:226)
04-15 13:42:22.016: E/FXActivity(2701):     at javafxports.android.FXActivity.isUptodate(FXActivity.java:206)
04-15 13:42:22.016: E/FXActivity(2701):     at javafxports.android.FXActivity.onCreate(FXActivity.java:152)
04-15 13:42:22.016: E/FXActivity(2701):     at android.app.Activity.performCreate(Activity.java:5990)
04-15 13:42:22.016: E/FXActivity(2701):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
04-15 13:42:22.016: E/FXActivity(2701):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
04-15 13:42:22.016: E/FXActivity(2701):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
04-15 13:42:22.016: E/FXActivity(2701):     at android.app.ActivityThread.access$800(ActivityThread.java:151)
04-15 13:42:22.016: E/FXActivity(2701):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
04-15 13:42:22.016: E/FXActivity(2701):     at android.os.Handler.dispatchMessage(Handler.java:102)
04-15 13:42:22.016: E/FXActivity(2701):     at android.os.Looper.loop(Looper.java:135)
04-15 13:42:22.016: E/FXActivity(2701):     at android.app.ActivityThread.main(ActivityThread.java:5254)
04-15 13:42:22.016: E/FXActivity(2701):     at java.lang.reflect.Method.invoke(Native Method)
04-15 13:42:22.016: E/FXActivity(2701):     at java.lang.reflect.Method.invoke(Method.java:372)
04-15 13:42:22.016: E/FXActivity(2701):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
04-15 13:42:22.016: E/FXActivity(2701):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
04-15 13:42:22.016: V/FXActivity(2701): extracting secondary dex files from 'Application_dex.jar' from asset resource to storage location
04-15 13:42:22.019: V/FXActivity(2701): Not found application dex and resources jars.
04-15 13:42:22.019: V/FXActivity(2701): java.io.FileNotFoundException: Application_dex.jar
04-15 13:42:22.019: V/FXActivity(2701):     at android.content.res.AssetManager.openAsset(Native Method)
04-15 13:42:22.019: V/FXActivity(2701):     at android.content.res.AssetManager.open(AssetManager.java:313)
04-15 13:42:22.019: V/FXActivity(2701):     at android.content.res.AssetManager.open(AssetManager.java:287)
04-15 13:42:22.019: V/FXActivity(2701):     at javafxports.android.FXActivity.extractDexFiles(FXActivity.java:268)
04-15 13:42:22.019: V/FXActivity(2701):     at javafxports.android.FXActivity.onCreate(FXActivity.java:155)
04-15 13:42:22.019: V/FXActivity(2701):     at android.app.Activity.performCreate(Activity.java:5990)
04-15 13:42:22.019: V/FXActivity(2701):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
04-15 13:42:22.019: V/FXActivity(2701):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
04-15 13:42:22.019: V/FXActivity(2701):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
04-15 13:42:22.019: V/FXActivity(2701):     at android.app.ActivityThread.access$800(ActivityThread.java:151)
04-15 13:42:22.019: V/FXActivity(2701):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
04-15 13:42:22.019: V/FXActivity(2701):     at android.os.Handler.dispatchMessage(Handler.java:102)
04-15 13:42:22.019: V/FXActivity(2701):     at android.os.Looper.loop(Looper.java:135)
04-15 13:42:22.019: V/FXActivity(2701):     at android.app.ActivityThread.main(ActivityThread.java:5254)
04-15 13:42:22.019: V/FXActivity(2701):     at java.lang.reflect.Method.invoke(Native Method)
04-15 13:42:22.019: V/FXActivity(2701):     at java.lang.reflect.Method.invoke(Method.java:372)
04-15 13:42:22.019: V/FXActivity(2701):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
04-15 13:42:22.019: V/FXActivity(2701):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
04-15 13:42:22.019: V/FXActivity(2701): Secondary dex file classpath
04-15 13:42:22.020: V/FXActivity(2701): Confiuration orientation: PORTRAIT
04-15 13:42:22.020: V/FXActivity native(2701): appDataDir: /data/data/eu.dzim.app
04-15 13:42:22.021: V/FXActivity(2701): onStart
04-15 13:42:22.022: V/FXActivity(2701): onResume
04-15 13:42:22.027: D/OpenGLRenderer(2701): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
04-15 13:42:22.030: D/Atlas(2701): Validating map...
04-15 13:42:22.038: V/WindowManager(1962): Adding window Window{370d1fda u0 eu.dzim.app/javafxports.android.FXActivity} at 8 of 15 (before Window{1cb368f7 u0 Starting eu.dzim.app})
04-15 13:42:22.077: I/Adreno(2701): EGLInit: QTI Build: 01/29/15, 1bccc5d, I0ba6dce82d
04-15 13:42:22.086: I/OpenGLRenderer(2701): Initialized EGL, version 1.4
04-15 13:42:22.092: D/OpenGLRenderer(2701): Enabling debug mode 0
04-15 13:42:22.123: W/System.err(2701): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
04-15 13:42:22.123: W/System.err(2701):     at javafxports.android.FXDalvikEntity$1.onGlobalLayout(FXDalvikEntity.java:142)
04-15 13:42:22.123: W/System.err(2701):     at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:912)
04-15 13:42:22.124: W/System.err(2701):     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1881)
04-15 13:42:22.124: W/System.err(2701):     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
04-15 13:42:22.124: W/System.err(2701):     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
04-15 13:42:22.124: W/System.err(2701):     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
04-15 13:42:22.124: W/System.err(2701):     at android.view.Choreographer.doCallbacks(Choreographer.java:580)
04-15 13:42:22.124: W/System.err(2701):     at android.view.Choreographer.doFrame(Choreographer.java:550)
04-15 13:42:22.124: W/System.err(2701):     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
04-15 13:42:22.124: W/System.err(2701):     at android.os.Handler.handleCallback(Handler.java:739)
04-15 13:42:22.124: W/System.err(2701):     at android.os.Handler.dispatchMessage(Handler.java:95)
04-15 13:42:22.124: W/System.err(2701):     at android.os.Looper.loop(Looper.java:135)
04-15 13:42:22.124: W/System.err(2701):     at android.app.ActivityThread.main(ActivityThread.java:5254)
04-15 13:42:22.124: W/System.err(2701):     at java.lang.reflect.Method.invoke(Native Method)
04-15 13:42:22.124: W/System.err(2701):     at java.lang.reflect.Method.invoke(Method.java:372)
04-15 13:42:22.124: W/System.err(2701):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
04-15 13:42:22.124: W/System.err(2701):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
04-15 13:42:22.140: V/WindowManager(1962): Adding window Window{295b4ae8 u0 SurfaceView} at 8 of 16 (before Window{370d1fda u0 eu.dzim.app/javafxports.android.FXActivity})
04-15 13:42:22.152: V/FXEntity(2701): Surface created.
04-15 13:42:22.154: V/FXEntity(2701): metrics = DisplayMetrics{density=3.5, width=1440, height=2392, scaledDensity=3.5, xdpi=494.27, ydpi=492.606}
04-15 13:42:22.154: V/FXActivity native(2701): [JVDBG] SURFACE created native android window at 0xb499ec08, surface = 0xbeb22dc0
04-15 13:42:22.268: I/System.out(2701): javax.xml.stream.XMLEventFactory=com.sun.xml.stream.events.ZephyrEvent...
04-15 13:42:22.268: I/System.out(2701): prism.text=native
04-15 13:42:22.268: I/System.out(2701): java.vendor.url=http://www.android.com/
04-15 13:42:22.268: I/System.out(2701): java.ext.dirs=
04-15 13:42:22.268: I/System.out(2701): line.separator=
04-15 13:42:22.268: I/System.out(2701): file.encoding=UTF-8
04-15 13:42:22.268: I/System.out(2701): java.runtime.version=0.9
04-15 13:42:22.268: I/System.out(2701): prism.dirtyopts=true
04-15 13:42:22.268: I/System.out(2701): user.name=root
04-15 13:42:22.268: I/System.out(2701): java.compiler=
04-15 13:42:22.268: I/System.out(2701): android.icu.unicode.version=6.3
04-15 13:42:22.268: I/System.out(2701): javax.xml.stream.XMLOutputFactory=com.sun.xml.stream.ZephyrWriterFactory
04-15 13:42:22.268: I/System.out(2701): prism.debugfonts=true
04-15 13:42:22.268: I/System.out(2701): com.sun.javafx.gestures.rotate=true
04-15 13:42:22.268: I/System.out(2701): java.version=0
04-15 13:42:22.268: I/System.out(2701): android.icu.library.version=53.1.0.1
04-15 13:42:22.268: I/System.out(2701): use.egl=true
04-15 13:42:22.268: I/System.out(2701): embedded=monocle
04-15 13:42:22.268: I/System.out(2701): com.sun.javafx.gestures.scroll=true
04-15 13:42:22.268: I/System.out(2701): prism.lcdtext=false
04-15 13:42:22.268: I/System.out(2701): os.arch=armv7l
04-15 13:42:22.268: I/System.out(2701): java.io.tmpdir=/data/data/eu.dzim.app/cache
04-15 13:42:22.268: I/System.out(2701): glass.platform=Monocle
04-15 13:42:22.268: I/System.out(2701): android.zlib.version=1.2.8
04-15 13:42:22.268: I/System.out(2701): user.language=de
04-15 13:42:22.268: I/System.out(2701): java.vm.version=2.1.0
04-15 13:42:22.268: I/System.out(2701): com.sun.javafx.isEmbedded=true
04-15 13:42:22.268: I/System.out(2701): javax.xml.stream.XMLInputFactory=com.sun.xml.stream.ZephyrParserFactory
04-15 13:42:22.268: I/System.out(2701): prism.glDepthSize=16
04-15 13:42:22.268: I/System.out(2701): path.separator=:
04-15 13:42:22.268: I/System.out(2701): java.runtime.name=Android Runtime
04-15 13:42:22.268: I/System.out(2701): java.specification.version=0.9
04-15 13:42:22.269: I/System.out(2701): user.dir=/
04-15 13:42:22.269: I/System.out(2701): prism.maxTextureSize=2048
04-15 13:42:22.269: I/System.out(2701): java.vm.specification.vendor=The Android Project
04-15 13:42:22.269: I/System.out(2701): com.sun.javafx.gestures.zoom=true
04-15 13:42:22.269: I/System.out(2701): java.vm.name=Dalvik
04-15 13:42:22.269: I/System.out(2701): log.lens=FINEST
04-15 13:42:22.269: I/System.out(2701): java.vm.specification.version=0.9
04-15 13:42:22.269: I/System.out(2701): user.home=
04-15 13:42:22.269: I/System.out(2701): java.specification.name=Dalvik Core Library
04-15 13:42:22.269: I/System.out(2701): file.separator=/
04-15 13:42:22.269: I/System.out(2701): java.library.path=/vendor/lib:/system/lib
04-15 13:42:22.269: I/System.out(2701): os.version=3.10.40-geec2459
04-15 13:42:22.269: I/System.out(2701): java.boot.class.path=/system/framework/core-libart.jar:/sy...
04-15 13:42:22.269: I/System.out(2701): DALVIK.prism.verbose=true
04-15 13:42:22.269: I/System.out(2701): java.vm.specification.name=Dalvik Virtual Machine Specification
04-15 13:42:22.269: I/System.out(2701): javafx.platform=android
04-15 13:42:22.269: I/System.out(2701): glass.lens=eglfb
04-15 13:42:22.269: I/System.out(2701): user.region=DE
04-15 13:42:22.269: I/System.out(2701): os.name=Linux
04-15 13:42:22.269: I/System.out(2701): java.class.path=.
04-15 13:42:22.269: I/System.out(2701): prism.verbose=true
04-15 13:42:22.269: I/System.out(2701): prism.vsync=false
04-15 13:42:22.269: I/System.out(2701): java.specification.vendor=The Android Project
04-15 13:42:22.269: I/System.out(2701): java.vm.vendor=The Android Project
04-15 13:42:22.269: I/System.out(2701): prism.allowhidpi=true
04-15 13:42:22.269: I/System.out(2701): java.vendor=The Android Project
04-15 13:42:22.269: I/System.out(2701): http.agent=Dalvik/2.1.0 (Linux; U; Android 5.1; ...
04-15 13:42:22.269: I/System.out(2701): android.icu.cldr.version=25.0
04-15 13:42:22.269: I/System.out(2701): android.openssl.version=OpenSSL 1.0.1j 15 Oct 2014
04-15 13:42:22.269: I/System.out(2701): java.home=/system
04-15 13:42:22.269: I/System.out(2701): java.vm.vendor.url=http://www.android.com/
04-15 13:42:22.269: I/System.out(2701): java.class.version=50.0
04-15 13:42:22.269: V/DalvikLauncher(2701): Launch JavaFX application on DALVIK vm.
04-15 13:42:22.271: V/DalvikLauncher(2701): Application classloader initialized: dalvik.system.DexClassLoader[DexPathList[[],nativeLibraryDirectories=[/data/app/eu.dzim.app-1/lib/arm, /vendor/lib, /system/lib]]]
04-15 13:42:22.271: I/System.out(2701): Set monocle init to public static void com.sun.glass.ui.monocle.AndroidInputDeviceRegistry.registerDevice()
04-15 13:42:22.272: I/System.out(2701): [JDVBG] SetOnGlobaleLayoutChangedMethod set to null
04-15 13:42:22.274: V/DalvikLauncher(2701): We have JavaFX on our current (base) classpath, registered exit listener
04-15 13:42:22.276: V/DalvikLauncher(2701): application class: [class eu.dzim.app.Main]
04-15 13:42:22.276: V/DalvikLauncher(2701): preloader class: [null]
04-15 13:42:22.276: V/DalvikLauncher(2701): javafx application class: [class javafx.application.Application]
04-15 13:42:22.276: V/DalvikLauncher(2701): javafx launcher class: [class com.sun.javafx.application.LauncherImpl]
04-15 13:42:22.276: V/DalvikLauncher(2701): launch application method: [public static void com.sun.javafx.application.LauncherImpl.launchApplication(java.lang.Class,java.lang.Class,java.lang.String[])]
04-15 13:42:22.276: V/FXEntity(2701): Called Surface changed [1440, 2304], format 4
04-15 13:42:22.276: V/FXActivity native(2701): [JVDBG] SURFACE created native android window at 0xb499ec08, surface = 0xbeb22db0
04-15 13:42:22.276: V/FXEntity(2701): Called Surface redraw needed
04-15 13:42:22.300: I/System.out(2701): Prism pipeline init order: es2
04-15 13:42:22.300: I/System.out(2701): Using platform text rasterizer
04-15 13:42:22.300: I/System.out(2701): Using native-based Pisces rasterizer
04-15 13:42:22.300: I/System.out(2701): Using dirty region optimizations
04-15 13:42:22.300: I/System.out(2701): Using system sized mask for primitives
04-15 13:42:22.300: I/System.out(2701): Not forcing power of 2 sizes for textures
04-15 13:42:22.300: I/System.out(2701): Using hardware CLAMP_TO_ZERO mode
04-15 13:42:22.301: I/System.out(2701): Opting in for HiDPI pixel scaling
04-15 13:42:22.307: I/System.out(2701): Prism pipeline name = com.sun.prism.es2.ES2Pipeline
04-15 13:42:22.308: I/System.out(2701): Loading ES2 native library ... prism_es2_monocle
04-15 13:42:22.310: E/art(2701): dlopen("/vendor/lib/libprism_es2_monocle.so", RTLD_LAZY) failed: dlopen failed: library "/vendor/lib/libprism_es2_monocle.so" not found
04-15 13:42:22.311: E/art(2701): dlopen("/system/lib/libprism_es2_monocle.so", RTLD_LAZY) failed: dlopen failed: library "/system/lib/libprism_es2_monocle.so" not found
04-15 13:42:22.312: I/System.out(2701):     succeeded.
04-15 13:42:22.312: I/System.out(2701): GLFactory using com.sun.prism.es2.MonocleGLFactory
04-15 13:42:22.313: V/FXEntity(2701): Called Surface redraw needed
04-15 13:42:22.314: I/System.out(2701): traceConfig: Trying platform MX6 with class com.sun.glass.ui.monocle.MX6PlatformFactory
04-15 13:42:22.314: I/System.out(2701): traceConfig: Trying platform OMAP with class com.sun.glass.ui.monocle.OMAPPlatformFactory
04-15 13:42:22.315: I/System.out(2701): traceConfig: Trying platform Dispman with class com.sun.glass.ui.monocle.DispmanPlatformFactory
04-15 13:42:22.315: I/System.out(2701): traceConfig: Trying platform Android with class com.sun.glass.ui.monocle.AndroidPlatformFactory
04-15 13:42:22.318: E/art(2701): dlopen("/vendor/lib/libglass_monocle.so", RTLD_LAZY) failed: dlopen failed: library "/vendor/lib/libglass_monocle.so" not found
04-15 13:42:22.318: E/art(2701): dlopen("/system/lib/libglass_monocle.so", RTLD_LAZY) failed: dlopen failed: library "/system/lib/libglass_monocle.so" not found
04-15 13:42:22.320: I/System.out(2701): traceConfig: Matched Android
04-15 13:42:22.322: I/GLASS(2701): I have to Call dlopen libGLESv2.so
04-15 13:42:22.322: I/GLASS(2701): handle = 0xb6d4f004
04-15 13:42:22.322: I/GLASS(2701): I have to Call dlopen libEGL.so
04-15 13:42:22.322: I/GLASS(2701): handle = 0xb6fa2bd4
04-15 13:42:22.323: I/System.out(2701): [JVDBG] created screen, screen = com.sun.glass.ui.monocle.AndroidScreen@27563b66
04-15 13:42:22.323: I/GLASS(2701): Binding to libactivity.so
04-15 13:42:22.324: I/GLASS(2701): GetNativeWindow = 0xb368ed05, getDensitiy = 0xb368ed11
04-15 13:42:22.324: V/FXEntity(2701): notify_glassHasStarted called in FXActivity. register device now.
04-15 13:42:22.328: I/System.out(2701): [JVDBG] platformGetNativeWindow will return -1264980984
04-15 13:42:22.358: I/Adreno(2701): Invalid parameter combination: eglMakeCurrent(0xb4afb100, 0x0, 0x0, 0xb4b426f0)
04-15 13:42:22.358: E/libEGL(2701): eglMakeCurrent:777 error 3009 (EGL_BAD_MATCH)
04-15 13:42:22.363: I/System.out(2701): (X) Got class = class com.sun.prism.es2.ES2Pipeline
04-15 13:42:22.366: I/System.out(2701): Initialized prism pipeline: com.sun.prism.es2.ES2Pipeline
04-15 13:42:22.374: I/DENSITY(2701): GETDENSITY, answer = 3.500000
04-15 13:42:22.375: I/System.out(2701): traceEvent: Set MouseState[x=205,y=329,wheel=0,buttonsPressed=IntSet[]]
04-15 13:42:22.379: I/ActivityManager(1962): Displayed eu.dzim.app/javafxports.android.FXActivity: +506ms
04-15 13:42:22.391: I/System.out(2701): Maximum supported texture size: 16384
04-15 13:42:22.391: I/System.out(2701): Maximum texture size clamped to 2048
04-15 13:42:22.391: I/System.out(2701): Non power of two texture support = true
04-15 13:42:22.391: I/System.out(2701): Maximum number of vertex attributes = 32
04-15 13:42:22.391: I/System.out(2701): Maximum number of uniform vertex components = 1024
04-15 13:42:22.391: I/System.out(2701): Maximum number of uniform fragment components = 896
04-15 13:42:22.391: I/System.out(2701): Maximum number of varying components = 128
04-15 13:42:22.391: I/System.out(2701): Maximum number of texture units usable in a vertex shader = 16
04-15 13:42:22.391: I/System.out(2701): Maximum number of texture units usable in a fragment shader = 16
04-15 13:42:22.391: I/System.out(2701): Graphics Vendor: Qualcomm
04-15 13:42:22.391: I/System.out(2701):        Renderer: Adreno (TM) 420
04-15 13:42:22.392: I/System.out(2701):         Version: OpenGL ES 3.1V@104.0 (GIT@I0ba6dce82d)
04-15 13:42:22.398: I/System.out(2701): register device done
04-15 13:42:22.402: W/System.err(2701):  vsync: false vpipe: true
04-15 13:42:22.402: I/System.out(2701): [MON] Create device
04-15 13:42:22.406: I/System.out(2701): [MON] Create device done, add done
04-15 13:42:22.420: I/eu.dzim.PlatformService(2701): Using PlatformProvider: eu.dzim.android.AndroidPlatformProvider
04-15 13:42:22.546: E/art(2701): dlopen("/vendor/lib/libjavafx_font.so", RTLD_LAZY) failed: dlopen failed: library "/vendor/lib/libjavafx_font.so" not found
04-15 13:42:22.547: E/art(2701): dlopen("/system/lib/libjavafx_font.so", RTLD_LAZY) failed: dlopen failed: library "/system/lib/libjavafx_font.so" not found
04-15 13:42:22.548: W/System.err(2701): Loading FontFactory com.sun.javafx.font.freetype.FTFactory
04-15 13:42:22.548: W/System.err(2701): Subpixel: enabled
04-15 13:42:22.556: E/art(2701): dlopen("/vendor/lib/libjavafx_font_freetype.so", RTLD_LAZY) failed: dlopen failed: library "/vendor/lib/libjavafx_font_freetype.so" not found
04-15 13:42:22.556: E/art(2701): dlopen("/system/lib/libjavafx_font_freetype.so", RTLD_LAZY) failed: dlopen failed: library "/system/lib/libjavafx_font_freetype.so" not found
04-15 13:42:22.560: W/System.err(2701): Freetype2 Loaded (version 2.5.0)
04-15 13:42:22.560: W/System.err(2701): LCD support Enabled
04-15 13:42:22.595: W/art(2701): Before Android 4.1, method void com.sun.javafx.scene.transform.TransformUtils$ImmutableTransform.ensureCanTransform2DPoint() would have incorrectly overridden the package-private method in javafx.scene.transform.Transform
04-15 13:42:22.705: I/ActivityManager(1962): Killing 1657:com.google.android.apps.magazines/u0a67 (adj 15): empty #17
04-15 13:42:22.863: W/art(2701): Before Android 4.1, method double javafx.scene.text.TextFlow.computeChildPrefAreaHeight(javafx.scene.Node, javafx.geometry.Insets) would have incorrectly overridden the package-private method in javafx.scene.layout.Region
04-15 13:42:22.863: W/art(2701): Before Android 4.1, method double javafx.scene.text.TextFlow.computeChildPrefAreaWidth(javafx.scene.Node, javafx.geometry.Insets) would have incorrectly overridden the package-private method in javafx.scene.layout.Region
04-15 13:42:22.934: W/ResourceType(2753): No package identifier when getting value for resource number 0x00000000
04-15 13:42:22.934: W/PackageManager(2753): Failure retrieving resources for com.estrongs.android.pop: Resource ID #0x0
04-15 13:42:22.948: I/System.out(2701): max rectangle texture cell size = 62
04-15 13:42:22.962: I/System.out(2701): wrap rectangle texture = 2 x 2
04-15 13:42:22.965: I/System.out(2701): ES2ResourceFactory: Prism - createStockShader: AlphaTexture_Color.frag
04-15 13:42:22.975: E/javafx(2701): in nCreateProgram
04-15 13:42:22.991: I/System.out(2701): ES2ResourceFactory: Prism - createStockShader: FillRoundRect_Color.frag
04-15 13:42:22.999: E/javafx(2701): in nCreateProgram
04-15 13:42:23.015: I/System.out(2701): ES2ResourceFactory: Prism - createStockShader: FillRoundRect_LinearGradient_PAD.frag
04-15 13:42:23.020: A/libc(2701): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 2732 (QuantumRenderer)
04-15 13:42:23.122: I/DEBUG(1590): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-15 13:42:23.122: I/DEBUG(1590): Build fingerprint: 'google/shamu/shamu:5.1/LMY47D/1743759:user/release-keys'
04-15 13:42:23.122: I/DEBUG(1590): Revision: '33696'
04-15 13:42:23.122: I/DEBUG(1590): ABI: 'arm'
04-15 13:42:23.122: I/DEBUG(1590): pid: 2701, tid: 2732, name: QuantumRenderer  >>> eu.dzim.app <<<
04-15 13:42:23.122: I/DEBUG(1590): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc
04-15 13:42:23.141: I/DEBUG(1590):     r0 00000000  r1 aa9d496b  r2 00000000  r3 ffffffff
04-15 13:42:23.141: I/DEBUG(1590):     r4 9f702aac  r5 aec9dcf0  r6 9f6fc7e8  r7 0000000f
04-15 13:42:23.141: I/DEBUG(1590):     r8 aec9dd04  r9 aab0eb8b  sl ffffffde  fp 9f6fca00
04-15 13:42:23.141: I/DEBUG(1590):     ip aab3d5a8  sp 9f6fc7d0  lr aaa23205  pc aaa23218  cpsr 60070030
04-15 13:42:23.142: I/DEBUG(1590): backtrace:
04-15 13:42:23.142: I/DEBUG(1590):     #00 pc 005bb218  /system/vendor/lib/libllvm-glnext.so (TParseContext::handleIdentifier(TSymbol*, llvm::StringRef const&, int)+275)
04-15 13:42:23.142: I/DEBUG(1590):     #01 pc 005d727d  /system/vendor/lib/libllvm-glnext.so (yy2parse(TParseContext&)+972)
04-15 13:42:23.142: I/DEBUG(1590):     #02 pc 005dcd3d  /system/vendor/lib/libllvm-glnext.so (yy2PaYYParse(TParseContext&)+16)
04-15 13:42:23.143: I/DEBUG(1590):     #03 pc 005e481d  /system/vendor/lib/libllvm-glnext.so (YYParser::ParseStrings(char**, long*, int, TParseContext&, int)+276)
04-15 13:42:23.143: I/DEBUG(1590):     #04 pc 005b305b  /system/vendor/lib/libllvm-glnext.so (ShCompile+1326)
04-15 13:42:23.143: I/DEBUG(1590):     #05 pc 00552399  /system/vendor/lib/libllvm-glnext.so (LLVMCompiler::parse(QGLC_SRCSHADER*)+1188)
04-15 13:42:23.143: I/DEBUG(1590):     #06 pc 005557ed  /system/vendor/lib/libllvm-glnext.so (CompilerContext::CompileToIRShader(QGLC_SRCSHADER*, QGLC_COMPILETOIR_RESULT*)+168)
04-15 13:42:23.143: I/DEBUG(1590):     #07 pc 00105903  /system/vendor/lib/egl/libGLESv2_adreno.so (EsxShaderCompiler::CompileShader(EsxContext const*, EsxShader const*, EsxInfoLog*)+526)
04-15 13:42:23.143: I/DEBUG(1590):     #08 pc 00103ced  /system/vendor/lib/egl/libGLESv2_adreno.so (EsxShader::Compile(EsxContext*)+72)
04-15 13:42:23.143: I/DEBUG(1590):     #09 pc 000b2201  /system/vendor/lib/egl/libGLESv2_adreno.so (EsxContext::GlCompileShader(unsigned int)+60)
04-15 13:42:23.143: I/DEBUG(1590):     #10 pc 000e4ef9  /system/vendor/lib/egl/libGLESv2_adreno.so (EsxGlApiParamValidate::GlCompileShader(EsxDispatch*, unsigned int)+40)
04-15 13:42:23.143: I/DEBUG(1590):     #11 pc 000a947d  /system/vendor/lib/egl/libGLESv2_adreno.so (glCompileShader+44)
04-15 13:42:23.144: I/DEBUG(1590):     #12 pc 00005c05  /data/app/eu.dzim.app-1/lib/arm/libprism_es2_monocle.so (Java_com_sun_prism_es2_GLContext_nCompileShader+116)
04-15 13:42:23.144: I/DEBUG(1590):     #13 pc 0052d97d  /data/dalvik-cache/arm/data@app@eu.dzi...@base.apk@classes.dex
04-15 13:42:23.614: W/ActivityManager(1962):   Force finishing activity 1 eu.dzim.app/javafxports.android.FXActivity
04-15 13:42:23.614: I/DEBUG(1590): Tombstone written to: /data/tombstones/tombstone_07
04-15 13:42:23.640: E/JavaBinder(1962): !!! FAILED BINDER TRANSACTION !!!
04-15 13:42:23.641: W/ActivityManager(1962): Exception thrown during pause
04-15 13:42:23.641: W/ActivityManager(1962): android.os.TransactionTooLargeException
04-15 13:42:23.641: W/ActivityManager(1962):     at android.os.BinderProxy.transactNative(Native Method)
04-15 13:42:23.641: W/ActivityManager(1962):     at android.os.BinderProxy.transact(Binder.java:496)
04-15 13:42:23.641: W/ActivityManager(1962):     at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:825)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2726)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2583)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2497)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11500)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11397)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12081)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11592)
04-15 13:42:23.641: W/ActivityManager(1962):     at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
04-15 13:42:23.643: E/lowmemorykiller(255): Error writing /proc/2701/oom_score_adj; errno=22
04-15 13:42:23.647: W/ActivityManager(1962):   Force finishing activity 2 com.estrongs.android.pop/.view.FileExplorerActivity
04-15 13:42:23.648: E/JavaBinder(1962): !!! FAILED BINDER TRANSACTION !!!
04-15 13:42:23.690: I/OpenGLRenderer(1962): Initialized EGL, version 1.4
04-15 13:42:23.693: I/WindowState(1962): WIN DEATH: Window{370d1fda u0 eu.dzim.app/javafxports.android.FXActivity}
04-15 13:42:23.705: I/Zygote(1600): Process 2701 exited due to signal (11)
04-15 13:42:23.710: I/ActivityManager(1962): Process eu.dzim.app (pid 2701) has died
04-15 13:42:23.726: I/WindowState(1962): WIN DEATH: Window{295b4ae8 u0 SurfaceView}
04-15 13:42:23.793: W/Settings(2364): Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
04-15 13:42:23.804: D/Index(2364): Deleting data for locale 'de_DE' took 8 millis
04-15 13:42:23.824: D/VoldCmdListener(258): cryptfs getpwtype
04-15 13:42:23.837: I/ActivityManager(1962): Killing 1793:com.shazam.android/u0a95 (adj 15): empty #17
04-15 13:42:23.892: D/Index(2364): Indexing locale 'de_DE' took 88 millis
04-15 13:42:23.951: D/Launcher.Workspace(8074): 11683562 - removeExtraEmptyScreen()
04-15 13:42:23.951: D/Launcher.Workspace(8074): 11683562 - convertFinalScreenToEmptyScreenIfNecessary()
04-15 13:42:24.203: I/art(18840): Explicit concurrent mark sweep GC freed 30725(1774KB) AllocSpace objects, 0(0B) LOS objects, 37% free, 27MB/43MB, paused 1.390ms total 41.503ms
04-15 13:42:24.732: W/OpenGLRenderer(8074): Incorrectly called buildLayer on View: lh, destroying layer...
04-15 13:42:24.850: W/ResourceType(2753): No package identifier when getting value for resource number 0x00000000
04-15 13:42:24.851: W/PackageManager(2753): Failure retrieving resources for com.estrongs.android.pop: Resource ID #0x0
04-15 13:42:24.917: W/ResourceType(2753): No package identifier when getting value for resource number 0x00000000
04-15 13:42:24.918: W/PackageManager(2753): Failure retrieving resources for com.android.settings: Resource ID #0x0

Johan Vos

unread,
Apr 15, 2015, 8:20:19 AM4/15/15
to Даниэль Циммерманн, javafx...@googlegroups.com
Hi,

Is this Android version 5.1?

- Johan

--
You received this message because you are subscribed to the Google Groups "JavaFXAndroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javafxandroi...@googlegroups.com.
To post to this group, send email to javafx...@googlegroups.com.
Visit this group at http://groups.google.com/group/javafxandroid.
To view this discussion on the web visit https://groups.google.com/d/msgid/javafxandroid/487b5eae-5382-4866-9ce9-aa639fb1c169%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Даниэль Циммерманн

unread,
Apr 15, 2015, 10:14:37 AM4/15/15
to javafx...@googlegroups.com, zim.d...@gmail.com
Yes it is, indeed... Nexus 6... But 2048FX is running fine, so I assumed, my build or my JavaFX code must be broken (for the deploy on an actual Android device).
...

Johan Vos

unread,
Apr 15, 2015, 10:17:22 AM4/15/15
to Даниэль Циммерманн, javafx...@googlegroups.com
You're running into this issue:
https://bitbucket.org/javafxports/javafxmobile-plugin/issue/28/lollipop-51-and-error-with-gradient

Nexus 6 with 5.1 uses GL 3.1 and we have issues there -- which I can't reproduce at the moment since I don't have a Nexus 6

- Johan

--
You received this message because you are subscribed to the Google Groups "JavaFXAndroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javafxandroi...@googlegroups.com.
To post to this group, send email to javafx...@googlegroups.com.
Visit this group at http://groups.google.com/group/javafxandroid.

Даниэль Циммерманн

unread,
Apr 15, 2015, 3:18:59 PM4/15/15
to javafx...@googlegroups.com
What I don't get is, why Jose Pereira's 2048FX is still working... Are there simply no gradients?

Any suggestion on how I could debug that to get any useful insight? To at least to try to find a solution? I world have really liked it to make my boss consider this a valid cross platform solution... :-)

José Pereda

unread,
Apr 15, 2015, 7:30:08 PM4/15/15
to javafx...@googlegroups.com
Yes, luckily the game doesn't use any gradients at all. The tiles are styled like this:

.game-tile-2048 {
    -fx-font-size: 35px;
    -fx-text-fill: #f9f6f2;
    -fx-background-color: #edc22e;
    -fx-background-radius: 3;
    -fx-border-radius: 3;
    -fx-effect: dropshadow( three-pass-box, rgba(243, 215, 116, 0.55556), 30, 0.5, 0, 0 );
    -fx-border-color: rgba(255, 255, 255, 0.33333);
    -fx-border-width: 1;
}

And all the buttons have as background some single color, like:

-fx-background-color: #f9f6f2;

instead of the default styling in modena.css, with several layers of colors that may include a linear-gradient (like -fx-inner-border, for instance).

But, on the contrary, on my Nexus 6 with Lollipop 5.1 I can't launch most of my ported apps, since they have some gradient shader.

I'll try to debug these shaders, looking for a possible workaround, hoping that the problem may be fixed in the next system upgrade.

Даниэль Циммерманн

unread,
Apr 16, 2015, 2:05:15 AM4/16/15
to javafx...@googlegroups.com
Thanks Jose, for your feedback. Since this is a test app I created a simple fxml with - guess what - several buttons on it. I used to use a custom CSS, but this one only set a different base color, so in fact all buttons still used their original gradients, just with another color base. :-/
Will try your approach today and give some feedback afterwards.

Thanks again, both of you!

Cheers,
Daniel

PS: in my company, we have an Android application which part currently still using a gradient for a background (wish wool be removed, when we go "material", along with the whole dark theme) and with Android 5.0 onwards there where issues with radial gradients (don't know if they are still present in 5.1 though). But since this is only for radial ones, I can't say if our javafx issue is related to it. Most Lilly not. Just wanted to append it, if there is the slightest possibility, that it could help...

Даниэль Циммерманн

unread,
Apr 16, 2015, 7:56:35 AM4/16/15
to javafx...@googlegroups.com
I just tried the following example on both Nexus 5 & 6:

package eu.dzim.app;

import static java.lang.String.format;

import java.util.logging.Logger;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Rectangle2D;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Screen;
import javafx.stage.Stage;
import eu.dzim.PlatformService;
import eu.dzim.PlatformType;

public class Main extends Application {
   
   
private static final Logger LOG = Logger.getLogger(Main.class.getName());
   
   
public static PlatformType platformType = PlatformType.UNKNOWN;
   
   
@Override
   
public void start(Stage primaryStage) throws Exception {
       
        platformType
= PlatformService.getInstance().getPlatformType();
       
       
double width = -1;
       
double height = -1;
       
       
Screen primaryScreen = Screen.getPrimary();
       
Rectangle2D visualBounds = primaryScreen.getVisualBounds();
       
       
if (width < 0 || height < 0) {
            width
= visualBounds.getWidth();
            height
= visualBounds.getHeight();
       
}
       
       
final Label label = new Label("Click the button to find out your platform.");
        label
.setTranslateY(30);
       
       
Button button = new Button("Hello Platform");
        button
.setOnAction(new EventHandler<ActionEvent>() {
           
@Override
           
public void handle(ActionEvent event) {
                label
.setText(format("Running on %s!", PlatformService.getInstance().getPlatformType().toString()));
           
}
       
});
       
       
Rectangle rectangle = new Rectangle(width - 20, height - 20);
        rectangle
.setFill(Color.LIGHTBLUE);
        rectangle
.setArcHeight(6);
        rectangle
.setArcWidth(6);
       
       
StackPane stackPane = new StackPane();
        stackPane
.getChildren().addAll(rectangle, button, label);
       
       
Scene scene = new Scene(stackPane, visualBounds.getWidth(), visualBounds.getHeight());
       
        scene
.getStylesheets().add("/eu/dzim/app/application.css");
       
        primaryStage
.setScene(scene);
        primaryStage
.show();
   
}
   
   
public static void main(String[] args) {
        launch
(args);
   
}
}

So more or less the HelloPlatform example from the samples.

CSS:
.root {
   
-fx-base: custom-color-base2;
   
-fx-font-family: "Arial";
   
    custom
-color-base0: #054377;
    custom
-color-base1: #1E5685;
    custom
-color-base2: #376992;
    custom
-color-base3: #507BA0;
}

.main-root {
   
-fx-base: custom-color-base2;
   
-fx-font-family: "Arial";
   
-fx-font-size: 10pt;
}

.label {
   
-fx-text-fill: white;
}

.separator .line {
   
-fx-background-color: black;
   
-fx-border-style: none;
   
-fx-border-color: darkgrey;
}

.split-pane {
   
-fx-background-color: transparent;
}

.button-base {
   
-fx-border-color: derive(-fx-base,-50%);
   
-fx-background-color: -fx-base;
}

.button {
   
-fx-border-color: derive(-fx-base,-50%);
   
-fx-background-color: -fx-base;
}

.separator .line {
   
-fx-border-style: solid;
   
-fx-border-width: 0.083333em; /* 1 */
}

Result: Runs on Nexus 5, crashes on Nexus 6.

From the few things I depend on, I hoped, I'd face no more issues, but that was futile I guess :-(

Daniel
Reply all
Reply to author
Forward
0 new messages