question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[windows] "RangeError: Out of the range index" when the package is only one file, and file size less than 100 bytes

See original GitHub issue

[windows] “RangeError: Out of the range index” when the package is only one file, and file size less than 100 bytes

resources >> New Text Document.txt

In “new text document. TXT”, there are one hundred characters “a”, then run the pack command, work fine, But is there a error in 99 characters “a”

command as > asar p .\resources app.asar

RangeError: Out of range index
    at Buffer.fill (buffer.js:703:11)
    at Pickle.writeBytes (x:\code\electron_src\electron\node_modules\chromium-pickle-js\lib\pickle.js:197:19)
    at Pickle.writeString (x:\code\electron_src\electron\node_modules\chromium-pickle-js\lib\pickle.js:173:19)
    at Object.module.exports.writeFilesystem (x:\code\electron_src\electron\node_modules\asar\lib\disk.js:60:20)
    at x:\code\electron_src\electron\node_modules\asar\lib\asar.js:155:19
    at x:\code\electron_src\electron\node_modules\mkdirp\index.js:48:26
    at FSReqWrap.oncomplete (fs.js:123:15)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

5reactions
aztackcommented, May 15, 2018

I tried to extract app.asar file of Cocos Creator 1.8.2 in /Applications/CocosCreator.app/Contents/Resources/app.asar and got this error message.

1reaction
hussainbcommented, May 23, 2019

facing the same issue here on a windows 10 machine, does this need a specific version of node or asar to successfully unpack?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[windows] "RangeError: Out of the range index" when the package is ...
[windows] "RangeError: Out of the range index" when the package is only one file, and file size less than 100 bytes.
Read more >
Folder copy error message when downloading a file that is ...
Describes a folder copy error that occurs because a security change in Windows ... You try to download a file that is larger...
Read more >
ArgumentOutOfRangeException Class (System)
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked...
Read more >
"Index was out of range" error message when a Group Policy ...
Fixes reporting issues when you use GPMC on a computer that is running Windows 7 or Windows Server 2008 R2.
Read more >
Windows.edb is larger than expected when a PST file is indexed
In this case, the only option to reduce disk usage is to index less content locally (by having Outlook cache less mail locally...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found