[Bug]: Crash on accessing Series via drop-down #3193

Open
opened 2026-02-20 11:01:20 -05:00 by deekerman · 5 comments
Owner

Originally created by @ewen-r on GitHub (Jan 19, 2026).

What happened?

Server crashes when accessing a specific series via the Library and using the drop-down menu/filter.

What did you expect to happen?

Should not crash

Steps to reproduce the issue

  1. Open Library page using the menu item on LHS menu.
  2. Library items are visible as expected.
  3. Use the filter drop-down at the top to select Series and then any given series.
  4. Server crashes.

Audiobookshelf version

v2.32.1

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

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

Firefox

Logs

{"timestamp":"2026-01-19 19:18:07.233","source":"Server.js:214","message":"[Server] Unhandled rejection: TypeError: Cannot read properties of undefined (reading 'authorName')\n    at /app/server/utils/libraryHelpers.js:199:64\n    at Array.reduce (<anonymous>)\n    at asc (/app/server/utils/libraryHelpers.js:199:46)\n    at multiPropertySorter (/app/server/libs/fastSort/index.js:38:24)\n    at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n    at multiPropertySorter (/app/server/libs/fastSort/index.js:48:24)\n    at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n    at /app/server/libs/fastSort/index.js:70:45\n    at Array.sort (<anonymous>)\n    at sortArray (/app/server/libs/fastSort/index.js:85:20) \npromise: Promise {\n  <rejected> TypeError: Cannot read properties of undefined (reading 'authorName')\n      at /app/server/utils/libraryHelpers.js:199:64\n      at Array.reduce (<anonymous>)\n      at asc (/app/server/utils/libraryHelpers.js:199:46)\n      at multiPropertySorter (/app/server/libs/fastSort/index.js:38:24)\n      at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n      at multiPropertySorter (/app/server/libs/fastSort/index.js:48:24)\n      at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n      at /app/server/libs/fastSort/index.js:70:45\n      at Array.sort (<anonymous>)\n      at sortArray (/app/server/libs/fastSort/index.js:85:20)\n}","levelName":"FATAL","level":5}

Additional Notes

No response

Originally created by @ewen-r on GitHub (Jan 19, 2026). ### What happened? Server crashes when accessing a specific series via the Library and using the drop-down menu/filter. ### What did you expect to happen? Should not crash ### Steps to reproduce the issue 1. Open Library page using the menu item on LHS menu. 2. Library items are visible as expected. 3. Use the filter drop-down at the top to select Series and then any given series. 4. Server crashes. ### Audiobookshelf version v2.32.1 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Firefox ### Logs ```shell {"timestamp":"2026-01-19 19:18:07.233","source":"Server.js:214","message":"[Server] Unhandled rejection: TypeError: Cannot read properties of undefined (reading 'authorName')\n at /app/server/utils/libraryHelpers.js:199:64\n at Array.reduce (<anonymous>)\n at asc (/app/server/utils/libraryHelpers.js:199:46)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:38:24)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:48:24)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n at /app/server/libs/fastSort/index.js:70:45\n at Array.sort (<anonymous>)\n at sortArray (/app/server/libs/fastSort/index.js:85:20) \npromise: Promise {\n <rejected> TypeError: Cannot read properties of undefined (reading 'authorName')\n at /app/server/utils/libraryHelpers.js:199:64\n at Array.reduce (<anonymous>)\n at asc (/app/server/utils/libraryHelpers.js:199:46)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:38:24)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:48:24)\n at multiPropertySorter (/app/server/libs/fastSort/index.js:43:24)\n at /app/server/libs/fastSort/index.js:70:45\n at Array.sort (<anonymous>)\n at sortArray (/app/server/libs/fastSort/index.js:85:20)\n}","levelName":"FATAL","level":5} ``` ### Additional Notes _No response_
Author
Owner

@ewen-r commented on GitHub (Jan 19, 2026):

PS..
Navigating to a given series using the LHS menu Series seems to be working fine.

@ewen-r commented on GitHub (Jan 19, 2026): PS.. Navigating to a given series using the LHS menu Series seems to be working fine.
Author
Owner

@nichwall commented on GitHub (Jan 19, 2026):

Is this for every series or only specific series?

@nichwall commented on GitHub (Jan 19, 2026): Is this for every series or only specific series?
Author
Owner

@ewen-r commented on GitHub (Jan 20, 2026):

Was going to say that it crashes on every series I have tried thus far..

Just logged in to try a few others today and now it's all working as expected...!

Thanks for the attention though.

@ewen-r commented on GitHub (Jan 20, 2026): Was going to say that it crashes on every series I have tried thus far.. Just logged in to try a few others today and now it's all working as expected...! Thanks for the attention though.
Author
Owner

