Strange SSD upgrade problem

I have tried twice to upgrade my existing SSD in my MacBook (a 240 GB Sandisk Extreme) with a new SSD (Samsung EV0 850 - 500GB and a Sandisk Extreme Pro - 480 GB). Both seem to have the same problem but only related to the XOJO IDE. I thought the Samsung was original issue but at this point I don’t think so.

All of this below is related to XOJO 2014-2. I did not do much research on earlier versions.

I use SuperDuper to clone the drive then swap the drive into my MacBook Pro (early 2011). EVERYTHING except XOJO seems to work fine after the clone and hardware swap. A few things recognize the drive signature is different and ask if it is OK but then operate normally.

I have done this exact same process from the original HDD to a new SSD (120 GB) then a second SSD to SSD (240 GB) with zero problems including RealBASIC (prior to XOJO).

When I launch XOJO it sometimes hangs and uses 100% CPU when loading. Sometimes it loads and presents the “Recent Project” list but hangs when I load some projects. I have successfully loaded several small projects from the “Recent Project” list and compiled them. All of the tested projects are Web Projects. It appeared that large projects were a problem. I put the old SSD back in and saved my large projects in the old XOJO_Project format (not binary) and put them on an external disk thinking maybe there was some sort of corruption. I put the new SSD back in and copied the old format projects from the external drive to the directory where the original project is stored. When I start to browse for an existing file XOJO hangs BEFORE clicking on any files during the process to navigate through several folders.

I swapped a few emails with Jason at XOJO and he suggested deleting some cache files and a preference file but this did not cure the problem.

A force quit is required to kill the hung XOJO and since it is using 100% CPU it can be a problem. After that a reboot is required. If I don’t reboot and try to relaunch XOJO it generally hangs with the icon bouncing on the doc and can easily be killed with Force Quit.

I have tried going to my XOJO account and removing this computer (the only one on the account). Generally this is when it comes up to the “Recent Project” list but at least once I had removed the computer from the account before launching XOJO and it did hang so I am not sure this is even related.

When I swap the SSD back to the old one everything works normally. I have swapped back and forth so much the case screws are showing wear.

Any thoughts on what might be happening? At this point I am planning to do a scratch rebuild (when I have time) on the new SSD and restore all of the files and installed apps, except XOJO, from a TimeMachine backup.

There was a report recently about changing the hard drive name causing the IDE to hang. Is it that?

Also, open Activity Viewer and take a sample of the Xojo process. That would be very helpful in figuring out what the IDE is actually doing.

Yes I think that is the same report by me BUT that is not the problem because my most recent testing used the same name.

Aliases dont depend on the name

I have seen a situation, where after cloning a hard drive, a few file “aliases” were pointing to the wrong files. My memory is fuzzy, but I think these weren’t actual alias files (nor were they symlinks), but rather the binary data that comes with FolderItem.GetSaveInvo(). In my REALbasic-made app, which uses the GetSaveInfo() data, the wrong file was being returned. It was very bizarre.

Does the Xojo IDE use this data in a similar way to remember files?

Oh you can break aliases in all kinds of fun ways but the name is not usually key to an alias working properly

Recent items uses GetSaveInfo so I suspect thats where the OP’s issue is
Just deleting preferences would probably fix this up

Well I did delete the cache and preferences and the problem still exists.

Dave, the owner of Shirt Pocket Software (creator of SuperDuper! I used to clone the drive) suggested resetting the Dynamic Loader Shared Cache (update_dyld_shared_cache). I googled the term and it seems plausible that this could be an issue.

I have not tried it yet but will post here if it helps.

SOLVED

The reset of the dyld_shared_cache fixed the problem. I think this was causing other problems also as indicated by elevated CPU temperature. Obviously when XOJO was hung using 100% CPU the temp spiked but even before launching XOJO the temps were higher. This was even after Spotlight finished re-indexing (which seems to always happen when you clone a drive).

Dave Nanian of Shirt Pocket Software (creator of SuperDuper!) suggested this:

sudo update_dyld_shared_cache -force

I suppose if you are knowledgeable enough to write software than can clone a running disk drive you probably know about things like the dyld_shared_cache.

In general this seems like a good thing to do anytime you swap disk drives even if things seem to be working OK.

For what it’s worth, I have replaced the hard disk in my MacBook Pro by a Samsung SSD 840 EVO 500 GB and at the same time changed the volume name, and everything went smoothly. I have used Carbon Copy Cloner rather than SuperDuper to transfer the old disks contents to the SSD.