CFURLGetFSRef Error

Location: Universal/File/O/MacFileUtils.cpp:33
Condition: CFURLGetFSRef(bundleURL,&sAppRef)

I have one customer reporting this error and I have no idea why.
Does anyone have a suggestion?

What version of macOS are they on ? 10.14 or 10.15 ?

This is way down inside FolderItem and something Xojo would need to update

They are on 10.14.5

Figures
Without more of the stack trace its hard to know exactly why this one is failing and what you might be trying to access that would cause it to fail

Apple has made some significant changes in 10.14 that means old APIs, like ones using FSRefs, are slow as heck and may fail for odd reasons.
FSRefs were deprecated sometime ago and this specific function deprecated in 10.9
Xojo needs to update the framework and its use of FSRefs to NSURL or CFUrl and API’s that are not deprecated

Im using 10.14.5 myself.
Whatever this is, its customer specific, I don’t get this error.

(Is it just me who asks customers for information, to find they never answer a direct question, but come back with the same error message and nothing more?)

nope
Used to get that all the time when I was at Xojo too :slight_smile:

There should be a crash log they could send you

If you can reproduce this, I bet Xojo Inc. would appreciate the example project.

CFURLGetFSRef fails to get the FSRef for the app itself.
Maybe it was moved while running?

After having customer run Disk Utility, the problem is resolved.
Some odd permissions thing, by the looks of it.