Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14645] KitchenSink app fails to run with LiveView enabled

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-12-13T09:31:51.000+0000
Affected Version/sRelease 3.1.2
Fix Version/s2013 Sprint 15 Tooling, 2013 Sprint 15, Release 3.1.2, Release 3.2.0
ComponentsLiveView
Labelsqe-closed-3.2.0, qe-testadded
ReporterPraveen Innamuri
AssigneeChristian Sullivan
Created2013-07-24T19:56:59.000+0000
Updated2014-02-26T17:46:46.000+0000

Description

Steps to reproduce: * Imported KitchenSink app from Samples. * Enable Liveview in Studio * Run the KitchenSink app on iPad simulator. The below error message appears and the app does not respond from splash screen: [INFO] : [LiveView] Error Evaluating app.js @ Line: 32 [ERROR] : ReferenceError: Can't find variable: Module [ERROR] : File: app.js [ERROR] : Line: 32 [ERROR] : SourceId: 326519360 [ERROR] : Backtrace: [ERROR] : #0 ApplicationTabGroup() at :14 [ERROR] : #1 () at :45 [ERROR] : #2 anonymous() at :109 [ERROR] : #3 () at file://localhost/Users/pinnamuri/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/4918FC17-4CBA-4FAD-BFE4-CD698487B3AF/KitchenSink.app/app.js:615 [ERROR] : #4 () at file://localhost/Users/pinnamuri/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/4918FC17-4CBA-4FAD-BFE4-CD698487B3AF/KitchenSink.app/app.js:492 [ERROR] : #5 () at file://localhost/Users/pinnamuri/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/4918FC17-4CBA-4FAD-BFE4-CD698487B3AF/KitchenSink.app/app.js:459 [ERROR] : #6 () at file://localhost/Users/pinnamuri/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/4918FC17-4CBA-4FAD-BFE4-CD698487B3AF/KitchenSink.app/app.js:391 [ERROR] : #7 () at file://localhost/Users/pinnamuri/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/4918FC17-4CBA-4FAD-BFE4-CD698487B3AF/KitchenSink.app/app.js:649 However, the app runs without any problems when it is run without liveview.

Comments

  1. Michael Xia 2013-07-31

    [~csullivan] I'm getting the following error with the latest 0.1.29 version of LiveView:
       [LiveView] Client connected
       [INFO] :   [object ComAppceleratorApmModule] loaded
       [INFO] :   [LiveView] Error Evaluating ui/common/MessageWindow @ Line: 110
       [ERROR] :  SyntaxError: Parse error
       [INFO] :   [LiveView] Error Evaluating app.js @ Line: 68
       [ERROR] :  File: ui/common/MessageWindow
       [ERROR] :  Line: 110
       [ERROR] :  SourceId: 318128448
       [ERROR] :  Backtrace:
       [ERROR] :   #0 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:492
       [ERROR] :  #1 () at :67
       [ERROR] :  #2 anonymous() at :123
       [ERROR] :  #3 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:627
       [ERROR] :  #4 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:492
       [ERROR] :  #5 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:459
       [ERROR] :  #6 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:391
       [ERROR] :  #7 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:662
       [ERROR] :  TypeError: '[object Object]' is not a constructor (evaluating 'new MessageWindow()')
       [ERROR] :  File: app.js
       [ERROR] :  Line: 68
       [ERROR] :  SourceId: 318129632
       [ERROR] :  Backtrace:
       [ERROR] :   #0 anonymous() at :123
       [ERROR] :  #1 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:627
       [ERROR] :  #2 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:492
       [ERROR] :  #3 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:459
       [ERROR] :  #4 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:391
       [ERROR] :  #5 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/00F69E75-A15C-4B35-989A-F08DCF98E18F/KitchenSink.app/app.js:662
       [INFO] :   tab = Controls, prevTab = null
       
    However, the app does reload and update correctly.
  2. Christian Sullivan 2013-07-31

    This error is thrown due to the code commented out at the end of the ui/common/MessageWindow.js file. For some reason the Function constructor does not properly evaluate it.
  3. Neha Mittal 2013-12-13

    Verified fix with environment: Appcelerator Studio: 3.2.0.201312121648 SDK: 3.2.0.v20131212122847 alloy: 1.3.0-cr acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Mac OSX 10.9 Mavericks iOS Simulator
  4. Neha Mittal 2013-12-13

    Reopening to add label
  5. Neha Mittal 2013-12-13

    Closing the issue.

JSON Source