Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

IndexOfBoundsException #1874

Open
5 tasks done
GabrielDEV3 opened this issue Aug 11, 2024 · 0 comments
Open
5 tasks done

IndexOfBoundsException #1874

GabrielDEV3 opened this issue Aug 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GabrielDEV3
Copy link

Issue Checklist

  • I confirm that this issue is not a duplicate and hasn't been reported before.
  • I agree to follow the project's code of conduct.
  • I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • I understand that providing incomplete or inaccurate information may result in the issue being closed.
  • I agree to provide all requested details promptly for a comprehensive bug report.

Issue explanation

Estava corrigindo meu codigo, quando cliquei em uma classe sugerida e crashou

Expected behavior

Era pra inserir a classe.

Version name

Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 34
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : samsung
Device : SM-A146M

Download source

GitHub

Relevant log output

AndroidIDE Crash Report
Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b31
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 34
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : samsung
Device : SM-A146M

Stacktrace:
java.lang.IndexOutOfBoundsException: Index 21 out of bounds for length 21
	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
	at java.util.Objects.checkIndex(Objects.java:359)
	at java.util.ArrayList.get(ArrayList.java:434)
	at io.github.rosemoe.sora.widget.CodeEditor.binarySearchEndBlock(Unknown Source:29)
	at io.github.rosemoe.sora.widget.EditorRenderer.drawView(Unknown Source:2245)
	at io.github.rosemoe.sora.widget.CodeEditor.onDraw(Unknown Source:33)
	at android.view.View.draw(View.java:25177)
	at android.view.View.updateDisplayListIfDirty(View.java:24036)
	at android.view.View.draw(View.java:24907)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4780)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4538)
	at android.view.View.updateDisplayListIfDirty(View.java:24022)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4764)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4736)
	at android.view.View.updateDisplayListIfDirty(View.java:23982)
	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:768)
	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:774)
	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:872)
	at android.view.ViewRootImpl.draw(ViewRootImpl.java:6051)
	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:5706)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4795)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:3288)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:11344)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1689)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1698)
	at android.view.Choreographer.doCallbacks(Choreographer.java:1153)
	at android.view.Choreographer.doFrame(Choreographer.java:1079)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1646)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:230)
	at android.os.Looper.loop(Looper.java:319)
	at android.app.ActivityThread.main(ActivityThread.java:8919)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
@GabrielDEV3 GabrielDEV3 added the bug Something isn't working label Aug 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant