Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot open some files: errors:563 Uncaught (in promise) Error: spawn ENAMETOOLONG #251

Closed
1 task done
pein0saga opened this issue Jul 28, 2024 · 2 comments
Closed
1 task done
Assignees
Labels

Comments

@pein0saga
Copy link

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

OpenComic Version

1.2.0

Operating System

WIN 10 22H2 19045.3324

Steps to reproduce

Open the cbz file

Expected Behavior

Open it normally

Actual Behavior

2024-07-28_18-26-28

Freezed like this

Error message

C:\Program Files\OpenComic\resources\app.asar\scripts\gamepad.js:26 Gamepads have been connected
C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1337 extractCompressed... (4338 files) D:\Komga\Storyarc\衝突 沖突 冲突 肉色囚笼 1-160話 完.cbz
node:internal/errors:563 Uncaught (in promise) Error: spawn ENAMETOOLONG
    at __node_internal_captureLargerStackTrace (node:internal/errors:563:5)
    at __node_internal_errnoException (node:internal/errors:690:12)
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:776:9)
    at Object.run (C:\Program Files\OpenComic\resources\app.asar\node_modules\node-7z\src\lifecycle.js:74:26)
    at C:\Program Files\OpenComic\resources\app.asar\node_modules\node-7z\src\main.js:55:15
    at Object.extractFull (C:\Program Files\OpenComic\resources\app.asar\node_modules\node-7z\src\commands.js:27:10)
    at fileCompressed.open7z (C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1857:20)
    at fileCompressed.extract7z (C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1921:24)
    at fileCompressed.extractCurrent (C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1340:16)
    at fileCompressed.extract (C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1330:15)
    at async file.makeAvailable (C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:753:6)
    at async Object.openComic (C:\Program Files\OpenComic\resources\app.asar\scripts\dom.js:2101:4)
__node_internal_captureLargerStackTrace @ node:internal/errors:563
__node_internal_errnoException @ node:internal/errors:690
ChildProcess.spawn @ node:internal/child_process:421
spawn @ node:child_process:776
run @ C:\Program Files\OpenComic\resources\app.asar\node_modules\node-7z\src\lifecycle.js:74
(anonymous) @ C:\Program Files\OpenComic\resources\app.asar\node_modules\node-7z\src\main.js:55
(anonymous) @ C:\Program Files\OpenComic\resources\app.asar\node_modules\node-7z\src\commands.js:27
open7z @ C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1857
extract7z @ C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1921
extractCurrent @ C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1340
extract @ C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1330

Additional Information

No response

Sample file

No response

@pein0saga pein0saga added the bug label Jul 28, 2024
@ollm ollm self-assigned this Jul 29, 2024
@ollm
Copy link
Owner

ollm commented Jul 29, 2024

I think the error happens when trying to extract a zip file with a large amount of files at once, I have made this change to extract the files in groups of 500 061827f

Build: https://mega.nz/file/nGoXXRjb#tS6OxWRqHfZSzpn5Ui81eTLIgxqxB-HmbtT3dLpXY5M

@pein0saga
Copy link
Author

I think the error happens when trying to extract a zip file with a large amount of files at once, I have made this change to extract the files in groups of 500 061827f

Build: https://mega.nz/file/nGoXXRjb#tS6OxWRqHfZSzpn5Ui81eTLIgxqxB-HmbtT3dLpXY5M

Thanks. Problems has been resolved. But I have another problem opening another file. I will open a new thread here.

#253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants