Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #887581

Lua console featured text brings stack to overflow

Added by Alexandro Ignatiev 11 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Client
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Say you want to share with your allies the data about which of your units have no upkeep. If your player number is 0, you write:

for u in find.player(28):units_iterate() do if u.homecity <= 0 then log.normal('\\[l tgt="unit" id=%d name="%s" /\\]',u.id,u.utype:rule_name()) end end

You expect to get links to copy into chat but all you get is segfault from stack overflow.
Most likely some flaw is in featured_text_to_plain_text()
but I could not catch it.

History

#1 Updated by Alexandro Ignatiev 11 months ago

Oops it's not only console related. When I wrote the lines to the chat manually I can't any more log on the server from Gtk3.22 clients. Other clients work, just don't show the cursed stuff.

#2 Updated by Alexandro Ignatiev 11 months ago

Resolved for me (Linux/Gtk3.22). This sometimes produces links with zero visible content (but still clickable) but it seems to be the solution least changing the behaviour.

#3 Updated by Marko Lindqvist 10 months ago

The closing seems to happen one character before the end of the text: "[l tgt="unit" id=1]test" shows "tes" as the link and "t" separately

#4 Updated by Alexandro Ignatiev 10 months ago

Yes, the ... - 1 appears to be unnecessary. Tested without it, it worked.

#5 Updated by Marko Lindqvist 10 months ago

Alexandro Ignatiev wrote:

Yes, the ... - 1 appears to be unnecessary.

Will you make a new version?

#7 Updated by Marko Lindqvist 10 months ago

  • Status changed from New to Resolved
  • Assignee set to Marko Lindqvist

#8 Updated by Marko Lindqvist 10 months ago

  • Status changed from Resolved to Closed

#9 Updated by Marko Lindqvist 9 months ago

  • Sprint/Milestone changed from 2.6.3 to 2.6.2.1

Also available in: Atom PDF