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

[Bug]: Crash when using action "Fix import(s)" #950

Closed
2 tasks done
itsvks19 opened this issue Apr 17, 2023 · 0 comments
Closed
2 tasks done

[Bug]: Crash when using action "Fix import(s)" #950

itsvks19 opened this issue Apr 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@itsvks19
Copy link
Contributor

itsvks19 commented Apr 17, 2023

What happened?

AndroidIDE crashed when I clicked on the "Fix imports" action.

What's the expected behavior?

AndroidIDE should not have crashed.

What version of AndroidIDE you're using?

v2.4.0 (debug builds)

Relevant log output

AndroidIDE crash report
Manufacturer: OPPO
Device: CPH2495
ABI: arm64-v8a
SDK version: 33
App version: v2.4.1-beta.internal.1+branch.dev.commit.8446212.timestamp.20230414031403 (241)

 Stacktrace: 
java.lang.IllegalStateException: FragmentManager has been destroyed
	at androidx.fragment.app.FragmentManager.enqueueAction(FragmentManager.java:1646)
	at androidx.fragment.app.BackStackRecord.commitInternal(BackStackRecord.java:341)
	at androidx.fragment.app.BackStackRecord.commit(BackStackRecord.java:306)
	at androidx.fragment.app.DialogFragment.show(DialogFragment.java:262)
	at com.itsaky.androidide.lsp.IDELanguageClientImpl.performCodeAction(IDELanguageClientImpl.java:198)
	at com.itsaky.androidide.lsp.api.ILanguageClient.performCodeAction(ILanguageClient.java:64)
	at com.itsaky.androidide.lsp.java.actions.diagnostics.AutoFixImportsAction.performEdits(AutoFixImportsAction.kt:166)
	at com.itsaky.androidide.lsp.java.actions.diagnostics.AutoFixImportsAction.finalizeClassNames(AutoFixImportsAction.kt:109)
	at com.itsaky.androidide.lsp.java.actions.diagnostics.AutoFixImportsAction.finalizeClassNames$lambda$1(AutoFixImportsAction.kt:122)
	at com.itsaky.androidide.lsp.java.actions.diagnostics.AutoFixImportsAction.$r8$lambda$Tie2CZQwh3AeC60Q6PSNZSFTFBE(Unknown Source:0)
	at com.itsaky.androidide.lsp.java.actions.diagnostics.AutoFixImportsAction$$ExternalSyntheticLambda0.onClick(Unknown Source:10)
	at androidx.appcompat.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1068)
	at android.widget.AdapterView.performItemClick(AdapterView.java:352)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1209)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3226)
	at android.widget.AbsListView.onTouchUp(AbsListView.java:4214)
	at android.widget.AbsListView.onTouchEvent(AbsListView.java:3945)
	at android.view.View.dispatchTouchEvent(View.java:15121)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3164)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2832)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3170)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2846)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3170)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2846)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3170)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2846)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3170)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2846)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3170)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2846)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3170)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2846)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3170)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2846)
	at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:567)
	at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1918)
	at android.app.Dialog.dispatchTouchEvent(Dialog.java:960)
	at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:70)
	at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:515)
	at android.view.View.dispatchPointerEvent(View.java:15398)
	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6923)
	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6694)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6141)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6203)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6164)
	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6338)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6172)
	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6395)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6145)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6203)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6164)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6172)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6145)
	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:9307)
	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:9258)
	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:9207)
	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:9462)
	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:276)
	at android.os.MessageQueue.nativePollOnce(Native Method)
	at android.os.MessageQueue.next(MessageQueue.java:339)
	at android.os.Looper.loopOnce(Looper.java:186)
	at android.os.Looper.loop(Looper.java:351)
	at android.app.ActivityThread.main(ActivityThread.java:8373)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@itsvks19 itsvks19 added the bug Something isn't working label Apr 17, 2023
@itsaky itsaky closed this as completed in 30b3946 May 27, 2023
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