[TIMOB-24561] UniversalWindowsApp: Ti.Network change event crashes the app
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-04-11T13:06:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.0.4 |
Components | Windows |
Labels | n/a |
Reporter | Neeraj Mishra |
Assignee | Kota Iguchi |
Created | 2017-04-05T23:04:12.000+0000 |
Updated | 2017-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
File | Date | Size |
index.js | 2017-04-05T23:04:47.000+0000 | 227 |
index.tss | 2017-04-05T23:04:49.000+0000 | 155 |
index.xml | 2017-04-05T23:04:50.000+0000 | 78 |
https://github.com/appcelerator/titanium_mobile_windows/pull/968
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