Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16139] LiveView: Closing file/event servers after run mobile web

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2014-01-09T00:39:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsLiveView
Labelsliveview, mobileweb
ReporterHazem Khaled
AssigneeChristian Sullivan
Created2014-01-07T08:39:07.000+0000
Updated2017-03-20T16:47:56.000+0000

Description

*Description:* I attempted to start an iOS simulator session with liveview then open mobile web, the LiveView serve stop and iOS application get error. in mobileweb console log
[LiveView] Closing file/event server process id: 32238
in iOS console log
[LiveView] Client connected
[ERROR] :  [LiveView] Disconnected from Event Server
[INFO] :   [LiveView] Attempting reconnect to Event Server
[ERROR] :  Script Error {
[ERROR] :      backtrace = "#0 () at file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js:140\n#1 () at file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js:243";
[ERROR] :      line = 465;
[ERROR] :      message = "[LiveView] Event Server unavailable. Connection Refused @ 192.168.1.4:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
[ERROR] :      sourceId = 318261344;
[ERROR] :      sourceURL = "file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js";
[ERROR] :  }
[ERROR] :  2014-01-07 12:22:33.478 traapp[32333:80b] Warning: Attempt to present <TiErrorController: 0x11fb9810> on <TiRootViewController: 0xd429db0> whose view is not in the window hierarchy!
*Steps to reproduce:*

Create a new project with services enabled

Launch a liveview session in iOS simulator via Studio

Run on mobile web (safari)

*Result:* LiveView stopped and iOS give me application error Expected Result: The mobile web working without stop LiveView

Attachments

FileDateSize
iOS Simulator Screen shot Jan 7, 2014, 12.21.10 PM.png2014-01-07T08:39:07.000+0000123196

Comments

  1. Michael Xia 2014-01-07

    LiveView currently doesn't support Mobile Web app, so the fix here should be to not close the running LiveView server when launching Mobile Web app.
  2. Christian Sullivan 2014-01-08

    I would say this is invalid since liveview should stop running when the app is built with out the --liveview flag.
  3. Hazem Khaled 2014-01-09

    Christian, So you mean if i run this command ti build --platform=ios --liveview then run this one ti build --platform=mobileweb --liveview iOS liveview will not stop? unfortunately liveview stopped again
       INFO]  Processing splash screen
       [INFO]  Assembling titanium.css
       [INFO]  Creating the filesystem registry
       [INFO]  Creating the index.html
       [LiveView] Closing file/event server process id: 19783
       [INFO]  Project built successfully in 14s 648ms
       
    Thanks
  4. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source