Bug #779

Plugins: Message with a lot of charaters block

Added by andreus sebes over 9 years ago. Updated over 9 years ago.

Status:FixedStart date:11/16/2011
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Plugins
Target version:3.4
Found in version:3.3.223 Platform:Linux

Description

When i try to send a message to screen it a lot of text, showtime blocks

var text="sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd"+
"sdfsd f sdf sdf sdfsdfsd fsdf sdfsdf sdfsd fsdfsdfsdfs df sdfsd fsdsd sdf sdf sd";
showtime.message(text, true, true);

Associated revisions

Revision 7557e3e5
Added by Andreas Smas over 9 years ago

Better support for truncating text

Fixes #779

Change included in version 3.3.315

History

#1 Updated by Andreas Smas over 9 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#2 Updated by Andreas Smas over 9 years ago

I've fixed the rendering problems.

Note that if you use showtime.message() from a thread that does not expect to be blocked, such as with the -p or -j option it will always block no matter how big the text is

#3 Updated by andreus sebes over 9 years ago

Ok. Now it doesnt block!! Thanks

But... when the text it's long it appears with graphical problems (i can only see some letters because it's centered with a unknown width).

Can you had a scrollbar or something if the text is too long so this doesn't hapen?

Also available in: Atom PDF