[TIMOB-28139] Windows - Android: Liveview only works on 2nd save on Simulator and fails to launch on device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 9.2.0, Release 9.3.0, Release 9.1.0 |
Fix Version/s | n/a |
Components | LiveView |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Ewan Harris |
Created | 2020-09-15T21:20:40.000+0000 |
Updated | 2020-12-14T14:35:47.000+0000 |
Description
When running Liveview on windows-Android the following error is seen when pressing save for the first time.
Download APPC studio:
Make changes to the
C:\Users\APPC\.appcelerator\install\8.1.1-master.9\package\node_modules\alloy\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:49
throw err0
^
Error: EPERM: operation not permitted, mkdir 'C:\Users\APPC\Documents\Appcelerator_Studio_Workspace\gmseedbutonwindows\i18n'
at Object.mkdirSync (fs.js:840:3)
at Object.mkdirsSync (C:\Users\APPC\.appcelerator\install\8.1.1-master.9\package\node_modules\alloy\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:31:9)
at module.exports (C:\Users\APPC\.appcelerator\install\8.1.1-master.9\package\node_modules\alloy\Alloy\commands\compile\index.js:390:5)
at Object.<anonymous> (C:\Users\APPC\.appcelerator\install\8.1.1-master.9\package\node_modules\alloy\Alloy\alloy.js:114:11)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\APPC\.appcelerator\install\8.1.1-master.9\package\node_modules\alloy\bin\alloy:3:1)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
errno: -4048,
syscall: 'mkdir',
code: 'EPERM',
path: 'C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\gmseedbutonwindows\\i18n'
}
*Test Steps*
Download APPC studio: 6.0.0.202005141803
Create a new alloy application
Run application
Make changes to the index.xml
Press Save
Above error is shown
Make another change and press save again
Live view works as expected
*Actual result* Above error is seen at step 5. *Expected result* No error should be seen at step 5 and liveview should make the desired changes. *Note (may need another ticket)*: When building to device on windows this error is also seen:
ERROR] : V8Exception: Exception occurred at /app.js:671: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 192.168.86.114:8324
[ERROR] : V8Exception: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.
[INFO] : Adreno: QUALCOMM build : 4a00b69, I4e7e888065
[INFO] : Adreno: Build Date : 04/09/19
[INFO] : Adreno: OpenGL ES Shader Compiler Version: EV031.26.06.00
[INFO] : Adreno: Local Branch : mybranche95ae4c8-d77f-f18d-a9ef-1458d0b52ae8
[INFO] : Adreno: Remote Branch : quic/gfx-adreno.lnx.1.0
[INFO] : Adreno: Remote Branch : NONE
[INFO] : Adreno: Reconstruct Branch : NOTHING
[INFO] : Adreno: Build Config : S L 8.0.5 AArch64
[INFO] : Adreno: PFP: 0x005ff110, ME: 0x005ff066
[WARN] : Gralloc3: mapper 3.x is not supported
[ERROR] : TiHTTPClient: (TiHttpClient-1) [117338,128443] HTTP Error (java.net.ConnectException): Failed to connect to /192.168.86.114:8324
[ERROR] : TiHTTPClient: java.net.ConnectException: Failed to connect to /192.168.86.114:8324
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:147)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:97)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
[ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1343)
*Update* I am no longer getting an error to device but I still see the original issue mentioned in this ticket.