Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20155] Windows: Ti.Codec.encodeNumber hangs on Windows 10

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-12-21T15:57:29.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-12-19T01:05:46.000+0000
Updated2016-05-12T21:16:54.000+0000

Description

On Windows 10, Ti.Codec.encodeNumber hangs.
var buffer = Ti.createBuffer({
    length: 8
});
Ti.Codec.encodeNumber({
    source: 78187493530,
    dest: buffer,
    type: Ti.Codec.TYPE_LONG
});

Comments

  1. Kota Iguchi 2015-12-19

    https://github.com/appcelerator/titanium_mobile_windows/pull/509
  2. Wilson Luu 2016-05-11

    [~kota], What is the expected output for Ti.Codec.encodeNumber? And, is Ti.Codec supposed to be used with media type APIs?
  3. Kota Iguchi 2016-05-12

    [~wluu] [ti.codec.test.js](https://github.com/appcelerator/titanium_mobile_windows/blob/master/Examples/NMocha/src/Assets/ti.codec.test.js) would be a good example on how to use Ti.Codec. For acceptance test on this ticket, I think we just want to make sure encodeNumber doesn't hang on Windows 10 for the example above.
  4. Wilson Luu 2016-05-12

    Thanks [~kota].
  5. Josh Longton 2016-05-12

    Verified as fixed. Tested on: Nokia Lumia 928 (8.1) Windows Simulator (8.1) Microsoft Lumia 640 (10) Windows Simulator (10) Windows 10 Studio: 4.6.0.201605121040 Ti SDK: 5.3.0.v20160512105713 Appc NPM: 4.2.5-5 App CLI: 5.3.0-44 Node v0.12.7 *Closing Ticket.*

JSON Source