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

UniversalWindowsApp: Ti.Network change event crashes the app

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.0.4
    • Component/s: Windows
    • Labels:
      None
    • Environment:
    • Story Points:
      5
    • Sprint:
      2017 Sprint 09 SDK

      Description

      Problem Description:

      Whenever the change event is triggering, the app crashes with error:

      Steps to Reproduce:

      1. Launch sample app (make sure you're online):Files are attached for creating sample Alloy app.

      2. Run the command to launch the ws-local app:
      appc ti build -p windows -T ws-local

      3. Turn the internet connection off.
      4. Observe crash and error in console.

      Expected Result:

      App should not crash on network event change and should only print event message on console as per the index.js file.

      Actual Results:

      Below Error message generated on console and app is crashing.

      [ERROR] Application Error: "Runtime Error: unknown exception"
      [ERROR] Error: unknown exception
      [ERROR] Application Error: "This API must be called from a thread with a CoreWindow or a window must have been set explicitly."
      [ERROR] Error: unknown exception

      Observation: App does not crash when we tried it on Windows 10 Emulator , only logs below exception on console screen:

      [ERROR] Application Error: "Runtime Error: unknown exception"
      [ERROR] Error: unknown exception

        Attachments

        1. index.js
          0.2 kB
        2. index.tss
          0.2 kB
        3. index.xml
          0.1 kB

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                nmishra Neeraj Mishra
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • It looks like Backbone Issue Sync is not enabled for your project.

                    Git Source Code