@ewen-r commented on GitHub (Jan 20, 2026):

ah wait.. I can now reproduce..
I think it depends on the existing Library display settings.

I have order set to 'Author (First Last)
and 'Collapse Series'

Then, with those display settings it crashes every time.

@ewen-r commented on GitHub (Jan 20, 2026): ah wait.. I can now reproduce.. I think it depends on the existing Library display settings. I have order set to 'Author (First Last) and 'Collapse Series' Then, with those display settings it crashes every time.
Author
Owner

@ewen-r commented on GitHub (Jan 20, 2026):

Could it possibly be because I have a few series where the author has only a single name
e.g 'Alien', 'Tolkien'...

> tree Audiobooks/Alien/
Audiobooks/Alien/
├── Alien Dramatizations
│   ├── 01 Out Of The Shadows
│   │   ├── 00 Out Of The Shadows.m4b
│   │   ├── cover.jpg
│   │   ├── fanart.jpg
│   │   ├── folder.jpg
│   │   └── metadata.json
│   ├── 02 River Of Pain
│   │   ├── 00 River Of Pain.m4b
│   │   ├── cover.jpg
│   │   ├── fanart.jpg
│   │   ├── folder.jpg
│   │   └── metadata.json
...
│   ├── cover.jpg
│   ├── fanart.jpg
│   └── folder.jpg
├── Alien Novelizations
│   ├── 00 Covenant Origins
│   │   ├── 00 Covenant Origins.m4b
│   │   ├── cover.jpg
│   │   ├── fanart.jpg
│   │   ├── folder.jpg
│   │   └── metadata.json
│   ├── 00 Phalanx
│   │   ├── 00 Phalanx.m4b
│   │   ├── cover.jpg
│   │   ├── fanart.jpg
│   │   ├── folder.jpg
│   │   └── metadata.json
│   ├── 01 Covenant
│   │   ├── cover.jpg
│   │   ├── fanart.jpg
│   │   └── folder.jpg
│   ├── 02 Alien
│   │   ├── 00 Alien.m4b
│   │   ├── cover.jpg
│   │   ├── fanart.jpg
│   │   ├── folder.jpg
│   │   └── metadata.json
...
│   ├── Alien N00 Covenant Origins
│   │   ├── cover.jpg
│   │   ├── fanart.jpg
│   │   ├── folder.jpg
│   │   └── metadata.json
│   ├── cover.jpg
│   ├── fanart.jpg
│   └── folder.jpg
├── author.jpg
├── cover.jpg
├── cover.xcf
├── fanart.jpg
└── folder.jpg

24 directories, 93 files
@ewen-r commented on GitHub (Jan 20, 2026): Could it possibly be because I have a few series where the author has only a single name e.g 'Alien', 'Tolkien'... ``` > tree Audiobooks/Alien/ Audiobooks/Alien/ ├── Alien Dramatizations │   ├── 01 Out Of The Shadows │   │   ├── 00 Out Of The Shadows.m4b │   │   ├── cover.jpg │   │   ├── fanart.jpg │   │   ├── folder.jpg │   │   └── metadata.json │   ├── 02 River Of Pain │   │   ├── 00 River Of Pain.m4b │   │   ├── cover.jpg │   │   ├── fanart.jpg │   │   ├── folder.jpg │   │   └── metadata.json ... │   ├── cover.jpg │   ├── fanart.jpg │   └── folder.jpg ├── Alien Novelizations │   ├── 00 Covenant Origins │   │   ├── 00 Covenant Origins.m4b │   │   ├── cover.jpg │   │   ├── fanart.jpg │   │   ├── folder.jpg │   │   └── metadata.json │   ├── 00 Phalanx │   │   ├── 00 Phalanx.m4b │   │   ├── cover.jpg │   │   ├── fanart.jpg │   │   ├── folder.jpg │   │   └── metadata.json │   ├── 01 Covenant │   │   ├── cover.jpg │   │   ├── fanart.jpg │   │   └── folder.jpg │   ├── 02 Alien │   │   ├── 00 Alien.m4b │   │   ├── cover.jpg │   │   ├── fanart.jpg │   │   ├── folder.jpg │   │   └── metadata.json ... │   ├── Alien N00 Covenant Origins │   │   ├── cover.jpg │   │   ├── fanart.jpg │   │   ├── folder.jpg │   │   └── metadata.json │   ├── cover.jpg │   ├── fanart.jpg │   └── folder.jpg ├── author.jpg ├── cover.jpg ├── cover.xcf ├── fanart.jpg └── folder.jpg 24 directories, 93 files ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/audiobookshelf-advplyr#3193
No description provided.