Skip to content

[BUG] Crash with C++ vector index out of bounds error #151

@calvinbui

Description

@calvinbui

Is there an existing issue for this?

  • I have searched the existing issues

Referred to here by the Bazarr dev: morpheus65535/bazarr#2865

Current Behavior

My container logs show this error whenever Bazarr crashes and becomes unavailable

/usr/include/c++/14.2.0/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = ZenLib::Ztring; _Alloc = std::allocator<ZenLib::Ztring>; reference = ZenLib::Ztring&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

Expected Behavior

No response

Steps To Reproduce

I'm running the Linuxserver.io version: v1.5.1-ls294 image. There is no set time it happens, but usually overnight for me (Sydney, Australia).

Environment

- OS: Docker on Ubuntu 24.04
- How docker service was installed: following https://docs.docker.com/engine/install/ubuntu/

CPU architecture

x86-64

Docker creation

Via Ansible - https://github.com/calvinbui/ansible-monorepo/blob/9c245fc9fb85dd2d2da880ec93be19f3a24d3bff/bazarr.yml#L40-L73

Container logs

2025-03-07 11:11:03,768 - root                             (73b69441cb30) :  INFO (signalr_client:122) - BAZARR trying to connect to Sonarr SignalR feed...
2025-03-07 11:11:03,772 - root                             (73b69401cb30) :  INFO (signalr_client:189) - BAZARR trying to connect to Radarr SignalR feed...
2025-03-07 11:11:03,773 - waitress                         (73b6cbb9eb28) :  INFO (wasyncore:485) - BAZARR is started and waiting for requests on: http://0.0.0.0:6767/
2025-03-07 11:11:03,776 - waitress                         (73b6cbb9eb28) :  INFO (wasyncore:485) - BAZARR is started and waiting for requests on: http://[::]:6767
2025-03-07 11:11:03,785 - root                             (73b693c1cb30) :  INFO (signalr_client:150) - BAZARR SignalR client for Sonarr is connected and waiting for events.
2025-03-07 11:11:03,786 - root                             (73b69381cb30) :  INFO (signalr_client:217) - BAZARR SignalR client for Radarr is connected and waiting for events.
/usr/include/c++/14.2.0/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = ZenLib::Ztring; _Alloc = std::allocator<ZenLib::Ztring>; reference = ZenLib::Ztring&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions