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

Fatal error uncaught exception after selecting default profile #1058

Open
p2635 opened this issue Sep 26, 2024 · 5 comments
Open

Fatal error uncaught exception after selecting default profile #1058

p2635 opened this issue Sep 26, 2024 · 5 comments
Labels
crash unison crashes (a specific kind of defect; use crash when matches) feedback Information has been requested; may be closed in 30 days if not provided. macOS specific to macOS

Comments

@p2635
Copy link

p2635 commented Sep 26, 2024

Context

Hi all, I came to know unison from lra/mackup#1924, because I was exploring ways to backup any important application configurations that I use daily. My needs are simple, they can be configs such as vscode settings, slack preferences etc. Your generic stuff basically. I am still learning how to do this stuff for the first time.

Problem

It's my first time trying to use unison, but unfortunately I get this error. Let me know if I can somehow get you more logs.

Environment

  • Build: macos unison v2.53.5
  • OS: macos 14.7

Steps to reproduce:

  1. Launch unison the first time
  2. Select the default profile by double clicking it
image

Actual Results
image

I can consistently reproduce this bug.

Logs

2024-09-26 20:35:49.614 Unison[41819:9976841] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Preferences:
ui = graphic
listen =
socket =
server = false
prefsman =
prefsdocs = false
doc =
version = false
i = false
color = default
silent = false
dumbtty = false
testserver = false
showprev = false
selftest = false
confirmmerge = false
retry = 0
repeat =
contactquietly = false
key =
label =
expert = false
height = 15
auto = false
maxthreads = 0
maxsizethreshold = -1
prefer =
force =
sortnewfirst = false
sortbysize = false
keeptempfilesaftermerge = false
diff = diff -u OLDER NEWER
copyonconflict = false
backupdir =
maxbackups = 2
backups = false
backupsuffix =
backupprefix = .bak.$VERSION.
backuploc = central
copymax = 1
copythreshold = -1
copyprogrest = rsync --partial --append-verify --compress
copyprog = rsync --partial --inplace --compress
rsync = true
fastcheck = default
ignorelocks = false
dumparchives = false
showarchive = false
rootsName =
ignorearchives = false
fastercheckUNSAFE = false
fat = false
allHostsAreRunningWindows = false
someHostIsRunningWindows = false
confirmbigdel = true
batch = false
killserver = false
halfduplex = false
stream = true
addversionno = false
servercmd =
sshargs =
sshcmd = ssh
xferbycopying = true
clientHostName = Philip-Wong
ignoreinodenumbers = false
links-aux = true
links = default
acl = false
xattrignore = Regex !(security|trusted)[.].*
xattrignore = Path !system.posix_acl_*
xattrs = false
times = false
group = false
owner = false
numericids = false
dontchmod = false
perms = 1023
watch = false
rsrc-aux = false
rsrc = default
maxerrors = 1
unicodeCS = false
unicodeEnc = false
unicode = default
someHostIsInsensitive = false
ignorecase = default
timers = false
terse = false
logfile = unison.log
log = true
debugtimes = false
debug = all
addprefsto =
[globals] Installing roots...[features] Supported features:
  - Sync: ACL
  - Sync: xattr
[features] Enabled features:
  - Sync: ACL
  - Sync: xattr
Uncaught exception (please report a bug): File "/Users/runner/work/unison/unison/src/globals.ml", line 109, characters 9-15: Assertion failed
@p2635
Copy link
Author

p2635 commented Sep 26, 2024

Side question: I also noticed the brew version of unison has no gui, is that right? I have to always manually download the release to get the gui version.

@gdt
Copy link
Collaborator

gdt commented Sep 26, 2024

Looks likely a legit bug for the tracker, but this is for bona fide bugs only, not help. Please read

and address brew questions to brew.

@gdt
Copy link
Collaborator

gdt commented Sep 26, 2024

Please read the bugs wiki page and:

  • be clear on which ocaml version you are using (and make it not be 5.x)
  • set up to build from source if you can
  • download release artifacts if you can't
  • test with the command line
  • read the sources that correspond to your binary and see what is on that line
  • set up your unison.prefs to work and then try the GUI

@gdt gdt added crash unison crashes (a specific kind of defect; use crash when matches) feedback Information has been requested; may be closed in 30 days if not provided. macOS specific to macOS labels Sep 26, 2024
@tleedjarv
Copy link
Contributor

I can't test or work on the Mac-native GUI, but it seems that the error is caused by the sync roots being unspecified. Normally, you'd get a proper error/usage message for this but it seems that the Mac-native GUI skips this validation.

In other words, you shouldn't use the default profile (create another one), alternatively you should add the sync roots into the default profile configuration.

You could also try the GTK GUI (what's called unison-gui in the release package), which should run on macOS (I guess you'd need to install GTK via brew).

This is still a bug in the Mac-native GUI (it blindly assumes that if a profile is specified then the roots are also specified, without checking it).

@tshu-w
Copy link

tshu-w commented Oct 21, 2024

Side question: I also noticed the brew version of unison has no gui, is that right? I have to always manually download the release to get the gui version.

Homebrew has both GUI and CLI versions.

λ brew search unsion
==> Formulae
unison ✔

==> Casks
unison

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash unison crashes (a specific kind of defect; use crash when matches) feedback Information has been requested; may be closed in 30 days if not provided. macOS specific to macOS
Projects
None yet
Development

No branches or pull requests

4 participants