Skip to content

[BUG] "input buffer overflow, can't enlarge buffer because scanner uses REJECT" when using error dialog for large text #1855

@itspec-ru

Description

@itspec-ru

Rofi version (rofi -v)

Version: 1.7.5

Configuration

https://gist.github.com/itspec-ru/0c5cb29341c5e51bc2a1deb5aaf68c60

Theme

https://gist.github.com/itspec-ru/9fa95059076302b65602461079938966

Timing report

No response

Launch command

rofi -theme bw -markup -e "${text}"

Step to reproduce

preparing Pango Markup Text of a sufficiently large size

text=$(curl "http://wttr.in/Тольятти?lang=ru" | sed "s/[ \t]*$//" | ansifilter --ignore-csi --pango --font="Liberation Mono" --font-size=15)

using error dialog for display text

rofi -theme bw -markup -e "${text}" -theme-str '* {font: "Liberation Mono 15";} window {fullscreen: false; background-color: rgba ( 0, 0, 0, 0.9 ); location: south east; anchor: south east; width:80%; y-offset:-30;}'

Expected behavior

Some time ago it worked and broke after the update.
2020-01-08_12_39_08

Actual behavior

an error has occurred
input buffer overflow, can't enlarge buffer because scanner uses REJECT

Additional information

If the same text is first output to a file and truncated, the program will display it correctly.

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions