Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24561] UniversalWindowsApp: Ti.Network change event crashes the app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-04-11T13:06:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.4
ComponentsWindows
Labelsn/a
ReporterNeeraj Mishra
AssigneeKota Iguchi
Created2017-04-05T23:04:12.000+0000
Updated2017-05-08T20:45:30.000+0000

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

FileDateSize
index.js2017-04-05T23:04:47.000+0000227
index.tss2017-04-05T23:04:49.000+0000155
index.xml2017-04-05T23:04:50.000+000078

Comments

  1. Kota Iguchi 2017-04-11

    https://github.com/appcelerator/titanium_mobile_windows/pull/968
  2. Samir Mohammed 2017-04-24

    Verified in: 6.0.4.v20170421153428 6.1.0.v20170421082637 6.2.0.v20170424071354 Test cases and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/968 https://github.com/appcelerator/titanium_mobile_windows/pull/969

JSON Source