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

"Open profile on startup" not working on macOS 13.4.1 (perhaps macOS bug, perhaps Unison) #937

Open
flaschenge1st opened this issue Jun 13, 2023 · 12 comments
Labels
defect unison fails to meet its specification (but doesn't crash; see also "crash") effort-high issue is likely to require >20h of effort, perhaps much more feedback Information has been requested; may be closed in 30 days if not provided. impact-low low importance macOS specific to macOS wontfix maintainers choose not to work on this, but PR would still be considered

Comments

@flaschenge1st
Copy link

In options, i can check "Open Profile on startup", but the dropdown box is empty - none of my profiles is found.

So if I start Unison there's a list of profiles from which I have to choose (as expexted if the "Open profile on startup" is not checked...)

Running 2.53.3 (ocaml 4.14.1) on a Mac M2 with Venture 13.4.

@tleedjarv
Copy link
Contributor

Did this work for you before? If this is a regression then it may be related to a macOS version because uimac has not been changed in quite a while.

It would be a good to get a confirmation (from anyone) that this functionality used to work or still works for someone.

@gdt gdt added defect unison fails to meet its specification (but doesn't crash; see also "crash") macOS specific to macOS labels Jun 18, 2023
@gdt
Copy link
Collaborator

gdt commented Jun 18, 2023

Please read the reporting bugs wiki page. It's unclear how the binary you are running was built, if it's the gtk build or the mac native build.

@flaschenge1st
Copy link
Author

I'm sorry - answered via email, thought it should show up here...
Anyway, once again:

@tleedjarv:
It did work - although I cannot tell you in which version on which MacOS... )-:
Had it running on my (very) old iMac (late 2009) just until March, when my iMac died. Upgraded to the latest hardware, installed Unison.
As I wrote: I'm sorry, but I cannot say which version of Unison I used to use. I guess, I run High Sierra 10.13.x, but unsure about the sub-sub-version...

@gdt:
It's the mac build from the github release page (Unison-2.53.3-macos.app.tar.gz)

/Applications/Unison.app/Contents/MacOS/Unison -version
unison version 2.53.3 (ocaml 4.14.1)

Thank you for any help!

@tleedjarv
Copy link
Contributor

I don't have access to any macOS myself, so can't directly help but I can at least try help debugging the issue.

@flaschenge1st could you try a version you can download from https://github.com/tleedjarv/unison/suites/13741972879/artifacts/760772111 and see if it makes any difference?

@flaschenge1st
Copy link
Author

Thank you! Unfortunately: Exactly the same issue.

grafik

(the dropdown is empty!)
although there are profiles:
grafik

Is the version you linked in your last post the gtk version? I think that's the version I had running on my old machine (the GUI of the versions is similar but not the same. The one from your link looks exactly like my old one...).

@tleedjarv
Copy link
Contributor

No, this is the native mac version (it's the only one that has this functionality in the first place).

I've prepared a new debug build for you: https://github.com/tleedjarv/unison/suites/13788166276/artifacts/764443528
Could you try it and run it from the terminal? I'm expecting some debug output to be printed to the terminal. Please paste that output here.

@flaschenge1st
Copy link
Author

% ./Unison.app/Contents/MacOS/Unison
2023-06-22 20:17:29.589 Unison[5005:416000] awakeFromNib called
2023-06-22 20:17:29.589 Unison[5005:416000] initProfiles called
2023-06-22 20:17:29.589 Unison[5005:416000] dir = '/Users/oschuppe/Library/Application Support/Unison'
2023-06-22 20:17:29.589 Unison[5005:416000] initProfiles count = 10
2023-06-22 20:17:39.739 Unison[5005:416000] getProfiles called
2023-06-22 20:17:39.739 Unison[5005:416000] getProfiles called

first 4 lines are from startup, last 2 lines come from opening the settings window.

@tleedjarv
Copy link
Contributor

Thank you. It would really help to know which version of Unison you used to run. It seems that this may have been broken since all the way back starting with 2.48.3 (released in 2015(?)) or possibly since 2.51.2.

I have no experience at all with Xcode and objc but it seems to me that the code itself works fine, it's just the GUI that is broken. More specifically, the combobox seems to be disconnected from the code that should populate it. It requires someone with access to Xcode to fix this. I can't help with that.

@alanshutko (I'm just calling out blindly) perhaps you can help with this issue?

@flaschenge1st
Copy link
Author

Oh dear - I'm sorry! My old Mac is broken, but I do have a backup! Sorry, didn't think about that!

OK, so the version I used on my old mac is

> ./Unison.app/Contents/MacOS/Unison -version
2023-06-27 12:54:38.449 Unison[35186:481620] Calling nonGuiStartup
unison version 2.51.4 (ocaml 4.12.0)
grafik

Unfortunately, it shows exactly the same behaviour on the new mac. So this must be a bug in connection with the new MacOS. I found the old mac os version:

Old Mac OS version: 10.13.6 (Unison 2.51.4 is running fine)
New Mac os version: 13.4.1 (Unison 2.51.4 and 2.53.3 NOT auto-loading the profile at startup)

Thank you for your support!

@gdt gdt changed the title "Open profile on startup" not working (on Mac) with 2.53.3 "Open profile on startup" not working on macOS 13.4.1 Jun 27, 2023
@gdt gdt added effort-high issue is likely to require >20h of effort, perhaps much more impact-low low importance wontfix maintainers choose not to work on this, but PR would still be considered labels Jun 27, 2023
@gdt
Copy link
Collaborator

gdt commented Jun 27, 2023

I retitled the issue; it's of course not clear if this is a latent Unison bug or a macOS bug. It's going to take somebody with motivation and macOS to debug it. Intermediate reports between 10.13 and 13 are likely useful, but I suspect debugging on 13 is what is going to be necessary.

(Marked wontfix because no one who is actively maintaining uses the mac GUI. A fix is welcome of course; wontfix is just a clue that there is no reason to expect one to appear.)

@flaschenge1st
Copy link
Author

sorry to hear - but understandable! Once again: Thank you for your support and help!

@gdt gdt added the feedback Information has been requested; may be closed in 30 days if not provided. label Jun 10, 2024
@gdt
Copy link
Collaborator

gdt commented Jun 10, 2024

A reminder that this issue awaits testing by somebody who cares about macOS.

@gdt gdt changed the title "Open profile on startup" not working on macOS 13.4.1 "Open profile on startup" not working on macOS 13.4.1 (perhaps macOS bug, perhaps Unison) Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect unison fails to meet its specification (but doesn't crash; see also "crash") effort-high issue is likely to require >20h of effort, perhaps much more feedback Information has been requested; may be closed in 30 days if not provided. impact-low low importance macOS specific to macOS wontfix maintainers choose not to work on this, but PR would still be considered
Projects
None yet
Development

No branches or pull requests

3 participants