Welcome, Guest

Author Topic: Build failure on basic examples (Android OSX)  (Read 5551 times)

sojournermobile

  • Posts: 10
    • View Profile
Build failure on basic examples (Android OSX)
« on: May 21, 2014, 01:30:55 AM »
Just installed the product:

1) Create new project
2) Update the build settings
3) Add the UIView to the Camera
4) Set the url to http://www.google.com
5) Go into the Coherent Ui/Assets/blah blah/apktools1.5.2 directory
6) chmod 755 *
7) Open Build Settings
8) Build
9) Go to the directory and adb install foo.apk

When the APK installs try to run it

"Webpage not available"

sojournermobile

  • Posts: 10
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #1 on: May 21, 2014, 01:41:45 AM »
Note: If I just press play in the editor, it works just fine in the gameplay view. What's causing this to consistently fail?

Code: [Select]
V/CoherentJavaView(30045): Creating Coherent Java View for URL http://www.google.com ...
V/WebViewChromium(30045): Binding Chromium to the background looper Looper (main, tid 1) {4257c8e0}
I/chromium(30045): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserProcessMain(30045): Initializing chromium process, renderers=0
W/chromium(30045): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
D/dalvikvm(30045): GC_CONCURRENT freed 290K, 2% free 16892K/17212K, paused 2ms+1ms, total 11ms
W/AwContents(30045): nativeOnDraw failed; clearing to background color.
I/chromium(30045): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
I/chromium(30045): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
I/chromium(30045): [INFO:CONSOLE(12)] "Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png", source: data:text/html,chromewebdata (12)
E/Unity   (30045): Unable to find '__Internal'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
D/dalvikvm(30045): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42580f20
D/dalvikvm(30045): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42580f20
E/Unity   (30045): Unable to find '__Internal'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
D/dalvikvm(30045): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42580f20
D/dalvikvm(30045): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42580f20
E/Unity   (30045): Unable to find '__Internal'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
D/dalvikvm(30045): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42580f20
D/dalvikvm(30045): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42580f20
E/Unity   (30045): Unable to find '__Internal'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
D/dalvikvm(30045): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42580f20
D/dalvikvm(30045): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42580f20
E/Unity   (30045): Unable to find '__Internal'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
D/dalvikvm(30045): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42580f20
D/dalvikvm(30045): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42580f20
E/Unity   (30045): URL "http://www.google.com/" failed loading!
E/Unity   (30045): 
E/Unity   (30045): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)
E/Unity   (30045):
E/Unity   (30045): Unable to find '__Internal'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
E/Unity   (30045): Unable to find 'CoherentAndroidNative'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
E/Unity   (30045): Unable to find '__Internal'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):
E/Unity   (30045): Unable to find 'CoherentAndroidNative'
E/Unity   (30045): 
E/Unity   (30045): (Filename:  Line: 168)
E/Unity   (30045):

Hristo

  • Administrator
  • *****
  • Posts: 577
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #2 on: May 21, 2014, 02:42:33 AM »
Hi sojournermobile,

Do you have internet connection on the device that you are testing? Did you set "internet access" to "require" in the Unity build setting?

sojournermobile

  • Posts: 10
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #3 on: May 22, 2014, 11:37:13 AM »
The device definitely has an Internet connection. Setting the Internet Access to "Require" in the Player Settings allowed it to work. That needs to go into the instructions as its not in any of the demos and such from the older versions.

sojournermobile

  • Posts: 10
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #4 on: May 22, 2014, 01:01:38 PM »
A new question emerges from this. My UIs will normally by dynamic and pulled from the web, but in this instance I wanted to check on loading local resources. So I went into the UI view and changed the URL to:

coui://uiresources/menuandhud/loading/loading.html

Then I performed another build and did an adb install. Should this have worked? It tells me that it can't find the resource. Again, I'm just following the information that I've seen from the older versions so maybe this has changed. I see some mention of selecting a root content folder, but I don't have that option in my project (using 1.8.1).

Hristo

  • Administrator
  • *****
  • Posts: 577
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #5 on: May 22, 2014, 11:47:15 PM »
Hi sojournermobile,

Loading local resources with coui should definitely work.

For version 1.8.1 the ui resourcese folder is automatically set to webPlayerTemplates/uiresources. To manually setup the ui resourcese folder you can use edit/project settings/Coherent UI/ui resources/ select ui folder .

Have you tried playing the game in the editor? Can you see the page displayed there? If you can, you should probably type the path with lowercase letters.

sojournermobile

  • Posts: 10
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #6 on: May 26, 2014, 09:43:02 PM »
When I run it in the editor it works just fine, its when I run it on the device that it seems to have issues finding resources.

