Option to restart the Xcode/Run-App backend

Once every 5-10 attempts of running my iOS app (on the simulator) through Fleet, it ends up in a “hung” mode where no matter how many times I'll “Stop” the app and retry to Run/Debug it → absolutely nothing will happen. It's broken and the only way I can get it to work again is by force killing Fleet + the Fleet Backend process.

This didn't use to happen in AppCode → there a “Stop” of the app would 100% of times work and resolve issues.

Bugs in execution/debugging iOS apps are very understandable, and will probably always happen to some extent, but my ask is not for a magical fix to them, but instead for there to be a pragmatic workaround to make this livable. Either a “restart Xcode backend” or a “force stop running” or an external loop checking for life and auto-killing whatever gets stuck, whatever makes sense.

This would make using Fleet for iOS development much more viable!

Thanks!

0
8 comments
Hello, 

If possible may you please share a bit more details about the hanging state. If possible may you please upload the logs here:
http://uploads.jetbrains.com
and share the generated id. 

Please tell if the disabling and enabling the "smart mode" solve the issue with hanging start?

Thank you
0

Hi Olga,

If possible may you please share a bit more details about the hanging state. If possible may you please upload the logs here:

Not sure what more can I share, it's hanging right now, I had Fleet open & working correctly yesterday, just opened the Mac today, tried to run my app (using the same run configuration that worked fine yesterday), and it's hanging. No output, in the build log pane.

I uploaded the logs, id: 2024_11_07_874We84zZ4oeK2kVTm69LW

Please tell if the disabling and enabling the "smart mode" solve the issue with hanging start?

I don't know what Smart Mode is, but when turning it off I don't have an option to run anything (all run configurations are disabled). When trying to “Force” it to run (Run > Rerun ‘MyApp’) i get this in the output:

Running the selected run configuration is not supported by the backend
Could not launch run task

So I don't think that's an option (for an Xcode run at least)?

 

Anyhow what I'm asking for as I said before is the ability to restart the backend. Even if whatever issue I'm facing is fixed it surely won't be “the one last bug”, backend hangs will 100% happen again. As a “pro” tool it makes sense to give us this lever.

0

Update: I guess the existence of Smart Mode gives me a workaround:

When the backend hangs, if I disable Smart Mode (it takes a little while), then re-enable it, it seems to fix (restart?) the backend. There are downsides however – it seems to start re-indexing the project…

0
Hello,

According to the thread dumps there are some freezes connected with swift support.
If possible can you please check if the issue is still reproduced for you with the latest version available:
https://www.jetbrains.com/fleet/download?
If yes, can you please share the fresh portion of logs.

Thank you 
0

Thanks Olga,

Updated 1.41.101 → 1.42.84

Let's see!

0
Thank you:) Let's see!
0

Update:

It happened 3 times already today ;_;

Uploaded logs: 2024_11_11_n9MWeXRYxqAL6EVpgQid8T
 

0
Hello, 

Thank you for providing the info!
Please follow the issue created for this case:
https://youtrack.jetbrains.com/issue/FL-30767/Freeze-at-EDT-waiting-for-swift-lexer

Thank you
0

Please sign in to leave a comment.