cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suraj Pindoria (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6870) Windows8 - trying to write large binary files throws a stack space exceeded exception on
Date Thu, 14 Dec 2017 19:40:00 GMT

    [ https://issues.apache.org/jira/browse/CB-6870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291451#comment-16291451
] 

Suraj Pindoria commented on CB-6870:
------------------------------------

WP is no longer supported. Closing.

> Windows8 - trying to write large binary files throws a stack space exceeded exception
on 
> -----------------------------------------------------------------------------------------
>
>                 Key: CB-6870
>                 URL: https://issues.apache.org/jira/browse/CB-6870
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-file
>    Affects Versions: 3.5.0
>            Reporter: Cristian Badila
>              Labels: WP8
>
> When trying to write to disk large files using binary mode (tested with files with sizes
greater than 100KB) an exception would occur on Windows 8/8.1 - stack space exceeded. This
is due to a change introduced in commit #ef636d93cba502a0881bd22abe744d0b9540424c - can be
seen easier here: https://github.com/apache/cordova-plugin-file/commit/ef636d93cba502a0881bd22abe744d0b9540424c.
> To be more exact the line where the exception would be raised is this one:
> bq. data = Array.apply(null, new Uint8Array(data));
> Replacing the above line with the following code fixes the issue:
> {quote}
>         var uint8ArrayView = new Uint8Array(data);
>         var plainArray = new Array();
>         for (var byteIndex = 0; byteIndex < uint8ArrayView.length; byteIndex++) \{
>             plainArray.push(uint8ArrayView\[byteIndex\]);
>         \}
>         data = plainArray;
> {quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message