Code: [Select]
05-27 00:39:49.058: D/dalvikvm(16985): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42783dc8
05-27 00:39:49.068: D/dalvikvm(16985): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42783dc8
05-27 00:39:49.068: V/CoherentJavaView(16985): Creating Coherent Java View for URL coui://uiresources/menuandhud/loading/loading.html ...
05-27 00:39:49.068: I/Unity(16985): [Coherent UI] (Info) Created view 0
05-27 00:39:49.068: I/Unity(16985): 
05-27 00:39:49.068: I/Unity(16985): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)
05-27 00:39:49.068: V/WebViewChromium(16985): Binding Chromium to the background looper Looper (main, tid 1) {4277d418}
05-27 00:39:49.068: I/chromium(16985): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
05-27 00:39:49.068: I/BrowserProcessMain(16985): Initializing chromium process, renderers=0
05-27 00:39:49.078: W/chromium(16985): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
05-27 00:39:49.108: D/dalvikvm(16985): GC_CONCURRENT freed 295K, 2% free 16873K/17204K, paused 1ms+1ms, total 9ms
05-27 00:39:49.138: W/AwContents(16985): nativeOnDraw failed; clearing to background color.
05-27 00:39:49.178: V/CoherentWVC(16985): Getting response for "coui://uiresources/menuandhud/loading/loading.html" using custom protocol on view 65280...
05-27 00:39:49.178: E/CoherentWVC(16985): uiresources/menuandhud/loading/loading.html
05-27 00:39:49.178: V/CoherentWVC(16985): Getting response for "coui://uiresources/menuandhud/loading/loading.html" failed.
05-27 00:39:49.208: I/chromium(16985): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
05-27 00:39:49.238: I/chromium(16985): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
05-27 00:39:49.288: I/chromium(16985): [INFO:CONSOLE(12)] "Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png", source: data:text/html,chromewebdata (12)
05-27 00:39:49.318: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:49.318: E/Unity(16985): 
05-27 00:39:49.318: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:49.318: D/dalvikvm(16985): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42783dc8
05-27 00:39:49.318: D/dalvikvm(16985): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42783dc8
05-27 00:39:49.318: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:49.318: E/Unity(16985): 
05-27 00:39:49.318: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:49.318: D/dalvikvm(16985): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42783dc8
05-27 00:39:49.318: D/dalvikvm(16985): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42783dc8
05-27 00:39:49.318: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:49.318: E/Unity(16985): 
05-27 00:39:49.318: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:49.318: D/dalvikvm(16985): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42783dc8
05-27 00:39:49.318: D/dalvikvm(16985): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42783dc8
05-27 00:39:49.318: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:49.318: E/Unity(16985): 
05-27 00:39:49.318: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:49.318: D/dalvikvm(16985): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42783dc8
05-27 00:39:49.318: D/dalvikvm(16985): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42783dc8
05-27 00:39:49.338: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:49.338: E/Unity(16985): 
05-27 00:39:49.338: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:49.338: D/dalvikvm(16985): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42783dc8
05-27 00:39:49.338: D/dalvikvm(16985): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42783dc8
05-27 00:39:49.348: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:49.348: E/Unity(16985): 
05-27 00:39:49.348: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:49.348: D/dalvikvm(16985): Trying to load lib /data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so 0x42783dc8
05-27 00:39:49.348: D/dalvikvm(16985): Shared lib '/data/app-lib/com.sojournermobile.forms2-1/libCoherentAndroidNative.so' already loaded in same CL 0x42783dc8
05-27 00:39:51.658: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:51.658: E/Unity(16985): 
05-27 00:39:51.658: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:51.668: E/Unity(16985): Unable to find 'CoherentAndroidNative'
05-27 00:39:51.668: E/Unity(16985): 
05-27 00:39:51.668: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:51.668: E/Unity(16985): Unable to find '__Internal'
05-27 00:39:51.668: E/Unity(16985): 
05-27 00:39:51.668: E/Unity(16985): (Filename:  Line: 168)
05-27 00:39:51.668: E/Unity(16985): Unable to find 'CoherentAndroidNative'
05-27 00:39:51.668: E/Unity(16985): 
05-27 00:39:51.668: E/Unity(16985): (Filename:  Line: 168)

sojournermobile

  • Posts: 10
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #7 on: May 26, 2014, 09:58:33 PM »
Have you tried playing the game in the editor? Can you see the page displayed there? If you can, you should probably type the path with lowercase letters.

If you type it in lowercase letters it absolutely and without question doesn't work. If you use the appropriate case it will work fine - at least with OSX and Android. If you want to avoid case sensitivity issues, why not just export the paths in all lower case and take the inputs in the text field and just toLower() that.

allenmarsh

  • Posts: 1
    • View Profile
Re: Build failure on basic examples (Android OSX)
« Reply #8 on: July 29, 2018, 10:44:00 PM »
weberror.png", source: data:text/html,chromewebdata (12)

The "data:text/html,chromewebdata" URL value (called kUnreachableWebDataURL in Chromium) is loaded whenever a URL fails to load in a frame (for example, via RenderFrameImpl::didFailProvisionalLoad and LoadNavigationErrorPage). The issue you explained is kind of a bug where Android WebView built on chromium fails to loads the page in question due unmapped ssl error.

Tags: