MulderWhite / wave-protocol

Automatically exported from code.google.com/p/wave-protocol
0 stars 0 forks source link

Random shiny when entering text into blip #257

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I can't reproduce this reliably. But in general you need to type chars very 
fast. Judging by the stack trace it is related to BucketRateLimiter.

Exception:

Token:  1302863774058
 index (49) must not be greater than size (48)
  Unknown.$fillInStackTrace (StackTraceCreator.java:147)
  Unknown.fillInStackTrace (StackTraceCreator.java:387)
  Unknown.IndexOutOfBoundsException_1 (Throwable.java:46)
  Unknown.checkPositionIndex (Preconditions.java:54)
  Unknown.$locate_0 (EvaluableOffsetList.java:532)
  Unknown.locate (MutableDocumentImpl.java:816)
  Unknown.getFirstLine (Paragraph.java:306)
  Unknown.traverse (Paragraph.java:376)
  Unknown.appliesEntirely (Paragraph.java:350)
  Unknown.update_0 (EditToolbar.java:195)
  Unknown.$execute_8 (EditToolbar.java:299)
  Unknown.execute_52 (BucketRateLimiter.java:93)
  Unknown.$workUnit (BrowserBackedScheduler.java:294)
  Unknown.$workAll (BrowserBackedScheduler.java:319)
  Unknown.$workSlice (BrowserBackedScheduler.java:367)
  Unknown.$run_2 (BrowserBackedScheduler.java:40)
  Unknown.run_13 (GwtSimpleTimer.java:46)
  Unknown.fire (Timer.java:141)
  Unknown.anonymous (Timer.java:60)
  Unknown.entry0 (Impl.java:214)
  Unknown.anonymous (Impl.java:57)

Original issue reported on code.google.com by vega113 on 15 Apr 2011 at 2:57

GoogleCodeExporter commented 9 years ago
I made a fast and dirty workaround for this issue. It doesn't prevent the 
exception but merely catches it and ignores. It seems to me that it's safe to 
ignore it, as the worse outcome is that paragraph button would fail to be 
rendered as toggled on/of.
Please review the workaround patch here: 
http://codereview.waveprotocol.org/575001/show

Original comment by vega113 on 18 Apr 2011 at 3:26