Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

ArrayIndexOutOfBounds on loading index #48

Closed
tnyblom opened this issue Jan 19, 2016 · 9 comments
Closed

ArrayIndexOutOfBounds on loading index #48

tnyblom opened this issue Jan 19, 2016 · 9 comments

Comments

@tnyblom
Copy link

tnyblom commented Jan 19, 2016

Hi,

When I try to open an index I get the following stacktrace and the UI is in a funky state (some buttons work but most doesn't and most of the UI isn't updated).

Running on an openSUSE Tumbleweed using

$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
$ ./luke.sh 
Unable to find the LUKE_PATH environnement variable...
Assuming you're running from the root folder of luke...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/tnyblom/code/luke/target/luke-with-deps.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/tnyblom/code/luke/target/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -31981568
    at sun.font.FileFontStrike.getCachedGlyphPtr(FileFontStrike.java:472)
    at sun.font.FileFontStrike.getSlot0GlyphImagePtrs(FileFontStrike.java:438)
    at sun.font.CompositeStrike.getGlyphImagePtrs(CompositeStrike.java:115)
    at sun.font.GlyphList.mapChars(GlyphList.java:272)
    at sun.font.GlyphList.setFromString(GlyphList.java:244)
    at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:71)
    at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2928)
    at thinlet.Thinlet.paint(Thinlet.java:2736)
    at thinlet.Thinlet.paint(Thinlet.java:2420)
    at thinlet.Thinlet.paintScroll(Thinlet.java:2243)
    at thinlet.Thinlet.paint(Thinlet.java:1907)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paint(Thinlet.java:1903)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paint(Thinlet.java:1764)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paintReverse(Thinlet.java:2025)
    at thinlet.Thinlet.paint(Thinlet.java:1830)
    at thinlet.Thinlet.paint(Thinlet.java:1573)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
    at java.awt.Container.paint(Container.java:1975)
    at java.awt.Window.paint(Window.java:3912)
    at thinlet.FrameLauncher.paint(FrameLauncher.java:101)
    at thinlet.FrameLauncher.update(FrameLauncher.java:87)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:255)
    at sun.awt.X11.XRepaintArea.updateComponent(XRepaintArea.java:51)
    at sun.awt.RepaintArea.paint(RepaintArea.java:232)
    at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:584)
    at java.awt.Component.dispatchEventImpl(Component.java:4967)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Window.dispatchEventImpl(Window.java:2750)
    at java.awt.Component.dispatchEvent(Component.java:4713)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -31981568
    at sun.font.FileFontStrike.getCachedGlyphPtr(FileFontStrike.java:472)
    at sun.font.FileFontStrike.getSlot0GlyphImagePtrs(FileFontStrike.java:438)
    at sun.font.CompositeStrike.getGlyphImagePtrs(CompositeStrike.java:115)
    at sun.font.GlyphList.mapChars(GlyphList.java:272)
    at sun.font.GlyphList.setFromString(GlyphList.java:244)
    at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:71)
    at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2928)
    at thinlet.Thinlet.paint(Thinlet.java:2736)
    at thinlet.Thinlet.paint(Thinlet.java:2420)
    at thinlet.Thinlet.paintScroll(Thinlet.java:2243)
    at thinlet.Thinlet.paint(Thinlet.java:1907)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paint(Thinlet.java:1903)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paint(Thinlet.java:1764)
    at thinlet.Thinlet.paint(Thinlet.java:1825)
    at thinlet.Thinlet.paintReverse(Thinlet.java:2025)
    at thinlet.Thinlet.paint(Thinlet.java:1830)
    at thinlet.Thinlet.paint(Thinlet.java:1573)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
    at java.awt.Container.paint(Container.java:1975)
    at java.awt.Window.paint(Window.java:3912)
    at thinlet.FrameLauncher.paint(FrameLauncher.java:101)
    at thinlet.FrameLauncher.update(FrameLauncher.java:87)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:255)
    at sun.awt.X11.XRepaintArea.updateComponent(XRepaintArea.java:51)
    at sun.awt.RepaintArea.paint(RepaintArea.java:232)
    at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:584)
    at java.awt.Component.dispatchEventImpl(Component.java:4967)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Window.dispatchEventImpl(Window.java:2750)
    at java.awt.Component.dispatchEvent(Component.java:4713)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
@DmitryKey
Copy link
Owner

Hi,
Could you try a pivot based version by any chance? https://github.com/DmitryKey/luke/releases/tag/pivot-luke-5.2.1 The reason being, that the Thinlet UI might not support openSUSE Tumbleweed (and I don't have it around to test myself).

@tnyblom
Copy link
Author

tnyblom commented Jan 21, 2016

Hi,

It looks like this version should work but I cannot really confirm as I'm unable to open my index due to:

org.apache.lucene.index.IndexFormatTooNewException: Format version is not supported (resource BufferedChecksumIndexInput(MMapIndexInput(path="/tmp/golem-search/golem.common.messaging.dataobjects.Result/segments_4h"))): 6 (needs to be between 0 and 5)

@DmitryKey
Copy link
Owner

what lucene version you are using?

@tnyblom
Copy link
Author

tnyblom commented Feb 2, 2016

Hi,

I'm using hibernate-search-5.5.0 and as far as I can tell that uses Lucene 5.3.0

/Regards

DmitryKey added a commit that referenced this issue Feb 14, 2016
DmitryKey added a commit that referenced this issue Feb 14, 2016
@DmitryKey
Copy link
Owner

@tnyblom I have just released the version for lucene 5.3.0. Try it out: https://github.com/DmitryKey/luke/releases/tag/pivot-luke-5.3.0

@mocobeta
Copy link
Collaborator

Thank you @DmitryKey for the release of pivot version. I will catch up Lucene 5.4 and master branch.

@DmitryKey
Copy link
Owner

@mocobeta you are welcome and thanks for taking care of 5.4.

@tnyblom
Copy link
Author

tnyblom commented Feb 17, 2016

@DmitryKey, @mocobeta Thanks!
It works as expected now!

@tnyblom tnyblom closed this as completed Feb 17, 2016
@DmitryKey
Copy link
Owner

@tnyblom glad it helped!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants