This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | [70cat] javax.swing.text.BadLocationException: Invalid offset=3689, docLen=3685 | ||
---|---|---|---|
Product: | editor | Reporter: | aldobrucale <aldobrucale> |
Component: | Painting & Printing | Assignee: | Miloslav Metelka <mmetelka> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 176895 |
Attachments: | stacktrace |
Description
aldobrucale
2011-02-21 17:49:45 UTC
Created attachment 106264 [details]
stacktrace
Unfortunately this indicates that views update in insertUpdate/removeUpdate did not update last view's end offset properly and so Rectangle rec2 = component.modelToView(view.getEndOffset() - 1); picks a wrong offset. Is this a reproducible problem or random? It happens randomly, but it does happen once in a while. I was undoing a long list of changes, keeping ctrl-z pressed: may be a threading problem? Is there any runtime flag I may set to facilitate debugging if it happens again? Yes, it was a race condition. I believe that the changes in issue 195432 should eliminate this problem as well so I mark it as duplicate. If the problem would persist even in 7.0 RC1 please reopen the issue. Thanks. *** This bug has been marked as a duplicate of bug 195432 *** |