Exporting Bugg

Posts: 66
Hey i am having a issue that i am not allowed to export my overlay i get this file

Download logfile
Error: 3/23/2020 7:12:34 PM (UTC)
Unhandled exception
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at ATVO.ThemeEditor.Utils.ThemeFileIO.EncryptData(Byte[] data, String key) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\Utils\ThemeFileIO.cs:line 173
at ATVO.ThemeEditor.Utils.ThemeFileIO.Encrypt(Theme theme, String password, String destinationFile, String tempPath) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\Utils\ThemeFileIO.cs:line 30
Edited (1 time)
Posts: 785
Likely your theme is too big. Do you have any very big videos or something? How large is the total size of the theme folder including Contents?
Posts: 66
I only added one small flag i will have a look
Posts: 785
Did you check the size? In my own testing I can manage up to around 500 MB, after that we run out of memory. It is a limitation of how memory is segmented in Windows. There are certainly ways around it but much more difficult to implement, and to be honest I think 500 MB is a very reasonable upper limit.

Are you seeing this issue with themes that are significantly smaller than 500 MB?
Posts: 66
Yea my overlay is not that big to be honest.

Overall folder size 405 MB
Content folder size 101 MB
Theam editor size 150 KB
The final overlay file 303 MB

This problem have happend sins the last update, i only added 2-3 flags at the size of 13.6 KB pr pic, and even when i delete bigger picturs the overlay still dont want to eksport






Edited (1 time)
Posts: 785
If your Content folder is "only" 100 MB, how is your entire theme over 400? That makes no sense.

Are you storing your exported theme in the same folder as your ".atvotheme" file? I think it's including that file in your exported theme so it gets bigger and bigger but you're actually just including old copies of your exported theme.

Please remove the exported ".adt" file from your theme folder, then export again and save it somewhere else.
Edited (1 time)
Posts: 66
Yea that fixed it. It just haven been a issue before the last patch