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.

Bug 156490 - javax.swing.text.StateInvariantError: Can't render: 111,211
Summary: javax.swing.text.StateInvariantError: Can't render: 111,211
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Spellchecker (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL: http://statistics.netbeans.org/except...
Keywords:
: 157880 174424 181383 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-08 22:01 UTC by Exceptions Reporter
Modified: 2010-03-12 12:08 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 124374


Attachments
stacktrace (5.83 KB, text/plain)
2009-01-08 22:01 UTC, Exceptions Reporter
Details
stacktrace (6.22 KB, text/plain)
2009-01-16 17:07 UTC, Exceptions Reporter
Details
my ~/.netbeans/6.8m1/var/log (57.53 KB, application/x-gzip)
2009-09-17 15:21 UTC, olksy
Details
stacktrace (4.96 KB, text/plain)
2010-03-09 21:27 UTC, Torbjorn Norbye
Details
stacktrace (4.96 KB, text/plain)
2010-03-12 10:27 UTC, Tomas Stupka
Details
stacktrace (5.16 KB, text/plain)
2010-03-12 10:28 UTC, Tomas Stupka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-01-08 22:01:26 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Linux, 2.6.27-11-generic, amd64

User Comments:
bondolo: attempting to checkin a single file with subversion. The checkin comment text field was uneditable.

GUEST: About to commit a bunch of files from a two of projects to CVS when I click to edit the commit message, the commit message window locks up and is not editable. I can click cancel still to get out of that window.



Stacktrace: 
javax.swing.text.StateInvariantError: Can't render: 111,211
        at javax.swing.text.WrappedPlainView.drawLine(WrappedPlainView.java:109)
        at javax.swing.text.WrappedPlainView$WrappedLine.paint(WrappedPlainView.java:587)
        at javax.swing.text.BoxView.paintChild(BoxView.java:144)
        at javax.swing.text.BoxView.paint(BoxView.java:416)
        at javax.swing.text.WrappedPlainView.paint(WrappedPlainView.java:354)
        at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1422)
Comment 1 Exceptions Reporter 2009-01-08 22:01:32 UTC
Created attachment 75601 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-01-16 17:07:06 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05
OS: Linux, 2.6.18-8.el5, i386

User Comments: 
When I am trying to commit a file to my SVN repository, I got this error.

Stacktrace: 
javax.swing.text.StateInvariantError: Can't render: 92,102
        at javax.swing.text.WrappedPlainView.drawLine(WrappedPlainView.java:109)
        at javax.swing.text.WrappedPlainView$WrappedLine.paint(WrappedPlainView.java:587)
        at javax.swing.text.BoxView.paintChild(BoxView.java:144)
        at javax.swing.text.BoxView.paint(BoxView.java:416)
        at javax.swing.text.WrappedPlainView.paint(WrappedPlainView.java:354)
        at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1421)
Comment 3 Exceptions Reporter 2009-01-16 17:07:20 UTC
Created attachment 75912 [details]
stacktrace
Comment 4 Ondrej Vrabec 2009-03-19 14:15:24 UTC
*** Issue 157880 has been marked as a duplicate of this issue. ***
Comment 5 Ondrej Vrabec 2009-03-19 14:24:39 UTC
Problem seems to be caused by the spellchecker plugin. Versioning commit dialogs use a jtextarea to display a commit
message, that is line-wrapped (setLineWrap(true)).
When user selects multiple lines in the textarea and presses a button, an exception in the spellchecker module is thrown
(and thus causes the other exceptions).

As a workaround, either always select only one line or press 'del' and wait until the whole content is cleared.

So I am reassigning for evaluation
Comment 6 olksy 2009-09-17 15:20:20 UTC
I tried to commit to SVN and got that exception. 

Actually, if I edit commit message by simply typing some text, the exception does not arise. But it arises when I try to
paste some piece of text via Ctrl-V into commit message edit control.

If I try cancel exception message, the exception arises again and again, so I can neither exit IDE nor report this issue
with Report Problem automated form.

I had to deactivate spellchecker module and to make the problem gone away. Thanks for this hint.

I attach my ~/.netbeans/6.8m1/var/log
Comment 7 olksy 2009-09-17 15:21:48 UTC
Created attachment 87866 [details]
my ~/.netbeans/6.8m1/var/log
Comment 8 Ondrej Vrabec 2009-10-13 11:03:42 UTC
*** Issue 174424 has been marked as a duplicate of this issue. ***
Comment 9 Ondrej Vrabec 2010-03-01 23:13:35 UTC
*** Bug 181383 has been marked as a duplicate of this bug. ***
Comment 10 Torbjorn Norbye 2010-03-09 21:27:43 UTC
Created attachment 94951 [details]
stacktrace

Trying to edit checkin message
Comment 11 Tomas Stupka 2010-03-12 10:27:15 UTC
Created attachment 95102 [details]
stacktrace

1.) hg show status
2.) hit diff in versioning view 
3.) edite a file in a dif view, _did not_ save it
4.) hit commit from the diff view. Popup appeared if the changed file should be saved -> Save & commit => a wild cascade of exeptions was thrown
Comment 12 Tomas Stupka 2010-03-12 10:28:18 UTC
Created attachment 95103 [details]
stacktrace

well it also might be something else -> opened the commit dialog from the versionig view and exception was raised after removing the preset text in the msg area.
Comment 13 Tomas Stupka 2010-03-12 10:41:03 UTC
ignore the two previous reports - the exception was caused by the same action as described in "Comment #5 From ovrabec 2009-03-19 14:24:39 (-) [reply]"
Comment 14 Torbjorn Norbye 2010-03-12 10:56:35 UTC
This bug effectively makes the version control checkin support unusable -- everytime I enter a more than one line checkin message (which is pretty much always), then bringing it up next time causes the exception and I can't edit the message. I've had to check in from the command line recently.
Comment 15 Tomas Stupka 2010-03-12 11:01:27 UTC
a workaround which works for me is to click into the text area so that the text selection disappears and then removing the preset text via backspace (char after char)
Comment 16 Jan Lahoda 2010-03-12 11:37:48 UTC
I am looking into this.
Comment 17 Jan Lahoda 2010-03-12 12:08:21 UTC
I hope this will be sufficient:
http://hg.netbeans.org/jet-main/rev/7c2f633f274b

Sorry for the problems.