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]: Server crashing when importing certain CBR files (workaround found) #3399

Closed
clover-kitsune opened this issue Sep 10, 2024 · 1 comment · Fixed by #3422 or #3435
Closed

[Bug]: Server crashing when importing certain CBR files (workaround found) #3399

clover-kitsune opened this issue Sep 10, 2024 · 1 comment · Fixed by #3422 or #3435
Labels
bug Something isn't working

Comments

@clover-kitsune
Copy link

What happened?

Workaround: Extract files from CBR archive and use 7zip to create a new CBZ archive.

Example files:
Problematic1.cbr.zip
Problematic2.cbr.zip

When importing certain CBR files ABS crashes. Most of my CBR files imported fine, so I'm not sure why some do not. I've attached 2 of the problematic files. I get a pop-up on the web interface that says "Socket Disconnected" and another that says "Server exited with error code 1". The app is still running in the system tray, but clicking "Start Server" does nothing. I have to click "Exit" and the launch a new instance.

What did you expect to happen?

I expected the CBR file to import without issue like the others had.

Steps to reproduce the issue

  1. Create proper folder structure.
  2. Copy one of the problematic CBR files into the correct folder.

Audiobookshelf version

12.13.4 (Windows)

How are you running audiobookshelf?

Windows Tray App

What OS is your Audiobookshelf server hosted from?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

Logs

[ 'wasm streaming compile failed: TypeError: fetch failed' ]
[ 'falling back to ArrayBuffer instantiation' ]
[ 'wasm streaming compile failed: TypeError: fetch failed' ]
[ 'falling back to ArrayBuffer instantiation' ]
[2024-09-10 07:00:11.205] FATAL: [Server] Unhandled rejection: [object Object], promise: Promise {
  <rejected> {
    message: 'Parsing filters is unsupported.',
    name: 'Error',
    stack: 'Error: Parsing filters is unsupported.\n' +
      '    at ArchiveReader.entries (C:\\snapshot\\audiobookshelf\\server\\libs\\libarchive\\wasm-module.js)\n' +
      '    at entries.next (<anonymous>)\n' +
      '    at MessagePort.<anonymous> (C:\\snapshot\\audiobookshelf\\server\\libs\\libarchive\\libarchiveWorker.js)\n' +
      '    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:826:20)\n' +
      '    at exports.emitMessage (node:internal/per_context/messageport:23:28)'
  }
} (    at process.<anonymous> (C:\snapshot\audiobookshelf\server\Server.js))

Additional Notes

Workaround: Extract files from CBR archive and use 7zip to create a new CBZ archive.

Copy link

github-actions bot commented Oct 5, 2024

Fixed in v2.14.0.

@github-actions github-actions bot removed the awaiting release Issue is resolved and will be in the next release label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants