Unable to save in Xojo 2019r2

I’ve updated a large app in 2019 r2 and I can’t save.

The message pops up "Unable to create temporary file. (Error code: 0)

What’s this?

Can you save it as a new project at a different location in your file system?

Also…

Nope. Same everywhere.

OK, reopened the file after unable to save without error and the project lost reference to HALF of my external items.

I’m getting a bad feeling…

For anyone looking to try 2019r2, I have this advice…

Be EXTREMELY careful. Make absolutely sure that you have duplicated and backed up ALL external classes that may be hiding in your large apps. When 2019r2 saves it will overwrite any external items and they will no longer be able to open in pre-2019r2 Xojo. You may rename your project file, but that won’t protect your external classes.

Increment your project name with each save. I am seeing Save failure modes that I’ve never seen pre r2. With potentially catastrophic data loss. In the case I mentioned above, I’ve just had every canvas-based control on a large app lose reference to its external class and also lose tab-panel page assignments requiring large amounts of work to restore.

Buy more storage. R2 project files are FIVE TIMES the size of R1.1 files. One project of mine was 23meg in R1.1 and now 137meg in R2. That’s a bit astounding.

I know some of this is SOP but it’s worth a reminder!

It is really unfortunate that you’ve been having problems Richard, I feel for you. Been there in the past for sure on some really painful tool upgrades.

I did want to mention, that I’ve been working hard the past week or so at rewriting my Desktop apps to be all API 2.0 compliant. And I haven’t seen any significant difference in project sizes. Admittedly my projects may not be as big as some others, but I do use a lot of graphics - so my projects are not tiny.

But maybe my upgrade methodology is likely different than yours. In my case I start with a new blank 2019r2 project, then just copy objects one at a time from the old into the new, “analyze” and tweak the code according to the deprecation warnings, save, ensure I can run that new bit, then repeat until I’m done.

Note: I am also saving in the source-control friendly “text” project format.

I hope you get things resolved. Good luck.

Save your file type icons externally. Makes a ton of difference in saving. I haven’t seen an increase in size either.

[quote=457240:@Richard Nicolella]For anyone looking to try 2019r2, I have this advice…

Be EXTREMELY careful. Make absolutely sure that you have duplicated and backed up ALL external classes that may be hiding in your large apps. When 2019r2 saves it will overwrite any external items and they will no longer be able to open in pre-2019r2 Xojo. You may rename your project file, but that won’t protect your external classes.

Increment your project name with each save. I am seeing Save failure modes that I’ve never seen pre r2. With potentially catastrophic data loss. In the case I mentioned above, I’ve just had every canvas-based control on a large app lose reference to its external class and also lose tab-panel page assignments requiring large amounts of work to restore.

Buy more storage. R2 project files are FIVE TIMES the size of R1.1 files. One project of mine was 23meg in R1.1 and now 137meg in R2. That’s a bit astounding.

I know some of this is SOP but it’s worth a reminder![/quote]
Richard, did you just Save or did you use Save As?

I did Save and SaveAs - same result. Any way to see whats causing this huge bloating?

Compare the before and after results with a Diff tool?

The reason I asked is that Save As converts everything to 2019r2 and above. Just doing a regular Save should not be doing that.

I tried both with the same results. I just tried it again - duplicated an R1.1 project file on disk and renamed it. Same size s original. Then opened new one in 2, and tried first Save, then SaveAs. Made no difference. Huge each time.

23mb vs 138mb

I’m having similar issues with saving. And when I do SaveAs it doesn’t give me the option to change the project type. It needs to be source control friendly but will only save as a “xojo_binary_project” :frowning:

Any Xojo on Catalina? Check your Licenses. May have been recognized as a new Machine.

I just loaded an older 2016 project, and converted it to R2… source code size went from 8.2meg to 8.9meg and it has dozens of images

I’m having this bug too with external classes. I’ve tried EVERYTHING under the moon to try and fix it. I haven’t figured out how to. Any luck?

<https://xojo.com/issue/58409>

If its Catalina, you may need to give Xojo full disc access.

Oh believe me, that’s one of the countless things I’ve tried. Including resettling ACLs, removing extended file attributes, trying new user accounts, reinstalling Catalina from scratch. The list goes on and on and on.

The real question here is… how many external project items are linked to your project? I have 223.

0-Base Core
2-Files & Folders
FolderDialogOptionsKSW.xojo_binary_code
FolderItemExtension.xojo_binary_code
SmartFolderItemKSW.xojo_binary_code
4-Network
HTTPSocketKSW.xojo_binary_code
MacOSXProxySettings.xojo_binary_code
5-NSTask
MyNSNotificationObserverMBS.xojo_binary_code
NSTaskKSW.xojo_binary_code
7-XML
XMLData.xojo_binary_code
XMLExtension.xojo_binary_code
8-Extensions
CoreFoundationExtension.xojo_binary_code
CorePreferences.xojo_binary_code
ErrorCodeHandler.xojo_binary_code
ExtensionDatabase.xojo_binary_code
ExtensionDate.xojo_binary_code
GlobalMethods.xojo_binary_code
ThreadKSW.xojo_binary_code
UniversalExtension.xojo_binary_code
1-Classes
AnimationKit
AKCore.xojo_binary_code
AKEasing.xojo_binary_code
AKFrameTarget.xojo_binary_code
AKFrameTask.xojo_binary_code
AKMoveTask.xojo_binary_code
AKTask.xojo_binary_code
AKTimer.xojo_binary_code
BusinessAppMenuItemKSW.xojo_binary_code
LegacyUpdateEngine.xojo_binary_code
PictureKSW.xojo_binary_code
QuickLookPanelKSW.xojo_binary_code
SparkleKSW.xojo_binary_code
StartupOptionsKSW.xojo_binary_code
TimerChangePaneCheck.xojo_binary_code
TimerCheckWebGlobal.xojo_binary_code
WebNotices.xojo_binary_code
2-Global.Images
BugReporter
picBugReporterContactUs64px.png
picBugReporterContactUs64px@2x.png
picBugReporterCrashed64px.png
picBugReporterCrashed64px@2x.png
picBugReporterSendLogs64px.png
picBugReporterSendLogs64px@2x.png
picReportReceived128px.png
picReportReceived128px@2x.png
imgGeneralGlobal
imgDownArrow.png
imgDownArrow@2x.png
picBorderlessResizer.png
picBorderlessResizer@2x.png
picBusinessLogo64px.png
picBusinessLogo64px@2x.png
picIconSmallApp16px.png
picIconSmallApp16px@2x.png
picIconSmallApp32px.png
picIconSmallApp32px@2x.png
picIconSmallFile16px.png
picIconSmallFile16px@2x.png
picIconSmallFile32px.png
picIconSmallFile32px@2x.png
picIconUserDetails.png
picIconUserDetails@2x.png
picModernAlert16px.png
picModernAlert16px@2x.png
picModernInfo16px.png
picModernInfo16px@2x.png
picPopupArrows.png
picPopupArrows@2x.png
picReportABug.png
picReportABug@2x.png
picResizeWidget_Old.png
picResizeWidget.png
picResizeWidget@2x.png
picToolbarDebug.png
picToolbarDebug@2x.png
picToolbarDebugNormal.png
picToolbarDebugNormal@2x.png
picToolbarDebugSelected.png
picToolbarDebugSelected@2x.png
picTypeAlert.png
picTypeAlert@2x.png
imgUIFlatCheckbox
picFlatCheckboxMixed.png
picFlatCheckboxMixed@2x.png
picFlatCheckboxMixedPressed.png
picFlatCheckboxMixedPressed@2x.png
picFlatCheckboxOff.png
picFlatCheckboxOff@2x.png
picFlatCheckboxOffPressed.png
picFlatCheckboxOffPressed@2x.png
picFlatCheckboxOn.png
picFlatCheckboxOn@2x.png
picFlatCheckboxOnPressed.png
picFlatCheckboxOnPressed@2x.png
imgUIRoundedSearchField
picRoundLeft.png
picRoundLeft@2x.png
picRoundLeftWithArrow.png
picRoundLeftWithArrow@2x.png
picRoundMiddle.png
picRoundMiddle@2x.png
picRoundRight.png
picRoundRight@2x.png
picRoundRightClose.png
picRoundRightClose@2x.png
picRoundRightPressed.png
picRoundRightPressed@2x.png
3-Modules
GUI
ExtensionMenu.xojo_binary_code
ExtensionRectControl.xojo_binary_code
CoreBasicUI.xojo_binary_code
DuraniumCore.xojo_binary_code
ExtensionGraphics.xojo_binary_code
GlobalLocalization.xojo_binary_code
MasterDict.xojo_binary_code
Startup.xojo_binary_code
4-Controls
Blue Search Bar
BluebarKSW.xojo_binary_code
BlueSearchBar.xojo_binary_window
Cross Toolbar
ButtonInterfaceKSW.xojo_binary_code
CrossToolbarItemKSW.xojo_binary_code
CrossToolbarKSW.xojo_binary_code
NSToolbarItemKSW.xojo_binary_code
NSToolbarKSW.xojo_binary_code
RBToolbarKSW.xojo_binary_code
PopupFolderMenuKSW
images
picIconSmallFile16px.png
picIconSmallFile16px@2x.png
PopupFolderMenuKSW.xojo_binary_code
Sidebar Listbox
images
imgDarkCheckboxCheckedDisabled.png
imgDarkCheckboxCheckedDisabled@2x.png
imgDarkCheckboxCheckedNormal.png
imgDarkCheckboxCheckedNormal@2x.png
imgDarkCheckboxCheckedPressed.png
imgDarkCheckboxCheckedPressed@2x.png
imgDarkCheckboxUnCheckedDisabled.png
imgDarkCheckboxUnCheckedDisabled@2x.png
imgDarkCheckboxUnCheckedNormal.png
imgDarkCheckboxUnCheckedNormal@2x.png
imgDarkCheckboxUnCheckedPressed.png
imgDarkCheckboxUnCheckedPressed@2x.png
SidebarListbox.xojo_binary_code
SidebarListboxCellData.xojo_binary_code
SidebarListboxData.xojo_binary_code
Toolband Search Bar
ToolbandKSW.xojo_binary_code
ToolbandSearchBarKSW.xojo_binary_code
ToolbandSearchCanvasKSW.xojo_binary_code
AlertCanvas.xojo_binary_code
ApplicationIconCanvas.xojo_binary_code
ButtonCanvasKSW.xojo_binary_code
CalendarKSW.xojo_binary_code
CanvasDivider.xojo_binary_code
CanvasKSW.xojo_binary_code
CheckboxKSW.xojo_binary_code
ComboBoxUndo.xojo_binary_code
DateFieldKSW.xojo_binary_code
HelpCanvas.xojo_binary_code
HTMLViewerKSW.xojo_binary_code
ModernSidebarButtonKSW.xojo_binary_code
PopupMenuKSW.xojo_binary_code
SegmentedButtonKSW.xojo_binary_code
SliderKSW.xojo_binary_code
SmartHeaderBarKSW.xojo_binary_code
TextAreaUndo.xojo_binary_code
TextFieldUndo.xojo_binary_code
TexturedButtonKSW.xojo_binary_code
UtilityButtonBar.xojo_binary_code
Windows
BugReporter
BugReporter.xojo_binary_code
GlobalExceptionHandlerKSW.xojo_binary_code
MacExceptionKSW.xojo_binary_code
ThreadSystemReport.xojo_binary_code
WinExceptionKSW.xojo_binary_code
ccBugReporter.xojo_binary_window
wndBugReporter.xojo_binary_window
wndBugReporterFloating.xojo_binary_window
wndBugReporterInteractive.xojo_binary_window
Create App Store Account
ThreadFindKoingoApps.xojo_binary_code
wndRegisterAppStore.xojo_binary_code
MsgBoxKSW
ccMsgBox.xojo_binary_window
wndMsgBox.xojo_binary_window
wndMsgBoxModal.xojo_binary_window
wndMsgBoxSheet.xojo_binary_window
Preferences
ccDebugSettings.xojo_binary_window
ccSoftwareUpdate.xojo_binary_window
WindowKSW
ContainerKSW.xojo_binary_code
TimerWindowResizeWait.xojo_binary_code
TimerWindowResizeWaitInterface.xojo_binary_code
TimerWindowWaitNotFullScreen.xojo_binary_code
TimerWindowWaitNotFullScreenInterface.xojo_binary_code
WindowKSW_NSWindowDelegate_Interface.xojo_binary_code
WindowKSW_NSWindowDelegate.xojo_binary_code
WindowKSW.xojo_binary_code
WindowPrefs.xojo_binary_code
MenuItem_Window.xojo_binary_code
wndVersionHistory.xojo_binary_code
wndAbout.xojo_binary_window
wndKoingoDemo.xojo_binary_window
wndLicenseDetails.xojo_binary_window
wndRate.xojo_binary_window
wndUnlock.xojo_binary_window
wndUnlockOffline.xojo_binary_window
wndUpdateAvailable.xojo_binary_window
wndWebNotice.xojo_binary_window
CoreWhiteLabel.xojo_binary_code