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

elogv crashes with too many logs #10

Closed
jonasstein opened this issue Jul 8, 2018 · 2 comments
Closed

elogv crashes with too many logs #10

jonasstein opened this issue Jul 8, 2018 · 2 comments

Comments

@jonasstein
Copy link

elogv crashes here, I think it is because of the high number of logs (34000 logs / 300 MB).
There should be a warning, if it runs out of memory or the like...

$ elogv
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/elogv", line 687, in <module>
    curses.wrapper(ElogViewer)
  File "/usr/lib64/python3.5/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python-exec/python3.5/elogv", line 236, in __init__
    self.init_screen()
  File "/usr/lib/python-exec/python3.5/elogv", line 373, in init_screen
    self.fill_file_pad()
  File "/usr/lib/python-exec/python3.5/elogv", line 501, in fill_file_pad
    self.file_pad = curses.newpad(len(self.packages),self.width)
_curses.error: curses function returned NULL

@jonasstein jonasstein changed the title elogv crashes with large logs elogv crashes with too many logs Jul 8, 2018
@hartwork
Copy link
Member

hartwork commented Jul 8, 2018

That's https://bugs.gentoo.org/479966 in Gentoo

@hartwork
Copy link
Member

hartwork commented Jul 8, 2018

To crash reproducably:

mkdir -p logdir/elog
( cd logdir/elog/ && touch xfce-extra:xfce4-xkb-plugin-{1..32768}:20180311-235959.log )
PORT_LOGDIR=logdir ./elogv

No crash for one log file less than that.

hartwork added a commit that referenced this issue Jul 8, 2018
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

2 participants