Converted application using CodeNameOne CN1Cordova works fine in the simulator but gives a blank screen after building using the cloud buildserver

89 views
Skip to first unread message

eddy...@gmail.com

unread,
Jan 21, 2016, 3:40:25 PM1/21/16
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans
Desktop OS Windows 7 professional
Simulator - yes
Device - Sony Xperia Z5 with Android 5.1.1

Hi there,

Did found the CN1Cordova converter. I used it to convert an application that was build with the IONIC framework (based on Cordova). Converting went just fine. It also starts in the Codename One Simulator on Netbeans. Since this is working fine I send an Android build to the buildservers.
After installing the build that was ready on the buildserver I got the app on my Sony Xperia Z5 phone.
But when I start the app I get a white screen instead of the login page (index.html file)

I used the Android SDK to switch to the Android Monitor and read all the log info from my device when I start the app. I see some errors but I can't find out how to solve them since they are generated.

Can you help me out with giving some hints where to look to figure this out?
The outcome of the Android logging is here below.

Thanks in advance!

01-21 20:18:35.977 3013-3013/? I/Timeline: Timeline: Activity_launch_request id:com.ionicframework.wfm923478 time:808554776
01-21 20:18:35.979 1421-3370/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ionicframework.wfm923478/.CordovaMainStub bnds=[6,939][273,1221]} from uid 10114 on display 0
01-21 20:18:35.984 1421-3370/? V/WindowManager: addAppToken: AppWindowToken{6bdb86f token=Token{7d64f4e ActivityRecord{222f8a49 u0 com.ionicframework.wfm923478/.CordovaMainStub t2879}}} to stack=1 task=2879 at 0
01-21 20:18:35.993 1421-1487/? V/WindowManager: Adding window Window{728fa26 u0 Starting com.ionicframework.wfm923478} at 14 of 20 (after Window{7fe0e8e u0 com.android.settings/com.android.settings.SubSettings})
01-21 20:18:36.015 1421-3394/? I/ActivityManager: Start proc 29410:com.ionicframework.wfm923478/u0a375 for activity com.ionicframework.wfm923478/.CordovaMainStub
01-21 20:18:36.017 26523-26523/? D/CycledLeScannerForLollipop: Waiting to start full Bluetooth scan for another 6983 milliseconds
01-21 20:18:36.018 29410-29410/? I/art: Late-enabling -Xcheck:jni
01-21 20:18:36.051 547-578/? D/SurfaceFlinger: setRefreshSkipCount(0)
01-21 20:18:36.126 29410-29410/com.ionicframework.wfm923478 W/ResourceType: No package identifier when getting value for resource number 0x00000000
01-21 20:18:36.126 29410-29410/com.ionicframework.wfm923478 W/ResourceType: No package identifier when getting value for resource number 0x00000000
01-21 20:18:36.147 29410-29434/com.ionicframework.wfm923478 D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
01-21 20:18:36.153 29410-29410/com.ionicframework.wfm923478 D/Atlas: Validating map...
01-21 20:18:36.156 1421-3486/? V/WindowManager: Adding window Window{181b27fe u0 com.ionicframework.wfm923478/com.ionicframework.wfm923478.CordovaMainStub} at 14 of 21 (before Window{728fa26 u0 Starting com.ionicframework.wfm923478})
01-21 20:18:36.170 29410-29429/com.ionicframework.wfm923478 W/art: Suspending all threads took: 5.817ms
01-21 20:18:36.176 29410-29429/com.ionicframework.wfm923478 I/art: Background partial concurrent mark sweep GC freed 1751(127KB) AllocSpace objects, 1(84KB) LOS objects, 39% free, 19MB/32MB, paused 10.529ms total 25.111ms
01-21 20:18:36.193 29410-29433/com.ionicframework.wfm923478 I/Codename One: Resource not found: theme_phone.ovr
01-21 20:18:36.193 29410-29433/com.ionicframework.wfm923478 I/Codename One: Resource not found: theme_android.ovr
01-21 20:18:36.193 29410-29433/com.ionicframework.wfm923478 I/Codename One: Resource not found: theme_android-phone.ovr
01-21 20:18:36.195 29410-29433/com.ionicframework.wfm923478 W/ResourceType: No package identifier when getting value for resource number 0x00000000
01-21 20:18:36.200 29410-29434/com.ionicframework.wfm923478 I/Adreno: QUALCOMM build : 41a310d, I21d2ab1dda
Build Date : 08/24/15
OpenGL ES Shader Compiler Version: E031.25.03.09
Local Branch :
Remote Branch : quic/LA.BF64.1.2.1_rb2.29
Remote Branch : NONE
Reconstruct Branch : NOTHING
01-21 20:18:36.210 29410-29434/com.ionicframework.wfm923478 I/OpenGLRenderer: Initialized EGL, version 1.4
01-21 20:18:36.220 29410-29434/com.ionicframework.wfm923478 D/OpenGLRenderer: Enabling debug mode 0
01-21 20:18:36.235 29410-29433/com.ionicframework.wfm923478 W/ResourceType: No package identifier when getting value for resource number 0x00000000
01-21 20:18:36.247 1421-1487/? I/ActivityManager: Displayed com.ionicframework.wfm923478/.CordovaMainStub: +255ms
01-21 20:18:36.264 29410-29410/com.ionicframework.wfm923478 I/WebViewFactory: Loading com.google.android.webview version 47.0.2526.100 (code 252610050)
01-21 20:18:36.274 29410-29410/com.ionicframework.wfm923478 I/cr_LibraryLoader: Time to load native libraries: 2 ms (timestamps 5071-5073)
01-21 20:18:36.274 29410-29410/com.ionicframework.wfm923478 I/cr_LibraryLoader: Expected native library version number "47.0.2526.100", actual native library version number "47.0.2526.100"
01-21 20:18:36.280 29410-29410/com.ionicframework.wfm923478 V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {2eb1d1fb}
01-21 20:18:36.280 29410-29410/com.ionicframework.wfm923478 I/cr_LibraryLoader: Expected native library version number "47.0.2526.100", actual native library version number "47.0.2526.100"
01-21 20:18:36.280 29410-29410/com.ionicframework.wfm923478 I/chromium: [INFO:library_loader_hooks.cc(122)] Chromium logging enabled: level = 0, default verbosity = 0
01-21 20:18:36.284 29410-29410/com.ionicframework.wfm923478 I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
01-21 20:18:36.286 29410-29410/com.ionicframework.wfm923478 E/SysUtils: ApplicationContext is null in ApplicationStatus
01-21 20:18:36.297 1421-1487/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{222f8a49 u0 com.ionicframework.wfm923478/.CordovaMainStub t2879} time:808555096
01-21 20:18:36.323 702-702/? I/MSM-irqbalance: Decided to move IRQ216 from CPU0 to CPU3
01-21 20:18:36.326 29410-29449/com.ionicframework.wfm923478 W/cr_media: Requires BLUETOOTH permission
01-21 20:18:36.334 29410-29410/com.ionicframework.wfm923478 I/art: Rejecting re-init on previously-failed class java.lang.Class
01-21 20:18:36.334 29410-29410/com.ionicframework.wfm923478 I/art: Rejecting re-init on previously-failed class java.lang.Class
01-21 20:18:36.357 29410-29410/com.ionicframework.wfm923478 I/art: Rejecting re-init on previously-failed class java.lang.Class
01-21 20:18:36.357 29410-29410/com.ionicframework.wfm923478 I/art: Rejecting re-init on previously-failed class java.lang.Class
01-21 20:18:36.365 29410-29410/com.ionicframework.wfm923478 D/cr_Ime: [InputMethodManagerWrapper.java:27] Constructor
01-21 20:18:36.367 29410-29410/com.ionicframework.wfm923478 D/cr_Ime: [ImeAdapter.java:241] attach
01-21 20:18:36.368 29410-29410/com.ionicframework.wfm923478 W/art: Attempt to remove local handle scope entry from IRT, ignoring
01-21 20:18:36.373 29410-29410/com.ionicframework.wfm923478 W/AwContents: onDetachedFromWindow called when already detached. Ignoring
01-21 20:18:36.373 29410-29410/com.ionicframework.wfm923478 D/cr_Ime: [InputMethodManagerWrapper.java:56] isActive: false
01-21 20:18:36.375 29410-29410/com.ionicframework.wfm923478 W/ResourceType: No package identifier when getting value for resource number 0x00000000
01-21 20:18:36.376 29410-29410/com.ionicframework.wfm923478 W/art: Attempt to remove local handle scope entry from IRT, ignoring
01-21 20:18:36.376 29410-29410/com.ionicframework.wfm923478 W/art: Attempt to remove local handle scope entry from IRT, ignoring
01-21 20:18:36.379 29410-29433/com.ionicframework.wfm923478 D/Codename One: native focus gain
01-21 20:18:36.380 29410-29433/com.ionicframework.wfm923478 I/System.out: showKeyboard false
01-21 20:18:36.388 29410-29410/com.ionicframework.wfm923478 D/cr_Ime: [ImeAdapter.java:241] attach
01-21 20:18:36.398 29410-29433/com.ionicframework.wfm923478 D/Codename One: sizechanged: 1080 1701 com.codename1.impl.android.CodenameOneView@df619f4
01-21 20:18:36.401 29410-29410/com.ionicframework.wfm923478 D/cr_Ime: [ImeAdapter.java:241] attach
01-21 20:18:36.403 29410-29410/com.ionicframework.wfm923478 D/cr_Ime: [AdapterInputConnection.java:499] finishComposingText
01-21 20:18:36.403 29410-29410/com.ionicframework.wfm923478 D/cr_Ime: [AdapterInputConnection.java:145] Constructor called with outAttrs: inputType=0xa1 imeOptions=0x12000000 privateImeOptions=null
actionLabel=null actionId=0
initialSelStart=0 initialSelEnd=0 initialCapsMode=0x0
hintText=null label=null
packageName=com.ionicframework.wfm923478 fieldId=-1 fieldName=null
extras=null
01-21 20:18:36.404 29410-29410/com.ionicframework.wfm923478 I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@1b24598 time:808555203
01-21 20:18:36.412 580-1409/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found
01-21 20:18:36.413 545-768/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found
01-21 20:18:36.415 580-1409/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found
01-21 20:18:36.418 3371-3371/? D/TransmitPowerReceiver: Old PowerLevel: 5, current PowerLevel: 5
01-21 20:18:36.418 545-768/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found
01-21 20:18:36.432 29410-29466/com.ionicframework.wfm923478 E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
01-21 20:18:36.456 1421-1441/? V/WindowManager: not Base app: Adding window Window{1ec975dc u0 com.ionicframework.wfm923478/com.ionicframework.wfm923478.CordovaMainStub} at 15 of 21
01-21 20:18:36.467 29410-29410/com.ionicframework.wfm923478 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 29410
01-21 20:18:36.566 2859-2859/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming
01-21 20:18:37.018 26523-26523/? D/CycledLeScannerForLollipop: Waiting to start full Bluetooth scan for another 5982 milliseconds
01-21 20:18:37.553 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,0 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/notifications/tab-notifications.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:37.559 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,5 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/timeoff/tab-timeoff.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:37.560 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,6 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/trade/tab-trade.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:37.561 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,8 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/preferences/tab-pref.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:37.589 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,36 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/sign-in.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:37.682 1421-2931/? W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@1e6613c8 attribute=null, token = android.os.BinderProxy@377297b
01-21 20:18:37.882 5638-5638/com.spring.virtualmetersm D/PokeySdk: Service Update
01-21 20:18:37.884 1421-3370/? W/ActivityManager: getRunningAppProcesses: caller 10352 does not hold REAL_GET_TASKS; limiting output
01-21 20:18:37.887 5638-5638/com.spring.virtualmetersm D/PokeySdk: Service App Event Sync
01-21 20:18:37.928 1421-3438/? W/ActivityManager: getRunningAppProcesses: caller 10281 does not hold REAL_GET_TASKS; limiting output
01-21 20:18:38.020 26523-26523/? D/CycledLeScannerForLollipop: Waiting to start full Bluetooth scan for another 4980 milliseconds
01-21 20:18:38.348 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,794 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/trade/trade-shift.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:38.361 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,807 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/schedule/tab-sched.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:38.365 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,811 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/tabs.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:38.370 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:0,814 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/credits.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:38.643 28229-28229/? W/Thread-33348: type=1400 audit(0.0:146562): avc: denied { getattr } for path="/tmp/test_sensor.in" dev="tmpfs" ino=15211 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:thermal-engine_tmpfs:s0 tclass=file permissive=0 ppid=622 pcomm="main" pgid=6130 pgcomm="ood.android.gfe"
01-21 20:18:38.643 28229-28229/? W/Thread-33348: type=1400 audit(0.0:146563): avc: denied { getattr } for path="/tmp/test_sensor.in" dev="tmpfs" ino=15211 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:thermal-engine_tmpfs:s0 tclass=file permissive=0 ppid=622 pcomm="main" pgid=6130 pgcomm="ood.android.gfe"
01-21 20:18:38.643 28229-28229/? W/Thread-33348: type=1400 audit(0.0:146564): avc: denied { getattr } for path="/tmp/test_sensor.in" dev="tmpfs" ino=15211 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:thermal-engine_tmpfs:s0 tclass=file permissive=0 ppid=622 pcomm="main" pgid=6130 pgcomm="ood.android.gfe"
01-21 20:18:38.643 28229-28229/? W/Thread-33348: type=1400 audit(0.0:146565): avc: denied { getattr } for path="/system/bin/ATFWD-daemon" dev="dm-0" ino=972 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:atfwd_exec:s0 tclass=file permissive=0 ppid=622 pcomm="main" pgid=6130 pgcomm="ood.android.gfe"
01-21 20:18:38.643 28229-28229/? W/Thread-33348: type=1400 audit(0.0:146566): avc: denied { getattr } for path="/system/bin/PktRspTest" dev="dm-0" ino=973 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:diag_exec:s0 tclass=file permissive=0 ppid=622 pcomm="main" pgid=6130 pgcomm="ood.android.gfe"
01-21 20:18:38.687 6130-28229/? I/MalwareWatch: FileCheck start
01-21 20:18:38.688 6130-28229/? I/MalwareWatch: FileFdCheck start
01-21 20:18:38.688 6130-28229/? I/MalwareWatch: Failed to open directory /proc/6130/fd/
01-21 20:18:39.021 26523-26523/? D/CycledLeScannerForLollipop: Waiting to start full Bluetooth scan for another 3979 milliseconds
01-21 20:18:39.343 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:1,789 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/settings.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:39.355 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:1,795 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/forgot-password.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html
01-21 20:18:39.356 29410-29410/com.ionicframework.wfm923478 D/WFM: [main] 0:0:1,802 - [ERROR] XMLHttpRequest cannot load file:///data/data/com.ionicframework.wfm923478/files/cn1html/templates/sign-in.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, https. On line 0 of file:///data/data/com.ionicframework.wfm923478/files/cn1html/index.html

Steve CN1 Hannah

unread,
Jan 21, 2016, 4:55:09 PM1/21/16
to codenameone...@googlegroups.com
I have replied in the Github issue:

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/aa0ddb9e-6e2a-43b5-a20f-222846fdbdf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

baneei...@gmail.com

unread,
Jul 19, 2017, 3:39:09 AM7/19/17
to CodenameOne Discussions
CN1Cordova raises the following exception while debug and run. the simulator loops on connecting to device and never shows device ready screen.

Exception in thread "JavaFX Application Thread" netscape.javascript.JSException: ReferenceError: Can't find variable: cordova
    at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:146)
    at com.sun.webkit.WebPage.twkExecuteScript(Native Method)
    at com.sun.webkit.WebPage.executeScript(WebPage.java:1509)
    at javafx.scene.web.WebEngine.executeScript(WebEngine.java:1005)
    at com.codename1.impl.javase.SEBrowserComponent$12.run(SEBrowserComponent.java:374)
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
    at java.lang.Thread.run(Thread.java:748)


The github repository deosn't accept issues. that's why i am there...

Shai Almog

unread,
Jul 20, 2017, 12:23:43 AM7/20/17
to CodenameOne Discussions, baneei...@gmail.com
Steve will probably have a better idea about this. Might be a regression with some of the browser component changes.

Steve Hannah

unread,
Jul 20, 2017, 11:13:15 AM7/20/17
to codenameone...@googlegroups.com, baneei...@gmail.com
Is this just the standard HelloWorld template app (generated by $ ant create -Did=com.example.hello -Dname=HelloWorld -Ddest=/Users/shannah/NetbeansProjects),

Or is this a custom project?

I just tried walking through the HelloWorld steps, and I can't reproduce this. 

Steve

On Wed, Jul 19, 2017 at 9:23 PM, Shai Almog <shai....@gmail.com> wrote:
Steve will probably have a better idea about this. Might be a regression with some of the browser component changes.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages