fork-dev / Tracker

Bug and issue tracker for Fork for Mac
512 stars 12 forks source link

Fork App Cannot Open on Mac! #2208

Open 1159148169 opened 2 months ago

1159148169 commented 2 months ago

I updated the Fork App today. After the update, whenever I opened the App, it would crash. So I deleted the App and reinstalled it. After the reinstallation, the App could not be opened. When I clicked it, it started jumping up and down on the Mac dock until it timed out. What is the reason? I have tried multiple Fork versions, but none of them can be opened after installation.

1159148169 commented 2 months ago

My mac version is 14.5

DanPristupov commented 2 months ago

So, all Fork versions stopped working for you today?

Try to delete all settings. Open terminal and run defaults delete com.DanPristupov.Fork

1159148169 commented 2 months ago

@DanPristupov Thank you very much, I tried the method you said, but unfortunately it doesn't work, the Fork App still can't be opened.

DanPristupov commented 2 months ago

Did you update macOS, may be?

Try to open command line and run git status. It's possible that you switched Fork to the system git and now must confirm Apple's EULA.

DanPristupov commented 2 months ago

Did you try to reboot?

DanPristupov commented 2 months ago

Just to be sure:

  1. Close all Fork instances.
  2. Open terminal and run defaults delete com.DanPristupov.Fork.
  3. Delete ~/Library/Application Support/com.DanPristupov.Fork

Download https://cdn.fork.dev/mac/Fork-2.46.2.dmg and try to start the application again.

1159148169 commented 2 months ago

I uninstalled Fork, then restarted my mac, then executed the commands you provided in sequence, and finally installed a new Fork, but it still cannot be opened. I haven't upgraded the system yet, and I also tried to execute the git status command, but it still doesn't work.

DanPristupov commented 2 months ago

That's weird.

Can you check if the log file has any errors? The log is located at ~/Library/Logs/Fork.log

ht-kobayashi-hideki commented 2 months ago

I'm on a Mac too, and today I updated Fork. Now, similarly, after opening Fork and interacting with it for a bit, it crashes immediately. This is troubling me.

1159148169 commented 2 months ago

This is my log:

πŸ”·> XCGLogger writing log to: file:///Users/shifeng/Library/Logs/Fork.log πŸ”·[AppDelegate.swift:392] > β–„β–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–„ β–ˆβ–„β–„β–„β–„ β–ˆ β–ˆβ–€ β–ˆβ–€ β–€ β–ˆ β–ˆ β–ˆ β–„β–€ β–ˆβ–„β–ˆ Fork 2.46 β–ˆβ–€β–€ β–ˆ β–ˆ β–ˆβ–€β–€β–Œ β–ˆβ–€β–„ Git: internal β–ˆ β–€β–ˆβ–ˆβ–ˆβ–ˆ β–ˆ β–ˆ β–ˆ β–ˆ Update Channel: develop β–ˆ β–ˆ β–ˆ β–€ β–€ β–€ https://fork.dev πŸ”·[WindowManager.swift:266] > Restore workspace 'Work' with 1 windows and 8 tabs ⚠️[RepositoryReferences.swift:68] > Cannot parse reference refs/stash πŸ”·[RefreshRepositoryCommand.swift:198] > Refresh 'loktar' data. Updated

1159148169 commented 2 months ago

I feel like some configuration was executed during the boot process and it finally got stuck. Is there any way I can completely delete the fork configuration on my Mac? It's as if fork was never installed on my device?

DanPristupov commented 2 months ago

@1159148169

Fork 2.46

Please use Fork 2.46.2 https://cdn.fork.dev/mac/Fork-2.46.2.dmg

Is there any way I can completely delete the fork configuration on my Mac? It's as if fork was never installed on my device?

https://github.com/fork-dev/Tracker/issues/2208#issuecomment-2367825527

@ht-kobayashi-hideki : please try https://cdn.fork.dev/mac/Fork-2.46.2.dmg

1159148169 commented 2 months ago

I am quite certain that I am using version 2.46.2 of Fork, but I have tried again and still cannot open it. My log modification date is yesterday. Today, I have tried to open Fork many times, but the log has not been modified. Therefore, I suspect that the process of Fork not being able to open was not written into the log. I just deleted the local log and tried to open Fork again, but it still cannot be opened and no local log has been generated.

DanPristupov commented 2 months ago

OK, let me summarize.

  1. Starting yesterday Fork doesn't start anymore.
  2. It doesn't crash, it just hangs.
  3. You tried to delete all Fork settings, like I said: https://github.com/fork-dev/Tracker/issues/2208#issuecomment-2367825527
  4. Even old versions of Fork do not work (for example 2.44.6 https://cdn.fork.dev/mac/Fork-2.44.6.dmg).
  5. You tried to run a git command (for example git status) in the command line and they worked successfully.
  6. You tried to restart the computer.

Is everything correct so far?

1159148169 commented 2 months ago

Basically correct, yesterday Fork crashed and after uninstalling and reinstalling, it couldn't be opened. I can only use SourceTree as a substitute now, but SourceTree is difficult to use.

DanPristupov commented 2 months ago

OK, please try the following:

  1. Start Fork and let it 'jump' in the dock.
  2. Open Activity Monitor
  3. Select Fork process and make Sample (Click on ..., select 'Sample Process', wait and then press 'Save').
  4. Send the sample file to support@fork.dev
1159148169 commented 2 months ago

I have send email, please check, thx!

DanPristupov commented 2 months ago

Thank you. The process doesn't even start. There is no call stack.

I think it's a problem with your computer, but I'm not sure which one. Try to update macOS.

1159148169 commented 2 months ago

Okay, I'll try again. Thank you for helping me for so long.

1159148169 commented 1 month ago

I found that after I completely uninstalled Fork and deleted all caches and configuration files, the reinstall should be a brand new Fork, but after the installation was complete, I opened it again, when Fork jumped up and down in the Dock bar, I right-clicked Fork, and I could still see some of my previous repositories. I suspect that some configurations have not been deleted, but I don’t know where these configurations are?

1159148169 commented 1 month ago
ζˆͺ屏2024-09-29 18 04 08
DanPristupov commented 1 month ago

This list is stored automatically. Fork doesn't have code which handles that. I suppose, macOS stores it in UserDefaults. Run defaults delete com.DanPristupov.Fork to clear it.

1159148169 commented 1 month ago

defaults delete com.DanPristupov.Fork has no effect. This list cannot be deleted, very strange, 😭

DanPristupov commented 1 month ago

https://apple.stackexchange.com/a/464864

ls ~/Library/Application\ Support/com.apple.sharedfilelist/* These files store the recent documents per application. They appear to be encoded by NSCoder and written as a Binary Property List files. Passing a file to the file command confirms the base format of Apple binary property list.

So, for Fork this list must be stored at ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.danpristupov.fork.sfl3