Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App seems stuck when adding a new package #80

Closed
infotexture opened this issue Mar 28, 2023 · 10 comments
Closed

App seems stuck when adding a new package #80

infotexture opened this issue Mar 28, 2023 · 10 comments
Assignees
Labels
Bug Something isn't working

Comments

@infotexture
Copy link

When installing a new package via the toolbar button, the Install packages dialog prompts you to search for formulae.

After choosing a cask in the search results, a message appears about building the dependency graph, and then the modal shrinks to a tiny square and the app seems stuck until force-quit.

Cork_stuck-installing-cask@2x

@buresdv
Copy link
Owner

buresdv commented Mar 28, 2023

Which cask was this?

@buresdv buresdv self-assigned this Mar 28, 2023
@buresdv buresdv added the Bug Something isn't working label Mar 28, 2023
@infotexture
Copy link
Author

Tried with several, for example https://formulae.brew.sh/cask/colorpicker-propicker

@buresdv
Copy link
Owner

buresdv commented Mar 28, 2023

What are some of the other ones that don't work? I tried it with colorpicker-propicker and it works, so I wanna try the other ones as well.
Video

@infotexture
Copy link
Author

Good to know it works on your side.

Dug deeper here and I think I've traced the issue to my local software firewall Little Snitch. It seems Cork did not have permission to access the cask location, and instead of displaying the usual connection request, it was probably waiting and thus appeared stuck.

I temporarily disabled the firewall and installation completed successfully, so it's not Cork's fault.

Closing…

@infotexture infotexture closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2023
@buresdv
Copy link
Owner

buresdv commented Apr 3, 2023

It's good to know that it worked in the end :) But I will still reopen this issue because the same thing happens when your internet connection is spotty. I'm on the train and I tried to download a package. It started, but then errored out because it lost connection to the internet.

It would be great if it showed an error so it's not stuck in that un-recoverable state.

@buresdv buresdv reopened this Apr 3, 2023
@buresdv
Copy link
Owner

buresdv commented Apr 3, 2023

I wanted to ask, do you know if it's possible to ask Little Snitch to make a network call? I wanted to send a little network request before the install process starts in order to trigger some sort of "Cork is trying to make a network connection. Allow? Yes/No" dialog, but I'm not sure if Little Snitch has any functionality like this, because I've never used it.

@infotexture
Copy link
Author

Little Snitch provides a way for developers to state in advance which connections their app requires.

This info is then shown in their Research Assistant dialog when prompting the user for permission to connect:

Software developers can describe the purpose of connections in a file within the app.
We call it the “Internet Access Policy” (IAP)

See their developer docs for details.

@buresdv
Copy link
Owner

buresdv commented Apr 6, 2023

Thank you, I will add it and when it's in, you can try it and tell me if it works as it should

@buresdv
Copy link
Owner

buresdv commented Aug 18, 2023

I have FINALLY discovered what this is about. This happens when you switch to another app while the installation process is going, and it seems to be a system bug, so it has nothing to do with Cork.

I have contacted Apple about it, let's see what they say.

@buresdv
Copy link
Owner

buresdv commented Feb 3, 2024

This specific problem (switching to a new window breaking the sheet) has been fixed in Sonoma.

@buresdv buresdv closed this as completed Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants