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.
Product Version: NetBeans IDE Dev (Build 200709200000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb) I often see java.lang.ArrayIndexOutOfBoundsException when I input Japanese characters into editor by using IME. I can not find the exact steps to reproduce but it happens very often. I can not see this error when I use Beta1, also when I input ascii characters without IME. java.lang.ArrayIndexOutOfBoundsException: 8 at org.netbeans.editor.MarkVector.getMark(MarkVector.java:112) at org.netbeans.editor.DrawLayerFactory.getFoldedMark(DrawLayerFactory.java:857) at org.netbeans.editor.DrawLayerFactory.access$000(DrawLayerFactory.java:41) at org.netbeans.editor.DrawLayerFactory$AnnotationLayer.isActive(DrawLayerFactory.java:757) at org.netbeans.editor.DrawEngine.drawArea(DrawEngine.java:844) at org.netbeans.editor.DrawEngine.drawInternal(DrawEngine.java:1125) at org.netbeans.editor.DrawEngine.draw(DrawEngine.java:1026) ....
Could you please attach the whole stacktrace or <userdir>/var/log/messages.log showing the stacktrace? Thanks
Created attachment 49283 [details] messages.log : stacktrace
Hopefully fixed. The synchronization of document marks was not correct. Could you please check that it's working now? Thanks Checking in DrawLayerFactory.java; /cvs/editor/libsrc/org/netbeans/editor/DrawLayerFactory.java,v <-- DrawLayerFactory.java new revision: 1.55; previous revision: 1.54 done Checking in BaseDocument.java; /cvs/editor/libsrc/org/netbeans/editor/BaseDocument.java,v <-- BaseDocument.java new revision: 1.148; previous revision: 1.147 done Checking in DrawEngine.java; /cvs/editor/libsrc/org/netbeans/editor/DrawEngine.java,v <-- DrawEngine.java new revision: 1.58; previous revision: 1.57 done Checking in MarkVector.java; /cvs/editor/libsrc/org/netbeans/editor/MarkVector.java,v <-- MarkVector.java new revision: 1.8; previous revision: 1.7 done Checking in Mark.java; /cvs/editor/libsrc/org/netbeans/editor/Mark.java,v <-- Mark.java new revision: 1.14; previous revision: 1.13 done
Created attachment 49522 [details] stack trace on 200709250000
Still reproducible for me on 200709250000 nightly and deadlock trunk build. Reopened.
A deadlock? Could you please attach threaddump? Thanks
I meant I tried the hudson build of http://deadlock.netbeans.org/hudson/job/trunk/.
Another attempt. This time I checked the fix on our japanese Solaris machine and the exception seemed to go away. Please try a newer dev build. Checking in DrawLayerFactory.java; /cvs/editor/libsrc/org/netbeans/editor/DrawLayerFactory.java,v <-- DrawLayerFactory.java new revision: 1.56; previous revision: 1.55 done Checking in MultiMark.java; /cvs/editor/libsrc/org/netbeans/editor/MultiMark.java,v <-- MultiMark.java new revision: 1.7; previous revision: 1.6 done
Great! I could not see the issue on recent builds. Thank you!