AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

Crash on Comment Block Code

Open craniodatecnologia opened this issue 1 year ago • 0 comments

Issue Checklist

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

Additional terms

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

Issue explanation

The app crashes on comment block code with /* */

Expected behavior

The expectation is that the app will not crash, and that it will allow you to create a comment block in the code.

Version name

2.7.1-beta (27102)

Download source

GitHub

Relevant log output

AndroidIDE Crash Report
Version : v2.7.1-beta (27102)
CI Build : true
Branch : dev
Commit : b093f746c
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 : Xiaomi
Device : 22111317PG

Stacktrace:
java.lang.OutOfMemoryError: Failed to allocate a 603979792 byte allocation with 25165824 free bytes and 174MB until OOM, target footprint 379191960, growth limit 536870912
	at java.util.Arrays.copyOf(Arrays.java:3578)
	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:177)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:753)
	at java.lang.StringBuilder.append(StringBuilder.java:257)
	at io.github.rosemoe.sora.text.ICUUtils.createIndent(Unknown Source:32)
	at io.github.rosemoe.sora.widget.CodeEditor.commitText(Unknown Source:556)
	at io.github.rosemoe.sora.widget.CodeEditor.onKeyDown(Unknown Source:1766)
	at android.view.KeyEvent.dispatch(KeyEvent.java:2934)
	at android.view.View.dispatchKeyEvent(View.java:15781)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1981)
	at com.android.internal.policy.DecorView.superDispatchKeyEvent(DecorView.java:565)
	at com.android.internal.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1898)
	at android.app.Activity.dispatchKeyEvent(Activity.java:4542)
	at androidx.activity.ComponentActivity.superDispatchKeyEvent(Unknown Source:5)
	at kotlin.ResultKt.dispatchKeyEvent(Unknown Source:10)
	at androidx.activity.ComponentActivity.dispatchKeyEvent(Unknown Source:26)
	at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(Unknown Source:22)
	at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(Unknown Source:19)
	at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:445)
	at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:7777)
	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7625)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:7013)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:7070)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:7036)
	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:7201)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:7044)
	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:7258)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:7017)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:7070)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:7036)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:7044)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:7017)
	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:10187)
	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:10138)
	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:10102)
	at android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl(ViewRootImpl.java:6769)
	at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:6626)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:224)
	at android.os.Looper.loop(Looper.java:318)
	at android.app.ActivityThread.main(ActivityThread.java:8770)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

craniodatecnologia avatar Sep 03 '24 23:09 craniodatecnologia