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 116174 - I18N: java.lang.ArrayIndexOutOfBoundsException happens very often during Japanese input
Summary: I18N: java.lang.ArrayIndexOutOfBoundsException happens very often during Japa...
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-09-20 15:36 UTC by Masaki Katakai
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log : stacktrace (6.10 KB, application/octet-stream)
2007-09-22 07:08 UTC, Masaki Katakai
Details
stack trace on 200709250000 (6.09 KB, application/octet-stream)
2007-09-26 00:15 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2007-09-20 15:36:50 UTC
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)
....
Comment 1 Vitezslav Stejskal 2007-09-21 13:01:59 UTC
Could you please attach the whole stacktrace or <userdir>/var/log/messages.log showing the stacktrace? Thanks
Comment 2 Masaki Katakai 2007-09-22 07:08:31 UTC
Created attachment 49283 [details]
messages.log : stacktrace
Comment 3 Vitezslav Stejskal 2007-09-24 14:38:07 UTC
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
Comment 4 Masaki Katakai 2007-09-26 00:15:52 UTC
Created attachment 49522 [details]
stack trace on 200709250000
Comment 5 Masaki Katakai 2007-09-26 00:18:29 UTC
Still reproducible for me on 200709250000 nightly and deadlock trunk build. Reopened.
Comment 6 Vitezslav Stejskal 2007-09-26 11:23:16 UTC
A deadlock? Could you please attach threaddump? Thanks
Comment 7 Masaki Katakai 2007-09-26 12:54:08 UTC
I meant I tried the hudson build of http://deadlock.netbeans.org/hudson/job/trunk/.
Comment 8 Vitezslav Stejskal 2007-09-27 11:25:48 UTC
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
Comment 9 Masaki Katakai 2007-10-02 05:04:44 UTC
Great! I could not see the issue on recent builds. Thank you!