Bug 668701 - [abrt] identicurse-0.6.2-1.fc14: helpers.py:107:find_split_point:IndexError: string index out of range
Summary: [abrt] identicurse-0.6.2-1.fc14: helpers.py:107:find_split_point:IndexError: ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: identicurse
Version: 14
Hardware: i686
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Steve Milner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e4a05257
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-11 10:15 UTC by Johan Vervloet
Modified: 2011-01-26 20:58 UTC (History)
2 users (show)

Fixed In Version: identicurse-0.6.3-1.fc14
Clone Of:
Environment:
Last Closed: 2011-01-26 20:58:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.61 KB, text/plain)
2011-01-11 10:15 UTC, Johan Vervloet
no flags Details

Description Johan Vervloet 2011-01-11 10:15:28 UTC
abrt version: 1.1.14
architecture: i686
component: identicurse
executable: /usr/bin/identicurse
kernel: 2.6.35.10-74.fc14.i686
package: identicurse-0.6.2-1.fc14
reason: helpers.py:107:find_split_point:IndexError: string index out of range
release: Fedora release 14 (Laughlin)
time: 1294740835
uid: 501

backtrace
-----
helpers.py:107:find_split_point:IndexError: string index out of range

Traceback (most recent call last):
  File "/usr/bin/identicurse", line 9, in <module>
    load_entry_point('identicurse==0.6', 'console_scripts', 'identicurse')()
  File "/usr/lib/python2.7/site-packages/identicurse/__init__.py", line 89, in main
    IdentiCurse(additional_config)
  File "/usr/lib/python2.7/site-packages/identicurse/identicurse.py", line 244, in __init__
    curses.wrapper(self.initialise)
  File "/usr/lib/python2.7/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/site-packages/identicurse/identicurse.py", line 378, in initialise
    self.loop()
  File "/usr/lib/python2.7/site-packages/identicurse/identicurse.py", line 485, in loop
    self.parse_input(self.text_entry.edit())
  File "/usr/lib/python2.7/site-packages/identicurse/identicurse.py", line 1069, in parse_input
    self.display_current_tab()
  File "/usr/lib/python2.7/site-packages/identicurse/identicurse.py", line 399, in display_current_tab
    self.tabs[self.current_tab].display()
  File "/usr/lib/python2.7/site-packages/identicurse/tabbage.py", line 167, in display
    buffer = self.buffer.reflowed(maxx - 2)
  File "/usr/lib/python2.7/site-packages/identicurse/tabbage.py", line 63, in reflowed
    split_point = helpers.find_split_point(block[0], len(block[0]) - overlong_by + 1)
  File "/usr/lib/python2.7/site-packages/identicurse/helpers.py", line 107, in find_split_point
    if text[split_point-1] == " ":
IndexError: string index out of range

Local variables in innermost frame:
split_point: -1
width: 1
text: '.'

How to reproduce
-----
1. identicurse showed some exception and backtrace on the screen
2. pressed 'i'
3. started typing a message
4. pressed 'esc' to cancel
5. crash

Comment 1 Johan Vervloet 2011-01-11 10:15:30 UTC
Created attachment 472775 [details]
File: backtrace

Comment 2 Johan Vervloet 2011-01-11 10:25:15 UTC
I experimented a little, and it has to do with one of the dents on my timeline (http://identi.ca/johanv/all), when the terminal width is 80.  On a wider screen, there is no problem.

Here is what should be on the screen (width 81 instead of 80)



 


  1 * dickturpin                                            4m ago from Ping.fm
 I'm sure KDE on Windows has been around since 2005? http://ping.fm/Ii50Z and
 yet its still broken according to some posts!

  2   mossgarden                                              13m ago from pino
 apples and clementines <3

  3   johanvnl                                                13m ago from xmpp
 op zoek naar nieuwe vrijwilligers voor de Werkgroep Informatica van de !chiro.

  4   dickturpin                                           19m ago from Ping.fm
 I have re-subscribed to the Linux Action Show. I hate the sign up page by the
 way far too many choices takes a while to find the correct one

  5   rpcutts                                          28m ago from mustard [+]
 @richslxh interesting. Where I live, before "chav" was popularised such folk
 were referred to as "chores". I had always wondered why.

  6   jwildeboer                                          28m ago from pino [+]
 @glynmoody Will Muglia join/create another patent troll? Maybe Nokia needs
 more ex-softies? We will see ...

  7   jwildeboer                                          33m ago from pino [+]
 @glynmoody I honestly dislike this war rhetoric (the "troops") but it seems
 to be common ...

  8   rms                                              35m ago from Tricklepost
 Dehumanizing Prisoners http://ur1.ca/2t41r

  9   andyc                                                    34m ago from web
 My brother-in-law (the nice one) reassures me. House is high up although he's
 shifting stuff around in his office. CBD being evacuated.

 10   kletskous                                            36m ago from gwibber
 Julian Assange back in court today - follow it here: http://is.gd/kxRjT and
 here: http://is.gd/kxRpH #extradition #wikileaks

 11   kletskous                                            44m ago from gwibber
 Wikileaks Press Release: “WikiLeaks: treat incitement seriously or expect
 more Gabrielle Gifford killing sprees.” http://is.gd/kxPYW

 12   andyc                                                    50m ago from web
 Kingstonian won 2-0 last night to leapfrog into 2nd place. I was going to go
 along but got back from work too late.

 13   kletskous                                            57m ago from gwibber

Comment 3 Johan Vervloet 2011-01-11 15:39:01 UTC
I know how to reproduce.  You need a dent, which mentions a group at the right boundary of the screen, and this group should be followed by a full stop or an exclamation mark.

E.g. above, notice 3 caused the problem.  If you make the screen one character smaller, the group reference '!chiro' sticks to the right side, and the following full stop is at the first column of the following row.  This causes a crash.

Comment 4 Richard Fontana 2011-01-18 10:28:32 UTC
Package: identicurse-0.6.2-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
identicurse crashed immediately upon starting it up.

Comment 5 Steve Milner 2011-01-19 15:09:47 UTC
I believe this is fixed in 0.6.3 which includes the following fixes: 

http://bugzilla.identicurse.net/show_bug.cgi?id=1

http://bugzilla.identicurse.net/show_bug.cgi?id=2

This is currently in testing. Please give it a shot and let me know if it doesn't fix the issue.

Please also note the following from the developer:

    Yeah, the 0.6.3 package fixed a major issue where it wouldn't work for people upgrading from 0.5.

Comment 6 Fedora Update System 2011-01-19 15:14:29 UTC
identicurse-0.6.3-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/identicurse-0.6.3-1.fc14

Comment 7 Fedora Update System 2011-01-26 20:58:34 UTC
identicurse-0.6.3-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.