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

Main Thread: Ti.Stream undefined when enabled and run via LiveView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      SDK 5.2.0.v20160208101502
      LiveView 1.0.9
      Studio 4.4.0.201511241829

      Description

      When setting <run-on-main-thread>true</run-on-main-thread> and running the app in iOS emulator with LiveView turned on, it throws:

      undefined is not an object (evaluating 'Ti.Stream.pump') at app.js (line 231).

      [ERROR] : Script Error

      { [ERROR] : column = 16; [ERROR] : line = 231; [ERROR] : message = "undefined is not an object (evaluating 'Ti.Stream.pump')"; [ERROR] : sourceURL = "file:///Users/ophir/Library/Developer/CoreSimulator/Devices/046ECC44-60EC-4D29-B67E-A3370829EEE7/data/Containers/Bundle/Application/FC02DDCE-6E69-488E-BE43-BCFE5C27F7C3/Memoriez.app/app.js"; [ERROR] : }

      These are my iOS settings:

      <enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
      <use-app-thinning>true</use-app-thinning>
      <run-on-main-thread>true</run-on-main-thread>
      <use-jscore-framework>true</use-jscore-framework>

      If I just set run-on-main-thread to false then it will not show the error message and LiveView will work.

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              developer82 Ophir Oren
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code