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

[Bug]: activity crashed #1604

Closed
2 tasks done
Tanzin01 opened this issue Jan 3, 2024 · 1 comment
Closed
2 tasks done

[Bug]: activity crashed #1604

Tanzin01 opened this issue Jan 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Tanzin01
Copy link

Tanzin01 commented Jan 3, 2024

What happened?

I went to test app, changed theme, came back. Now androidide started initilize project(likewhen you enter the first time except my opened files. We're opened). And a bit later , that error appeared and was told to file issue here

What's the expected behavior?

No crash

What version of AndroidIDE you're using?

v2.6.0 (debug builds)

Relevant log output

AndroidIDE Crash Report
Version : v2.7.0-beta (27001)
CI Build : true
Branch : main
Commit : 062d240e9
Variant : arm64-v8a (release)
Build type : OFFICIAL
SDK Version : 33
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : samsung
Device : SM-A145F

Stacktrace:
java.lang.IllegalStateException: Activity has been destroyed
	at com.itsaky.androidide.activities.editor.BaseEditorActivity.getBinding(Unknown Source:13)
	at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getEditorAtIndex(Unknown Source:0)
	at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getCurrentEditor(Unknown Source:47)
	at androidx.appcompat.widget.Toolbar$3.analyzeCurrentFile(Unknown Source:4)
	at androidx.appcompat.widget.Toolbar$3.onBuildSuccessful(Unknown Source:27)
	at com.itsaky.androidide.services.builder.GradleBuildService$wrap$1$onBuildFailed$1.invoke(Unknown Source:16)
	at com.itsaky.androidide.tasks.TaskExecutorKt$$ExternalSyntheticLambda1.run(Unknown Source:19)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8762)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Tanzin01 Tanzin01 added the bug Something isn't working label Jan 3, 2024
itsaky added a commit that referenced this issue Jan 5, 2024
@itsaky
Copy link
Member

itsaky commented Jan 14, 2024

Fixed in 97c760a.

@itsaky itsaky closed this as completed Jan 14, 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

2 participants