Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23318] Android: Unable to use Liveview on Windows OS

GitHub Issuen/a
TypeBug
PriorityCritical
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, LiveView
Labelsqe-5.3.0
ReporterJosh Longton
AssigneeUnknown
Created2016-05-04T23:53:14.000+0000
Updated2018-02-28T19:55:37.000+0000

Description

*Steps to reproduce:*

Create an application using the SDK above

Run the application with live view selected

*Actual :* An error is shown
[ERROR] :  TiExceptionHandler: (main) [10001,10001] ----- Titanium Javascript Runtime Error -----
[ERROR] :  TiExceptionHandler: (main) [0,10001] - In app.js:567,13
[ERROR] :  TiExceptionHandler: (main) [0,10001] - Message: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 169.254.80.80:8324
[ERROR] :  TiExceptionHandler: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.
[ERROR] :  TiExceptionHandler: (main) [0,10001] - Source:       throw new Error('[LiveView] File Server unavailable. Host Unreachable @
[ERROR] :  V8Exception: Exception occurred at app.js:567: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 169.254.80.80:8324
[ERROR] :  V8Exception: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.
[ERROR] :  TiHTTPClient: (TiHttpClient-1) [53177,63178] HTTP Error (java.net.ConnectException): failed to connect to /169.254.80.80 (port 8324): connect failed: ETIMEDOUT (Connection timed out)
[ERROR] :  TiHTTPClient: java.net.ConnectException: failed to connect to /169.254.80.80 (port 8324): connect failed: ETIMEDOUT (Connection timed out)
[ERROR] :  TiHTTPClient: 	at libcore.io.IoBridge.connect(IoBridge.java:124)
[ERROR] :  TiHTTPClient: 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
[ERROR] :  TiHTTPClient: 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:452)
[ERROR] :  TiHTTPClient: 	at java.net.Socket.connect(Socket.java:884)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:117)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.http.SocketConnector.connectRawSocket(SocketConnector.java:160)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.http.SocketConnector.connectCleartext(SocketConnector.java:67)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.Connection.connect(Connection.java:152)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:185)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:341)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:437)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:388)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getHeaders(HttpURLConnectionImpl.java:150)
[ERROR] :  TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getHeaderField(HttpURLConnectionImpl.java:194)
[ERROR] :  TiHTTPClient: 	at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:543)
[ERROR] :  TiHTTPClient: 	at java.net.URLConnection.getContentLength(URLConnection.java:315)
[ERROR] :  TiHTTPClient: 	at ti.modules.titanium.network.TiHTTPClient.handleResponse(TiHTTPClient.java:159)
[ERROR] :  TiHTTPClient: 	at ti.modules.titanium.network.TiHTTPClient.access$1200(TiHTTPClient.java:85)
[ERROR] :  TiHTTPClient: 	at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1207)
[ERROR] :  TiHTTPClient: 	at java.lang.Thread.run(Thread.java:818)
[ERROR] :  TiHTTPClient: Caused by: android.system.ErrnoException: connect failed: ETIMEDOUT (Connection timed out)
[ERROR] :  TiHTTPClient: 	at libcore.io.Posix.connect(Native Method)
[ERROR] :  TiHTTPClient: 	at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:111)
[ERROR] :  TiHTTPClient: 	at libcore.io.IoBridge.connectErrno(IoBridge.java:137)
[ERROR] :  TiHTTPClient: 	at libcore.io.IoBridge.connect(IoBridge.java:122)
[ERROR] :  TiHTTPClient: 	... 22 more
*Expected:* No error is show and the app builds correctly.

Comments

  1. Ajit 2016-07-10

    I'm also having the same issue. [ERROR] : TiExceptionHandler: (main) [9995,9995] ----- Titanium Javascript Runtime Error ----- [ERROR] : TiExceptionHandler: (main) [1,9996] - In app.js:567,13 [ERROR] : TiExceptionHandler: (main) [0,9996] - Message: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 192.168.97.2:8324 [ERROR] : TiExceptionHandler: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked. [ERROR] : TiExceptionHandler: (main) [0,9996] - Source: throw new Error('[LiveView] File Server unavailable. Host Unreachable @ [ERROR] : V8Exception: Exception occurred at app.js:567: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 192.168.97.2:8324 [ERROR] : V8Exception: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.

JSON Source