When I try to save a file it shows an “out of memory” error
Unfortunately this problem can occasionally happen if you have a file with a lot of Demand Sets and/or Analysis Sets, particularly if you are also using Lane Simulation mode and if your file contains several junctions. The problem is not with the file itself but with how it is converted into a different format for saving to disk.
Junctions 9.5 and above includes an option in File>Export>Save file without results. This will save the file with all results stripped out, resulting in a smaller file size. This option is triggered automatically in Junctions if you try to save a file and an out-of-memory error is encountered.
Otherwise, the workaround generally is to split the file into two or more files, where for example one file contains all the ‘With Development’ scenarios or similar.
If you can’t save the file then things to try are:
- Turn off Lane Simulation mode, if it’s on
- Close down any other running applications
- Try deleting the last Demand Set and seeing if you can then save the file
- If not, you may have to delete more of them until you can save the file.
- Also, as long as you’re not entering traffic demand for each time segment, try editing the Demand Sets so that they only have a single time segment. If you save the file you can subsequently split it into two or more files as mentioned above and then change back to the real number of time segments.
- Try deleting any other items in the file that you can find that could easily be recreated.
- You can also go to a screen of interest, e.g. the OD matrix screen, then go to Edit>Copy/Paste All and use one of the ‘all Demand Sets’ option. This will copy all demand data to the clipboard and you can paste into Excel. If you do need to recreate the file, you can then do this operation in reverse to paste the data back into your Junctions 9 file.