Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IndexOutOfBoundsException: len=-19 #1668

Closed
shenpan233 opened this issue Sep 11, 2022 · 3 comments
Closed

java.lang.IndexOutOfBoundsException: len=-19 #1668

shenpan233 opened this issue Sep 11, 2022 · 3 comments

Comments

@shenpan233
Copy link

Please describe what you did before the error occurred.
IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file!

  • Jadx version: 1.4.4
  • Java version: 18.0.2.1
  • Java VM: Oracle Corporation OpenJDK 64-Bit Server VM
  • Platform: Windows 10 (10.0 amd64)
  • Max heap size: 5560 MB
java.lang.IndexOutOfBoundsException: len=-19
	at java.desktop/sun.font.FontDesignMetrics.charsWidth(Unknown Source)
	at org.fife.ui.rsyntaxtextarea.TokenImpl.getWidthUpTo(TokenImpl.java:601)
	at org.fife.ui.rsyntaxtextarea.TokenImpl.getWidth(TokenImpl.java:570)
	at org.fife.ui.rsyntaxtextarea.TokenUtils.getSubTokenList(TokenUtils.java:122)
	at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.calculateLineCount(WrappedSyntaxView.java:1193)
	at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.getPreferredSpan(WrappedSyntaxView.java:1241)
	at java.desktop/javax.swing.text.View.getMinimumSpan(Unknown Source)
	at java.desktop/javax.swing.text.BoxView.calculateMajorAxisRequirements(Unknown Source)
	at java.desktop/javax.swing.text.BoxView.checkRequests(Unknown Source)
	at java.desktop/javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)
	at java.desktop/javax.swing.text.BoxView.layout(Unknown Source)
	at java.desktop/javax.swing.text.BoxView.setSize(Unknown Source)
	at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.setSize(WrappedSyntaxView.java:1023)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)
	at java.desktop/javax.swing.text.JTextComponent.modelToView(Unknown Source)
	at org.fife.ui.rtextarea.RTextAreaBase.possiblyUpdateCurrentLineHighlightLocation(RTextAreaBase.java:754)
	at org.fife.ui.rtextarea.RTextArea.fireCaretUpdate(RTextArea.java:602)
	at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.fireCaretUpdate(RSyntaxTextArea.java:874)
	at org.fife.ui.rtextarea.RTextAreaBase.processComponentEvent(RTextAreaBase.java:816)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

@shenpan233
Copy link
Author

I downloaded the newest JADX and then I exclubed some package in setting.After it analyzed the app,I try to attach app for debugging.At last it throw this error message.

@jpstotz
Copy link
Collaborator

jpstotz commented Sep 11, 2022

Seems to be the same problem as #1658. Have you changed Jadx configuration e.g. a different font or does your Windows use a special theme with a non-standard font?

@shenpan233
Copy link
Author

ohoh thx,I chanaged my theme in the past,I think it's the reason.

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

No branches or pull requests

2 participants