Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13866] LiveView doesn't work with FSA 1.0 on iOS simulator when an Alloy .tss file is edited

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-08-08T22:01:30.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 16, 2013 Sprint 16 Tooling, Release 3.1.2, Release 3.2.0
ComponentsiOS, LiveView
Labelsqe-closed-3.2.0, qe-testadded
ReporterMatt Langston
AssigneeBlain Hamon
Created2013-05-15T17:16:48.000+0000
Updated2014-02-25T01:06:39.000+0000

Description

Steps to reproduce: 1. From Studio launch FSA 1.0 on iPad Simulator with Live View enabled. 2. Using Studio edit line 75 of /Field-Service-App/app/styles/my-service-outlets/placard.tss by changing "left: 0" to "left: 30". 3. iOS Simulator shows black screen and Studio Console displays this error: [LiveView] Alloy recompile initiated [LiveView] Error loading watching file { [Error: ENOENT, readdir '/Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/iphone/service-outlet-detail'] errno: 34, code: 'ENOENT', path: '/Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/iphone/service-outlet-detail' } [LiveView] Reload Triggered -REASON: File Changed -FILE: /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/app/styles/my-service-outlets/placard.tss [INFO] : [LiveView] Reloading App [INFO] : Ti.FieldService/1.0 (3.1.1.d356cff) [ERROR] : Error loading path: file://localhost/Users/matt/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x16344790 {NSFilePath=/Users/matt/Library/Application Support/iPhone Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, NSUnderlyingError=0x16347940 "The operation couldn’t be completed. No such file or directory"} [ERROR] : Script Error Could not find the file app.js

Attachments

FileDateSize
Ti.FieldService_2013-05-16-093339_Matts-MacBook-Pro.crash.plist2013-05-17T19:12:48.000+000065092

Comments

  1. Matt Langston 2013-05-15

    More data: app.js is a symlink to Resources/liveview.js which does not exist. $ ls -la "/Users/matt/Library/Application Support/iPhone Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js" lrwxr-xr-x 1 matt staff 106 May 15 14:49 /Users/matt/Library/Application Support/iPhone Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js -> /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/liveview.js $ ls -la /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/liveview.js ls: /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/liveview.js: No such file or directory And here is the error output from the Live View log: {noformat} LiveView] Alloy recompile initiated [LiveView] Reload Triggered -REASON: File Changed -FILE: /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/app/styles/my-service-outlets/placard.tss [INFO] [LiveView] Reloading App [INFO] Ti.FieldService/1.0 (3.1.1.d356cff) [DEBUG] Analytics is enabled = YES [DEBUG] Loading: /Users/matt/Library/Application Support/iPhone Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, Resource: app_js [LiveView] Reload Triggered -REASON: File Changed -FILE: /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/alloy/widgets/com.appcelerator.globalTimer/controllers/widget.js [LiveView] Reload Triggered -REASON: File Changed -FILE: /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/alloy/widgets/com.appcelerator.timer/controllers/widget.js [ERROR] Error loading path: file://localhost/Users/matt/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0xb89d090 {NSFilePath=/Users/matt/Library/Application Support/iPhone Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, NSUnderlyingError=0xb855070 "The operation couldn’t be completed. No such file or directory"} [ERROR] Script Error Could not find the file app.js [DEBUG] Backtrace: (null) [DEBUG] Application booted in 13.919950 ms [INFO] [LiveView] Reloading App [INFO] [LiveView] Reloading App [INFO] Ti.FieldService/1.0 (3.1.1.d356cff) [DEBUG] Analytics is enabled = YES [DEBUG] Loading: /Users/matt/Library/Application Support/iPhone Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, Resource: app_js [ERROR] Error loading path: file://localhost/Users/matt/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0xad5f9b0 {NSFilePath=/Users/matt/Library/Application Support/iPhone Simulator/6.1/Applications/EBB05FC5-16C3-4506-ACC8-AEBD6E958816/Ti.FieldService.app/app.js, NSUnderlyingError=0xad5f6b0 "The operation couldn’t be completed. No such file or directory"} [ERROR] Script Error Could not find the file app.js [DEBUG] Backtrace: (null) [DEBUG] Application booted in 10.091007 ms -- End simulator log --------------------------------------------------------- [ERROR] An error occurred running the iOS Simulator [ERROR] [ERROR] Project failed to build after 10m 15s 364ms {noformat}
  2. Matt Langston 2013-05-16

    The problem is with the iOS restart mechanism TIMOB-13807. Here are the relevant iOS Simulator logs. Reassigning to Blain - Blain can you take a look please? {noformat} May 16 09:33:39 Matts-MacBook-Pro com.apple.launchd.peruser.501[142] (UIKitApplication:com.appcelerator.fieldservicered[0x68de][23421]): Job appears to have crashed: Segmentation fault: 11 May 16 09:33:39 Matts-MacBook-Pro.local backboardd[23239]: Application 'UIKitApplication:com.appcelerator.fieldservicered[0x68de]' exited abnormally with signal 11: Segmentation fault: 11 May 16 09:33:39 Matts-MacBook-Pro.local ReportCrash[23452]: Saved crash report for Ti.FieldService[23421] version ??? to /Users/matt/Library/Logs/DiagnosticReports/Ti.FieldService_2013-05-16-093339_Matts-MacBook-Pro.crash {noformat}
  3. Matt Langston 2013-05-17

    This is the crash report: [^Ti.FieldService_2013-05-16-093339_Matts-MacBook-Pro.crash.plist]
  4. Michael Xia 2013-08-08

    Tested on Appcelerator Studio, build: 3.1.2.201308062218 + LiveView 1.0.0.201308071910 (including LiveView 0.1.32), and the Field Service app is reloading fine with LiveView on iOS simulator when the specific line is edited, so marking this as resolved for 3.1.2.
  5. Wilson Luu 2013-12-16

    Closing ticket as fixed. Verified after editing a .tss file, I was able to launch the FSA app to the ipad simulator. Tested on: Appcelerator Studio, build: 3.2.0.201312151544 SDK build: 3.2.0.v20131216064236 CLI: 3.2.0-cr3 Alloy: 1.3.0-cr LiveView: 1.0.0 Xcode: 5.0.2 Device: ipad simulator retina (7.0.3)

JSON Source