Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15122

LiveView: Errors when changing tss settings and using $.resetClass

    Details

      Description

      Issue

      Using $.resetClass in LiveView will cause errors.

      Steps to replicate

      1) Download sample project and run in iOS emulator.
      2) Change emulator orientation.
      3) Open index.tss and change .featuresL height from 10% to 30% (or any value).

      This error will occur.

      ERROR :  Script Error {
      ERROR :      backtrace = "#0 () at :144\n#1 processStyle() at :15\n#2 () at :202\n#3 () at :182\n#4 () at :30";
      ERROR :      line = 485;
      ERROR :      message = "'null' is not an object (evaluating 'Module.getCached')";
      ERROR :      name = TypeError;
      ERROR :      sourceId = 318093888;
      ERROR :      sourceURL = "file://localhost/Users/bwells/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/C853794D-22DC-4D53-AEB2-018328F79E53/Test.app/app.js";
      ERROR :  2013-09-10 12:17:43.319 Test[7886:c07] Warning: Attempt to present <TiErrorController: 0xad6ce20> on <TiRootViewController: 0xac5f500> while a presentation is in progress!
      

      Console output

      This is what I got when running the sample:

      Titanium Command-Line Interface, CLI version 3.1.2, Titanium SDK version 3.1.2.GA
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
      Please report bugs to http://jira.appcelerator.org/
      [INFO] :   Deploy type: development
      [INFO] :   Building for target: simulator
      [INFO] :   Building using iOS SDK: 6.1
      [INFO] :   Building for iOS iPhone Simulator: 6.1
      [INFO] :   Building for device family: iphone
      [INFO] :   Minimum iOS version: 5.0
      [INFO] :   Debugging disabled
      [INFO] :   Profiler disabled
      [INFO] :   Initiating prepare phase
      [INFO] :   Forcing rebuild: /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/build/iphone/build-manifest.json does not exist
      [INFO] :   Found Alloy app in /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/app
      [INFO] :   Executing Alloy compile: /usr/local/bin/node /usr/local/bin/alloy compile /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/app --config platform=ios,version=0,simtype=none,devicefamily=iphone,deploytype=development
      [INFO] :   ----- MVC GENERATION -----
      [INFO] :   [index.xml] view processing...
      [INFO] :     style:      "index.tss"
      [INFO] :     view:       "index.xml"
      [INFO] :     controller: "index.js"
      [INFO] :     created:    "Resources/alloy/controllers/index.js"
      [INFO] :     created:     "Resources/alloy/styles/index.js"
      [INFO] :   
      [INFO] :   [app.js] Titanium entry point processing...
      [INFO] :     created:    "Resources/app.js"
      [INFO] :   
      [INFO] :   ----- OPTIMIZING -----
      [INFO] :   - alloy.js
      [INFO] :   - alloy/widget.js
      [INFO] :   - alloy/sync/localStorage.js
      [INFO] :   - alloy/sync/properties.js
      [INFO] :   - alloy/sync/sql.js
      [INFO] :   - alloy/sync/util.js
      [INFO] :   - iphone/alloy/CFG.js
      [INFO] :   
      [INFO] :   Alloy compiled in 0.51229s
      [INFO] :   Alloy compiler completed successfully
      [INFO] :   Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=development
      [INFO] :   Found Titanium module id=com.appcelerator.apm version=latest platform=iphone deploy-type=development
      [INFO] :   Found Titanium module id=com.soasta.touchtest version=1.0 platform=iphone deploy-type=development
      [INFO] :   Detected third-party native iOS module: com.appcelerator.apm version 1.0.4
      [INFO] :   Detected third-party native iOS module: com.soasta.touchtest version 1.0
      [INFO] :   Forcing rebuild: native modules hash changed since last build
      [INFO] :     Was: undefined
      [INFO] :     Now: d9b2851e97e68de6fc9a4a8d6e5d507a
      [INFO] :   Cleaning old build directory
      [INFO] :   Performing full rebuild
      [INFO] :   Copying Xcode iOS files
      [INFO] :   Creating Xcode project directory: /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/build/iphone/TestLiveViewTSS.xcodeproj
      [INFO] :   Writing Xcode project data file: Titanium.xcodeproj/project.pbxproj
      [INFO] :   Writing Xcode project configuration: project.xcconfig
      [INFO] :   Writing Xcode module configuration: module.xcconfig
      [INFO] :   Creating symlinks for simulator build
      [INFO] :   Injecting native libraries into Xcode project file
      [INFO] :   Forcing rebuild: ApplicationDefaults.m has changed since last build
      [INFO] :   Writing properties to ApplicationDefaults.m
      [INFO] :   No module resources to copy
      [INFO] :   Copying CommonJS modules
      [INFO] :   Invoking xcodebuild
      [INFO] :   Finished building the application in 26s 495ms
      [LiveView] Closing file/event server process id: 12154
      [LiveView] Error closing server { [Error: kill ESRCH] code: 'ESRCH', errno: 'ESRCH', syscall: 'kill' }
      [INFO] :   Running application in iOS Simulator
      [LiveView] version 0.1.32
      [LiveView] File Server Started on Port 8324
      [LiveView] Alloy project monitor started
      [LiveView] Event Server Started on Port 8323
      [INFO] :   Launching application in iOS Simulator
      [INFO] :   Focusing the iOS Simulator
      [LiveView] Client connected
      -- Start simulator log -------------------------------------------------------
      [INFO] :   Application started
      [INFO] :   TestLiveViewTSS/1.0 (3.1.2.GA.5ceaff8)
      [INFO] :   [object ComAppceleratorApmModule] loaded
      [INFO] :   [object ComSoastaTouchtestModule] loaded
      [LiveView] Alloy recompile initiated for ios
      [LiveView] Reload Triggered
        REASON: File Changed
        FILE: /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/app/styles/index.tss
      [LiveView] Client disconnected
      [LiveView] Client connected
      [INFO] :   [LiveView] Reloading App
      [INFO] :   [LiveView] Closed Previous Event Server client
      [INFO] :   TestLiveViewTSS/1.0 (3.1.2.GA.5ceaff8)
      [LiveView] Reload Triggered
        REASON: File Changed
        FILE: /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/Resources/alloy/sync/util.js
      [LiveView] Reload Triggered
        REASON: File Changed
        FILE: /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/Resources/alloy/sync/sql.js
      [LiveView] Reload Triggered
        REASON: File Changed
        FILE: /Users/egomez/Documents/Appcelerator_Studio_Workspace/TestLiveViewTSS/Resources/iphone/alloy/CFG.js
      [INFO] :   [object ComAppceleratorApmModule] loaded
      [LiveView] Client disconnected
      [LiveView] Client connected
      [INFO] :   [object ComSoastaTouchtestModule] loaded
      [INFO] :   [LiveView] Reloading App
      [INFO] :   [LiveView] Closed Previous Event Server client
      [INFO] :   TestLiveViewTSS/1.0 (3.1.2.GA.5ceaff8)
      [INFO] :   [object ComAppceleratorApmModule] loaded
      [INFO] :   [object ComSoastaTouchtestModule] loaded
      [ERROR] :  Script Error {
      [ERROR] :      backtrace = "#0 () at :144\n#1 processStyle() at :15\n#2 () at :202\n#3 () at :182\n#4 () at :30";
      [ERROR] :      line = 485;
      [ERROR] :      message = "'null' is not an object (evaluating 'Module.getCached')";
      [ERROR] :      name = TypeError;
      [ERROR] :      sourceId = 339020384;
      [ERROR] :      sourceURL = "file://localhost/Users/egomez/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/EAC430A2-6714-4A07-B722-9D3658F954B4/TestLiveViewTSS.app/app.js";
      [ERROR] :  }
      [ERROR] :  Script Error {
      [ERROR] :      backtrace = "#0 () at :144\n#1 processStyle() at :15\n#2 () at :202\n#3 () at :182\n#4 () at :30";
      [ERROR] :      line = 485;
      [ERROR] :      message = "'null' is not an object (evaluating 'Module.getCached')";
      [ERROR] :      name = TypeError;
      [ERROR] :      sourceId = 353802432;
      [ERROR] :      sourceURL = "file://localhost/Users/egomez/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/EAC430A2-6714-4A07-B722-9D3658F954B4/TestLiveViewTSS.app/app.js";
      [ERROR] :  }
      

        Attachments

          Activity

            People

            • Assignee:
              csullivan Christian Sullivan
              Reporter:
              egomez Eduardo Gomez (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17398
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration