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

Crashes during start on M1 Mini 8gb, Ventura 13.2.1 #84

Closed
polkabrothers opened this issue Mar 31, 2023 · 15 comments
Closed

Crashes during start on M1 Mini 8gb, Ventura 13.2.1 #84

polkabrothers opened this issue Mar 31, 2023 · 15 comments
Assignees
Labels
Bug Something isn't working

Comments

@polkabrothers
Copy link

Installed through brew.

Cork starts up, i see the interface with some spinning circles for about a second and then it crashes and i git "Cork quit unexpectedly."

@buresdv
Copy link
Owner

buresdv commented Mar 31, 2023

Would you be able to run Cork through Xcode? That would help me tremendously with tracking down what went wrong.

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

Tried running compiling and running through Xcode. Same result.
I get 3 issues:

HelpButton

'controlShadowColor' was deprecated in macOS 11.0: Use a color that matches the semantics being used, such as separatorColor

'controlShadowColor' was deprecated in macOS 11.0: Use a color that matches the semantics being used, such as separatorColor

Install Package

Variable 'packageToInstall' was never used; consider replacing with '_' or removing it

I get this error when trying to run through Xcode:

Cork/Get Contents of Folder.swift:57: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “INSTALL_RECEIPT.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/opt/homebrew/Cellar/php/8.1.13/INSTALL_RECEIPT.json, NSUnderlyingError=0x6000007e84e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2023-03-31 14:05:07.144081+0200 Cork[29871:227244] Cork/Get Contents of Folder.swift:57: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “INSTALL_RECEIPT.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/opt/homebrew/Cellar/php/8.1.13/INSTALL_RECEIPT.json, NSUnderlyingError=0x6000007e84e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
(lldb)

@buresdv
Copy link
Owner

buresdv commented Mar 31, 2023

Can you try building from the branch install-receipt-missing-fix? I tried fixing it, so just confirm if I did it right.

@polkabrothers
Copy link
Author

No errors, starts without problems now.
Thanks for the quick fix!

@buresdv
Copy link
Owner

buresdv commented Mar 31, 2023

No problem 😊 Expect an update containing the fix soon

@buresdv buresdv closed this as completed Mar 31, 2023
@steveshi
Copy link

steveshi commented Apr 1, 2023

After pulling the update, the program still crashes.
截屏2023-04-01 12 03 13

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

buresdv commented Apr 2, 2023

@steveshi Has this crash happened to you in other previous versions? Because looking at the code, if Cork crashes at that step, something is seriously wrong with your Homebrew installation.

At that point, it looks through the folder that contains all the Formulae. And this crash can only happen only if your Formulae folder exists and is accessible, one of your packages is registered with Homebrew as working, but the package does not have any versions installed, which is impossible.

@steveshi
Copy link

steveshi commented Apr 3, 2023

Since building version 0.6, it has been crashing constantly.

@steveshi
Copy link

steveshi commented Apr 3, 2023

But versions 0.5 and earlier work normally without crashing.

@buresdv
Copy link
Owner

buresdv commented Apr 3, 2023

I suppose that's when I switched from Homebrew's extremely slow system to my own custom system, which checks for more problems than Homebrew.

Anyway, how many installed packages do you have installed? If it's not too many, you could have a look through the folder /opt/homebrew/Cellar (Apple Sillicon) or /usr/local/Cellar (Intel) to see if there are any folders that don't have any sub-folders in them (every folder in that Cellar folder should have at least one sub-folder).

If there are no folders that have any sub-folders, it's something different. It would be really useful to know to know what I'm supposed to fix.

@steveshi
Copy link

steveshi commented Apr 3, 2023

I found an empty folder, and after deleting it the problem was solved. Thank you.

@buresdv
Copy link
Owner

buresdv commented Apr 3, 2023

No problem 😊 I will create an issue that will add this checking into Cork and offer to fix it for you, so this doesn't happen in the future.

@buresdv
Copy link
Owner

buresdv commented Apr 4, 2023

@steveshi I have created an issue for this, you can follow its progress here: #86

@buresdv buresdv closed this as completed Apr 4, 2023
@buresdv
Copy link
Owner

buresdv commented Apr 4, 2023

@steveshi Your problem has been fixed and a new version that includes the automatic fixing of this problem is out 😉

https://elk.zone/mstdn.social/@davidbures/110140730430120957
https://elk.zone/mstdn.social/@davidbures/110142600790912240

@steveshi
Copy link

steveshi commented Apr 5, 2023

@buresdv I have built the latest version and tested it. The issue had been resolved. Thank you.

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

3 participants