Every time I start Xojo my Mac’s it crashes (see attached zip-file with log file)
It’s on both my computers, MacBook Pro M3 and Mac Studio M1.
Sometimes when pressing the Reopen button Xojo start correct but most of the times I have to delete the folders ~/Library/Caches/com.xojo.xojo and ~/Library/Caches/Xojo.
After I have deleted these folders Xojo starts fine most of the time and I can do my work.
But sometimes even removing the folders in Cashes folder isn’t enough and I have to reboot the Mac.
I have this problem now since various Xojo versions and is getting very annoying.
In the past I also removed Xojo and all the related files and folders and reinstalled Xojo. That didn’t help either.
Am I the only one with this problem or are there more with the same problem?
I see this crash too from time to time and my custom format script has no errors. Retrying works for me, thankfully. It’s random for me so I can’t file a ticket.
Thanks for the tip Christian.
I have removed all scripts and Xojo opened fine.
After that I reinstalled the scripts one by one.
Apparently the problem is with ReformatCode.xojo_script.
Without this script Xojo opens fine.
In the past I have modified the original ReformatCode.xojo_script a few times and I probably have created a problem that causes Xojo to crash at startup. I find it weird although that Xojo most of the times starts fine with that script after removing the folders in the Cashes folder.
For now I have removed ReformatCode.xojo_script.
It’s supposed to be that if there is a problem with the script it falls back on the default built in. The fact that this is crashing – and that your script can do so reliably – is something that would be extremely helpful if you could file a ticket for. Please include your script for them, mine does not do it reliably.
While that’s true, there are some things that cause hard crashes in xojoscript. IIRC it didn’t handle pragmas very well but also did not flag them at compile time, so if you added a line like this:
#if not myFavoriteConstant
But you didn’t define the constant at the correct path or if the type was not Boolean, xojoscript would hard crash, taking the containing app with it.