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

[Bug]: IDE not working after performing the "close all" action twice #1549

Closed
2 tasks done
Rafael2616 opened this issue Dec 12, 2023 · 0 comments
Closed
2 tasks done
Labels
bug Something isn't working
Milestone

Comments

@Rafael2616
Copy link
Contributor

Rafael2616 commented Dec 12, 2023

What happened?

When you click on the "close all" button twice instead of the screen appearing "Android IDE swipe to left .. etc.." This shows a different empty screen.
If I try to open the same file that was open when performing this action, the file simply doesn't appear.
In the video I do this with the build.gradle.kts file"
It's as if the file is implicitly open but not loaded

Video:

VID-20231212-WA0002.mp4

What's the expected behavior?

Close all files property

What version of AndroidIDE you're using?

v2.6.0 (debug builds)

Relevant log output

I caught these errors form Dump logs ,although it occurred during project initialization, it also occurs after

12-12 12:52:43.919  6457  6457 E EditorActivity:  Unable to close file at index:  0 
12-12 12:52:43.919  6457  7767 E EditorActivity:  An error occurred initializing the project with Tooling API 
12-12 12:52:43.919  6457  7767 E EditorActivity: java.util.concurrent.CancellationException
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at java.util.concurrent.CompletableFuture.cancel(CompletableFuture.java:2290)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at com.itsaky.androidide.activities.editor.BaseEditorActivity.onDestroy(Unknown Source:65)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.Activity.performDestroy(Activity.java:7418)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1307)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4629)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4663)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:39)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1864)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.os.Handler.dispatchMessage(Handler.java:106)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.os.Looper.loop(Looper.java:205)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at android.app.ActivityThread.main(ActivityThread.java:6993)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at java.lang.reflect.Method.invoke(Native Method)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-12 12:52:43.919  6457  7767 E EditorActivity: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:884)
12-12 12:52:43.919  6457  7767 E EditorActivity: 
12-12 12:52:44.061  6457  6457 I GradleBuildService:  Service is being destroyed.  Dismissing the shown notification... 
12-12 12:52:44.062  6457  6457 I GradleBuildService:  Shutting down Tooling API server... 
12-12 12:52:44.065  6457  7876 I ToolingApiServer:  ToolingApiServerImpl       Shutting down Tooling API Server...  
12-12 12:52:45.102  6457  6457 E GradleBuildService:  Failed to shutdown Tooling API server 
12-12 12:52:45.102  6457  6457 E GradleBuildService: java.util.concurrent.TimeoutException
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1811)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1941)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at com.itsaky.androidide.services.builder.GradleBuildService.onDestroy(Unknown Source:70)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at android.app.ActivityThread.handleStopService(ActivityThread.java:3862)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at android.app.ActivityThread.access$1700(ActivityThread.java:208)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1733)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at android.os.Handler.dispatchMessage(Handler.java:106)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at android.os.Looper.loop(Looper.java:205)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at android.app.ActivityThread.main(ActivityThread.java:6993)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at java.lang.reflect.Method.invoke(Native Method)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:884)
12-12 12:52:45.102  6457  6457 E GradleBuildService: 
12-12 12:52:45.103  6457  6457 D GradleBuildService:  Cancelling tooling server runner... 
12-12 12:52:45.104  6457  6457 D GradleBuildService:  Cancelling tooling server output reader job... 
12-12 12:52:45.934  6457  6457 W ActivityThread:

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Rafael2616 Rafael2616 added the bug Something isn't working label Dec 12, 2023
@itsaky itsaky added this to the v2.7.0-beta milestone Dec 16, 2023
@itsaky itsaky closed this as completed in 7aa4a8f Dec 16, 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

2 participants