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

Segfault on small terminal window #455

Open
avidseeker opened this issue Apr 20, 2023 · 3 comments
Open

Segfault on small terminal window #455

avidseeker opened this issue Apr 20, 2023 · 3 comments

Comments

@avidseeker
Copy link

Bug description. calcurse crashes on small terminal windows.

Reproduce.

  1. $ calcurse <enter>
  2. Resize terminal window so that it's smaller than sidebar area.

Expected Behavior.

Print message like: "screen is too small to display", like pacman.

Screenshots.

zsh: segmentation fault (core dumped)  calcurse

Version: calcurse 4.8.0-2

@lfos
Copy link
Owner

lfos commented Apr 23, 2023

Thanks for the bug report. Are you able to share your calcurse config and more detailed steps to reproduce (e.g., does this always happen, are you resizing in a specific way)? I am unable to reproduce the behavior.

@avidseeker
Copy link
Author

  • Running on default config
  • Tested on konsole, xfce-terminal and bash, zsh
  • Resize using mouse drag

@ninedotnine
Copy link

ninedotnine commented Apr 30, 2023

Same bug here. Specifically, if the width of the window is smaller than the width of the two right panels, it segfaults. The window does not need to be resized for this to happen; if the width is too small when calcurse is run then it will immediately segfault.

v 4.8.0. Also my system language is French, if that changes anything.
My conf:

appearance.calendarview=monthly
appearance.compactpanels=yes
appearance.defaultpanel=calendar
appearance.layout=1
appearance.headerline=yes
appearance.eventseparator=yes
appearance.dayseparator=no
appearance.emptyline=yes
appearance.emptyday=--
appearance.notifybar=yes
appearance.sidebarwidth=37
appearance.theme=yellow on default
appearance.todoview=show-completed
appearance.headingpos=right-justified
daemon.enable=no
daemon.log=no
format.inputdate=2
format.notifydate=%a %F
format.notifytime=%T
format.appointmenttime=%H:%M
format.outputdate=%D
format.dayheading=%e %B
general.autogc=no
general.autosave=yes
general.confirmdelete=yes
general.confirmquit=no
general.firstdayofweek=monday
general.multipledays=yes
general.periodicsave=0
general.systemevents=yes
notification.command=printf '\a'
notification.notifyall=flagged-only
notification.warning=300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants