Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when using "tab" to complete a tag #15

Closed
apm256 opened this issue Feb 10, 2015 · 2 comments
Closed

crash when using "tab" to complete a tag #15

apm256 opened this issue Feb 10, 2015 · 2 comments

Comments

@apm256
Copy link

apm256 commented Feb 10, 2015

Hi gauteh,

Here is a small bug:

  • choose a thread with a sufficient number of tags;
  • press 'l';
  • type the beginning of an existing tag;
  • complete it with the "TAB" key (nice feature by the way, thanks for it!);
  • then, type "," to add another tag.

Result: astroid crashes with the following trace:

[debug] (16:21:37): cb: completion: taking next match
(astroid:21057): glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: basic_string::assign: __pos (which is 18446744073709551615) > this->size() (which is 24)
@gauteh
Copy link
Member

gauteh commented Feb 10, 2015

Excerpts from apm256's message of February 10, 2015 16:24:

Hi gauteh,

Here is a small bug:

  • choose a thread with a sufficient number of tags;
  • press 'l';
  • type the beginning of an existing tag;
  • complete it with the "TAB" key (nice feature by the way, thanks for it!);
  • then, type "," to add another tag.

Result: astroid crashes with the following trace:

[debug] (16:21:37): cb: completion: taking next match
(astroid:21057): glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: basic_string::assign: __pos (which is 18446744073709551615) > this->size() (which is 24)

Hey, thanks, yeah - the problem goes away if you put a space after ','
before trying to complete again. It is still a bug though! (or perhaps
this is a slightly different bug..)

By the way, have you tried out any of the highlighting stuff or from
mathjax (e.g. the trace you included here should have highlighting,
which would make more sense if it was code of course).

gaute

@apm256
Copy link
Author

apm256 commented Feb 10, 2015

Thank you for the tip!
I didn't try the highlighting features yet. I will let you know when I have done it.

@gauteh gauteh added the bug label Feb 11, 2015
ff2000 added a commit to ff2000/astroid that referenced this issue Jan 13, 2016
Do not try to substr the tail if we complete at the end of the
command bar. This will prevent overflows.
@gauteh gauteh closed this as completed in cdb65f0 Jan 13, 2016
gauteh pushed a commit to gauteh/astroid that referenced this issue Nov 3, 2017
cmake: use CMake Threads package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants