dpayne / cli-visualizer

CLI based audio visualizer
MIT License
2.11k stars 123 forks source link

Launching throws "Assertion '__n < this->size()' failed", then abort and core dump. #183

Open ghost opened 3 years ago

ghost commented 3 years ago

Description

The exact error: /usr/include/c++/11.1.0/bits/stl_vector.h:1045: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = vis::ColorDefinition; _Alloc = std::allocator<vis::ColorDefinition>; std::vector<_Tp, _Alloc>::reference = vis::ColorDefinition&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__n < this->size()' failed.

It then crashes: [1] 325436 abort (core dumped) vis

Steps to reproduce

gibranlp commented 3 years ago

i am having this very same issue, i used

ghost commented 3 years ago

The AUR package is outdated, I’ll try to compile it myself.

Le 13 juill. 2021 à 17:00, gibranlp @.***> a écrit :

 i am having this very same issue, i used

paru -S cli-visualizer vis — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ZGFabian commented 3 years ago

cli-visualizer-git package produces the same error

ghost commented 3 years ago

same problem

gibranlp commented 3 years ago

if you uninstall the AUR version, and then install it from source fixes the problem, for now,

ghost commented 3 years ago

Thank you very much although it should be clarified that the default settings do not work correctly but putting some custom settings works, thank you very much.

cyberpunkrocker-zero commented 3 years ago

Im still getting the assertion error and core dump on Arch Linux even after fixing the PKGBUILD of cli-visualizer-git to work like the 'install.sh' script.

@dpayne if I'm not mistaken, you seem to be also resposible for the AUR packages of cli-visualizer. Please update and fix them, they're both broken ('build' directory missing)

gibranlp commented 2 years ago

The git package also produces the same error, is there an easy way to fix it?

Mia75owo commented 2 years ago

I edited the ~/.config/vis/config file and uncommented this line: visualizer.fps=20 (should be the second line) that fixed the problem for me

jacobsandersen commented 2 years ago

Having the same error - uncommenting the fps setting did not do anything.

jacobsandersen commented 2 years ago

Yup. Something is wrong with the AUR package - even the git one. Just clone from GH and ./install.sh. It works.