Skip to content

Crash and freeze on build #1367

@KonerDev

Description

@KonerDev

During the execution of the "assembleDebug" task, the user interface frequently stutters and freezes. After a while, it freezes completely and eventually crashes.

The crash screen is blank and no stacktrace is shown. In the idelog.txt file I found this exception:

java.lang.OutOfMemoryError: Failed to allocate a 40 byte allocation with 4065792 free bytes and 3970KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
	at java.lang.ref.FinalizerReference.add(FinalizerReference.java:61)
	at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:1272)
	at android.content.res.ResourcesImpl.loadXmlResourceParser(ResourcesImpl.java:1407)
	at android.content.res.Resources.loadXmlResourceParser(Resources.java:2619)
	at android.content.res.Resources.loadXmlResourceParser(Resources.java:2595)
	at android.content.res.Resources.getAnimation(Resources.java:1334)
	at android.view.animation.AnimationUtils.loadInterpolator(AnimationUtils.java:441)
	at com.android.internal.policy.DecorView.<init>(DecorView.java:503)
	at com.android.internal.policy.PhoneWindow.generateDecor(PhoneWindow.java:2574)
	at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:3074)
	at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2324)
	at androidx.activity.EdgeToEdge.enable(SourceFile:3)
	at com.itsaky.androidide.utils.EdgeToEdgeUtils.applyEdgeToEdge(Unknown Source:0)
	at com.itsaky.androidide.app.EdgeToEdgeIDEActivity.applyEdgeToEdge(Unknown Source:35)
	at com.itsaky.androidide.app.EdgeToEdgeIDEActivity.onCreate(SourceFile:1)
	at com.itsaky.androidide.activities.MainActivity.onCreate(Unknown Source:0)
	at android.app.Activity.performCreate(Activity.java:9363)
	at android.app.Activity.performCreate(Activity.java:9332)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1526)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4440)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4689)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:112)
	at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:174)
	at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:109)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:81)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2899)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loopOnce(Looper.java:257)
	at android.os.Looper.loop(Looper.java:342)
	at com.itsaky.androidide.app.CredentialProtectedApplicationLoader.installPluginCrashLooperGuard$lambda$0(Unknown Source:0)
	at com.itsaky.androidide.app.CredentialProtectedApplicationLoader.$r8$lambda$o4KQZd6K2NtRhir9kivKIce16xM(Unknown Source:0)
	at com.itsaky.androidide.app.CredentialProtectedApplicationLoader$$ExternalSyntheticLambda1.run(Unknown Source:0)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:257)
	at android.os.Looper.loop(Looper.java:342)
	at android.app.ActivityThread.main(ActivityThread.java:9638)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)

When manually running the gradlew build from the console (from the home screen without opening the project in the app) the build doesnt crash.

That's really unfortunate. I've always enjoyed using this app. I hope you can resolve this issue soon. Please let me know if you need any further information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions