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

Closed
opened 2026-04-25 00:05:25 +02:00 by adam · 1 comment
Owner

Originally created by @clover-kitsune on GitHub (Sep 10, 2024).

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.

Originally created by @clover-kitsune on GitHub (Sep 10, 2024). ### What happened? Workaround: Extract files from CBR archive and use 7zip to create a new CBZ archive. Example files: [Problematic1.cbr.zip](https://github.com/user-attachments/files/16944700/Problematic1.cbr.zip) [Problematic2.cbr.zip](https://github.com/user-attachments/files/16944702/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 ```shell [ '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.
adam added the bug label 2026-04-25 00:05:25 +02:00
adam closed this issue 2026-04-25 00:05:25 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 5, 2024):

Fixed in v2.14.0.

@github-actions[bot] commented on GitHub (Oct 5, 2024): Fixed in [v2.14.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.14.0).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2245