cli-visualizer icon indicating copy to clipboard operation
cli-visualizer copied to clipboard

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

Open ghost opened this issue 4 years ago • 11 comments

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

  • Install Arch Linux and yay (an AUR helper)
  • yay -S cli-visualizer
  • vis

ghost avatar Jul 01 '21 18:07 ghost

i am having this very same issue, i used

  • paru -S cli-visualizer
  • vis

gibranlp avatar Jul 13 '21 21:07 gibranlp

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.

ghost avatar Jul 13 '21 22:07 ghost

cli-visualizer-git package produces the same error

ZGFabian avatar Jul 21 '21 11:07 ZGFabian

same problem

ghost avatar Jul 22 '21 20:07 ghost

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

gibranlp avatar Jul 23 '21 01:07 gibranlp

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.

ghost avatar Jul 23 '21 01:07 ghost

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)

cyberpunkrocker-zero avatar Jul 23 '21 18:07 cyberpunkrocker-zero

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

gibranlp avatar Oct 07 '21 17:10 gibranlp

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

Mia75owo avatar Nov 10 '21 03:11 Mia75owo

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

jacobsandersen avatar Nov 30 '21 06:11 jacobsandersen

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

jacobsandersen avatar Nov 30 '21 07:11 jacobsandersen