[TIMOB-15466] Apps crash after enabling LiveView
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-12-05T05:09:53.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 Tooling |
Components | LiveView |
Labels | n/a |
Reporter | Daniel Fortner |
Assignee | Christian Sullivan |
Created | 2013-10-11T23:16:03.000+0000 |
Updated | 2015-08-13T10:46:41.000+0000 |
Description
After on-boarding two separate enterprise customers (SMC Treviso and HD Supply GSC) to AppceleratorStudio and Platform, LiveView does not work. On both occasions, we confirmed the build and ran on emulator. After enabling LiveView, the build fails and will not run. You can instantly fix the issue by disabling LiveView. Here is the log file of the error:
[ERROR] : TypeError: 'undefined' is not an object (evaluating 'Alloy.CFG')
[ERROR] : File: app.js
[ERROR] : Line: 16
[ERROR] : SourceId: 292427296
[ERROR] : Backtrace:
[ERROR] : #0 () at :130
[ERROR] : #1 initializeList() at :8
[ERROR] : #2 Controller() at :89
[ERROR] : #3 () at :214
[ERROR] : #4 Controller() at :51
[ERROR] : #5 () at :214
[ERROR] : #6 anonymous() at :22
[ERROR] : #7 () at file:///Users/vamsi.vidala/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/2BCED025-11A5-4C86-8731-1BDE0AE424BB/FRProto.app/app.js:628
[ERROR] : #8 () at file:///Users/vamsi.vidala/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/2BCED025-11A5-4C86-8731-1BDE0AE424BB/FRProto.app/app.js:493
[ERROR] : #9 () at file:///Users/vamsi.vidala/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/2BCED025-11A5-4C86-8731-1BDE0AE424BB/FRProto.app/app.js:460
[ERROR] : #10 () at file:///Users/vamsi.vidala/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/2BCED025-11A5-4C86-8731-1BDE0AE424BB/FRProto.app/app.js:392
[ERROR] : #11 () at file:///Users/vamsi.vidala/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/2BCED025-11A5-4C86-8731-1BDE0AE424BB/FRProto.app/app.js:663
[ERROR] : [LiveView] The operation couldn’t be completed. Socket is not connected
Attachments
Hi Daniel, Could you attach the console log as well as a screenshot of the app crashing? That would be helpful for us to debug the issue. Thanks.
I have obtained a sample log from one of the three customers that was unable to activate this feature, I have added it to the description. But I hope this is enough info for you.
This should be fixed by the commit in TIMOB-15009. It's available in the latest Studio 3.2.0 nightly build.
[~CSullivan], [~Mxia] wanted me to give you the "studio log 2", "diagnostic log 2", the project source code, and the screen shots, which are all attached. And the source code is located here: https://www.dropbox.com/s/3cugh7z0zf0jmw8/21stAndroid%202.zip
[~mxia] [~dfortner] The problem is caused by the corrupted .DS_Store file. I just deleted it and the app runs fine for me with liveview.
When reviewing the code I found merge conflict notations in the Readme.md so they might want to also review thier code to ensure there are no others. To help avoid some issues they should add .DS_Store and all other system generated none project files to their .gitignore
Caused by corrupt .DS_Store possible from merge conflict
Thanks Christian. I will confirm this on the client's machine and let you know how it goes.