First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 195429
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Christian Faulhammer <opfer@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Michał Kiedrowicz <esqualante@o2.pl>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emerge.info emerge --info text/plain Michał Kiedrowicz 2007-10-10 20:15 0000 3.09 KB Details
patch patch against 0.6.1-r1 patch Michał Kiedrowicz 2008-02-03 23:41 0000 908 bytes Details | Diff
elogv.patch elogv-0.6.1-refresh-screen.patch text/plain Luca Marturana 2008-02-04 22:55 0000 365 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 195429 depends on: Show dependency tree
Show dependency graph
Bug 195429 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-10 20:15 0000
elogv crashes with the following info:

Traceback (most recent call last):
  File "/usr/bin/elogv", line 447, in <module>
    curses.wrapper(ElogViewer)
  File "/usr/lib64/python2.5/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/elogv", line 174, in __init__
    self.refresh_file_pad()
  File "/usr/bin/elogv", line 256, in refresh_file_pad
    self.file_pad.refresh(self.pposy,0,1,1,self.height/2-1,self.width-2)
_curses.error: prefresh() returned ERR


Reproducible: Always

Steps to Reproduce:
1. Start elogv. You have to have more entries than can fit in one screen. 
2. Go to last entry and delete one after one.
3. When cursor will come to the first one (from top), elogv crashes.

------- Comment #1 From Michał Kiedrowicz 2007-10-10 20:15:27 0000 -------
Created an attachment (id=133087) [edit]
emerge --info

------- Comment #2 From Christian Faulhammer 2007-10-10 22:19:29 0000 -------
Adding author

------- Comment #3 From Alex Tarkovsky 2007-11-07 16:34:05 0000 -------
Finding this bug makes me consider moving to an alternative elog viewer. I
filed a bug upstream for a related issue on September 22 and still no response
from the devs:

http://sourceforge.net/tracker/index.php?func=detail&aid=1800105&group_id=176946&atid=879268

------- Comment #4 From Christian Faulhammer 2008-02-02 16:19:27 0000 -------
Sorry that this took so long, but I am not very keen of Python, so I needed to
jump a high fence until I dared touching it.  Anyway, I fixed it by the cost of
some more screen redraws, emerge 0.6.1-r1 in about an hour, test it and report
back.  Thanks for the patience and for the report.

Upstream is mostly dead.  That's really sorry.

------- Comment #5 From Michał Kiedrowicz 2008-02-03 23:39:35 0000 -------
(In reply to comment #4)
> Sorry that this took so long, but I am not very keen of Python, so I needed to
> jump a high fence until I dared touching it.  Anyway, I fixed it by the cost of
> some more screen redraws, emerge 0.6.1-r1 in about an hour, test it and report
> back.  Thanks for the patience and for the report.
> 

Hi, thanks for Your try. However, Your solution 

self.change_usel(-1)
self.change_usel(+1)

doesn't work best for removing first file (change_usel(-1) doesn't do anything
and +1 moves to next row).

Finally, I've passed all exams, so I have some time and I looked at the code
(I'm not Python guru either) and tried to fix this issue. I added a check if
self.pposy > self.usel.

Moreover, after deleting log file, new log wasn't shown, so I added
self.show_log().

I don't think my solution is perfect, so please review my patch.

BTW: What do You think about adding vi-like j/k movement keys? Now it's just
arrow up/down...

> Upstream is mostly dead.  That's really sorry.
> 

Yeah, sad, I think console based elog viewer is really needed.

------- Comment #6 From Michał Kiedrowicz 2008-02-03 23:41:11 0000 -------
Created an attachment (id=142622) [edit]
patch against 0.6.1-r1

If You want, I can create patch against 0.6.1.

------- Comment #7 From Christian Faulhammer 2008-02-04 09:18:55 0000 -------
(In reply to comment #5)
> doesn't work best for removing first file (change_usel(-1) doesn't do anything
> and +1 moves to next row).

 Right, haven't thought about that corner case. :)

> Moreover, after deleting log file, new log wasn't shown, so I added
> self.show_log().

 Yeah, made me think about the solution for another bug.

> I don't think my solution is perfect, so please review my patch.

 Better than mine.

> BTW: What do You think about adding vi-like j/k movement keys? Now it's just
> arrow up/down...

 Nothing, as I am an Emacs user (and even maintainer). :)  But I added it now
in -r2.

> > Upstream is mostly dead.  That's really sorry.
> Yeah, sad, I think console based elog viewer is really needed.

 It still works and I can still patch it.  But it is the same with elogviewer,
kelogviewer and elogv (I maintain all three), all are dead upstream.  That's
the reason why developers are reluctant to add user-maintained programs...most
are unreliable and in the end one has to fix everything oneself.

Luca, if you are still reading this, have a look at the patches I added for
0.6.1-r1.  Thanks.

(In reply to comment #6)
> If You want, I can create patch against 0.6.1.

 Not needed, I did it myself.

------- Comment #8 From Luca Marturana 2008-02-04 22:55:16 0000 -------
Created an attachment (id=142684) [edit]
elogv-0.6.1-refresh-screen.patch

Hi at all,

Excuse me for responding too late, but I'm very busy in this period. By the
way, for the refresh-screen bug I found another solution that doesn't need to
rewrite the entire screen, it seems to work on my tests. Please try if it works
also on your systems. The other two patches (vi_movement, segfault-remove) will
be merge d on svn and on the next version that will be released soon. Thanks
for your work. ;)

And excuse me again, Luca

------- Comment #9 From Christian Faulhammer 2008-02-05 08:18:52 0000 -------
> Excuse me for responding too late, but I'm very busy in this period. By the
> way, for the refresh-screen bug I found another solution that doesn't need to
> rewrite the entire screen, it seems to work on my tests. Please try if it works
> also on your systems. The other two patches (vi_movement, segfault-remove) will
> be merge d on svn and on the next version that will be released soon. Thanks
> for your work. ;)
> 

 Worked into the ebuild -r3.  Thanks.

First Last Prev Next    No search results available      Search page      Enter new bug