View Issue Details

IDProjectCategoryView StatusLast Update
0000415OpenIVTools - Texture editorpublic2017-04-12 10:51
ReporterxSKORP1ONxAssigned To 
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformWindowsOS10 (64-bit, 32-bit)OS Version10.0
Product Version2.8 
Target VersionFixed in Version 
Summary0000415: Out of Memory error when saving large texture (.ytd) files
DescriptionI invariably crash trying to save too large of a .ytd file in the texture editor, made large by importing 4k resolution textures, in this case vehicle liveries for a (custom model) police car. This crash occurs on all attempts to add several high res textures to any .ytd.
Steps To ReproduceOpen a .ytd in the texture editor, import several (I'm attempting to add 8) 4k resolution textures, click save - crash occurs immediately. After crashing, the edited .ytd is reduced to just a few bytes and is entirely corrupted.
Additional InformationI tried to attach these, but the upload went so slow that it just timed out invariably, so I hope a dropbox link with a .rar is alright.
https://www.dropbox.com/s/uzg6bhapmq9l2oc/bugreport.rar?dl=0

Included are:
The unedited .ytd I am adding textures to
The 8 4k resolution livery textures I am adding
The resulting corrupted .ytd file
The error log
TagsNo tags attached.
GameGrand Theft Auto V

Activities

xSKORP1ONx

2016-06-27 06:57

reporter  

OpenIVError.txt (10,729 bytes)
Time: "19:26:10"
Type: "EOutOfMemory"
Message: "Out of memory"

Additional information:
[Application Context]
GetThreadLocale=1033 (0x0409)
Game::Path=C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\
WebClientId=2249387
Core::OpenRageArchive::LastCall=C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\update\x64\dlcpacks\patchday10ng\dlc.rpf|x64\levels\gta5\vehicles.rpf
GetSystemDefaultLangID=1033
App::Lang=en_GB
App::Path=C:\Users\Skorpion\AppData\Local\New Technology Studio\Apps\OpenIV\
Main::ExploreArchiveNode::WorkItem=C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\update\x64\dlcpacks\patchday10ng\dlc.rpf|x64\levels\gta5\vehicles.rpf|
Main::ExploreArchiveNode::ParentArchive=C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\update\x64\dlcpacks\patchday10ng\dlc.rpf|x64\levels\gta5\vehicles.rpf
App::Temp=C:\Users\Skorpion\AppData\Local\Temp\OpenIV_395A365C\
ApplicationPath=C:\Users\Skorpion\AppData\Local\New Technology Studio\Apps\OpenIV\
OS=Windows (Version 10.0, Build 10586, 64-bit Edition)
GetSystemDefaultLCID=1033
Game::ID=Five (GTA V)
Game::Platform=pc
SysLocale={ DefaultLCID: "1033", PriLangID: "9", SubLangID: "1", FarEast: "True", MiddleEast: "True" }

[Application Windows]
TTextureEditorWindow=police2.ytd - OpenIV Texture editor
TMainWindow=OpenIV - vehicles.rpf - [Read only mode]
TActionsModule=ActionsModule
TErrorWindow=OpenIV - Application error

  Release: 2.8.0.703 5/22/2016
  Address: "0x004B844A"
  Procedure: "System.Classes.TMemoryStream.Realloc"
  Unit: "", Line: "0"

Stack:
[004B8445] System.Classes.TMemoryStream.Realloc + $49
[004068C6] System.ErrorAt + $16
[0040690A] System.Error + $E
[004B8445] System.Classes.TMemoryStream.Realloc + $49
[004B83B5] System.Classes.TMemoryStream.SetCapacity + $D
[004B83DE] System.Classes.TMemoryStream.SetSize + $E
[004B376F] System.Classes.TStream.SetSize + $4B
[004B371B] System.Classes.TStream.SetSize64 + $B
[0079FF51] Rage.Compressions.TCompressionZLib.CompressRSC (Line 221, "Rage.Compressions.pas" + 1) + $1D
[0040812D] System.@AfterConstruction + $1D
[00407A68] System.TObject.Create + $10
[008230F3] Rage.Resources.IO.TRageResourceFileWriter.WriteCompressedData (Line 379, "Rage.Resources.IO.pas" + 2) + $16
[008230B4] Rage.Resources.IO.TRageResourceFileWriter.WriteSegmentsAndHeader (Line 369, "Rage.Resources.IO.pas" + 15) + $4
[00823032] Rage.Resources.IO.TRageResourceFileWriter.Build (Line 349, "Rage.Resources.IO.pas" + 2) + $4
[00D8C5F1] Rage2.Resources.Factory.pgResourceWriterBase.MakeFile (Line 406, "Rage2.Resources.Factory.pas" + 2) + $3
[0103D44B] Rage2.Resources.CResource2.Save (Line 167, "Rage2.Resources.pas" + 11) + $5
[015116E1] Tools.TextureEditor.GTAVProcessor.Win64.TFiveTextureEditorProcessorPC.SaveContentToFile (Line 156, "Tools.TextureEditor.GTAVProcessor.Win64.pas" + 2) + $20
[0150BD0D] Tools.TextureEditor.Window.TTextureEditorRenderWindow.WindowActionButtonClick (Line 858, "Tools.TextureEditor.Window.pas" + 4) + $8
[0089E50D] RenderFramework.AwesomeUI.Classes.FrameworkElement.Click (Line 1033, "RenderFramework.AwesomeUI.Classes.pas" + 2) + $A
[0089FD71] RenderFramework.AwesomeUI.Classes.FrameworkElement.DoMouseUp (Line 1446, "RenderFramework.AwesomeUI.Classes.pas" + 5) + $4
[0089F5EB] RenderFramework.AwesomeUI.Classes.FrameworkElement.WMButtonUp (Line 1235, "RenderFramework.AwesomeUI.Classes.pas" + 15) + $20
[0089F304] RenderFramework.AwesomeUI.Classes.FrameworkElement.WindowProc (Line 1112, "RenderFramework.AwesomeUI.Classes.pas" + 11) + $4
[0088CB96] RenderFramework.AwesomeUI.Window.UIWindow.WMButtonUp (Line 316, "RenderFramework.AwesomeUI.Window.pas" + 2) + $C
[0089F304] RenderFramework.AwesomeUI.Classes.FrameworkElement.WindowProc (Line 1112, "RenderFramework.AwesomeUI.Classes.pas" + 11) + $4
[0088C9F8] RenderFramework.AwesomeUI.Window.UIWindow.WindowProc (Line 245, "RenderFramework.AwesomeUI.Window.pas" + 27) + $4
[0150A680] Tools.TextureEditor.Window.TTextureEditorRenderWindow.WindowProc (Line 658, "Tools.TextureEditor.Window.pas" + 1) + $5
[76A13456] Unknown function at UspAllocTemp + $59E6
[76A1350C] Unknown function at UspAllocTemp + $5A9C
[76A1422F] Unknown function at UspAllocTemp + $67BF
[76A14265] Unknown function at UspAllocTemp + $67F5
[76A13456] Unknown function at UspAllocTemp + $59E6
[76A1350C] Unknown function at UspAllocTemp + $5A9C
[5919A909] Unknown function at Direct3DCreate9Ex + $22D09
[5919A91A] Unknown function at Direct3DCreate9Ex + $22D1A
(00589C50) [5892AC50]
[591994A7] Unknown function at Direct3DCreate9Ex + $218A7
[591917A8] Unknown function at Direct3DCreate9Ex + $19BA8
[591917B9] Unknown function at Direct3DCreate9Ex + $19BB9
[591D61CC] Unknown function at DebugSetMute + $248EC
[591990F0] Unknown function at Direct3DCreate9Ex + $214F0
[591B043D] Unknown function at Direct3DCreate9 + $692D
[59199111] Unknown function at Direct3DCreate9Ex + $21511
[591826CD] Unknown function at Direct3DCreate9Ex + $AACD
[591826DF] Unknown function at Direct3DCreate9Ex + $AADF
[591B043D] Unknown function at Direct3DCreate9 + $692D
[591AD6F3] Unknown function at Direct3DCreate9 + $3BE3
[76F36BFA] ZwWaitForSingleObject + $A
[76B7E1FB] WaitForSingleObjectEx + $8B
[76B7E219] WaitForSingleObjectEx + $A9
[76B7E15D] WaitForSingleObject + $D
[6B407794] Unknown function at  + $1524
[6B4052EA] DwmpDxGetWindowSharedSurface + $39A
[76F36BFA] ZwWaitForSingleObject + $A
[76B7E1FB] WaitForSingleObjectEx + $8B
[76B7E219] WaitForSingleObjectEx + $A9
[76F1BB47] RtlQueryPerformanceCounter + $47
(0061DD67) [589BED67]
(00644B2E) [589E5B2E]
(0065AA02) [589FBA02]
[76F1BB47] RtlQueryPerformanceCounter + $47
[5918208D] Unknown function at Direct3DCreate9Ex + $A48D
[59182124] Unknown function at Direct3DCreate9Ex + $A524
[004067C0] System.@FreeMem + $4
[00407990] System.TObject.FreeInstance + $C
[0040810A] System.@ClassDestroy + $2
[00407A81] System.TObject.Destroy + $9
[5917DCA5] Unknown function at Direct3DCreate9Ex + $60A5
[0040D7D0] System.@IntfClear + $10
[0040B4FC] System.@FinalizeArray + $E4
[0040B3EC] System.@FinalizeRecord + $24
[00408388] System.TMonitor.Destroy + $0
[00407B0B] System.TObject.CleanupInstance + $1F
[004067C0] System.@FreeMem + $4
[00407990] System.TObject.FreeInstance + $C
[0040810A] System.@ClassDestroy + $2
[00407A81] System.TObject.Destroy + $9
[591826CD] Unknown function at Direct3DCreate9Ex + $AACD
[591826DF] Unknown function at Direct3DCreate9Ex + $AADF
[59184701] Unknown function at Direct3DCreate9Ex + $CB01
[59184714] Unknown function at Direct3DCreate9Ex + $CB14
[0040BFB8] System.DynArraySetLength + $168
[00406813] System.@ReallocMem + $3F
[0040BFB8] System.DynArraySetLength + $168
[0040D7D0] System.@IntfClear + $10
[008AD26D] RenderFramework.AwesomeUI.Classes.{System.Generics.Collections}TMoveArrayManager<RenderFramework.AwesomeUI.Classes.FrameworkElement>.Move (Line 38, "System.Generics.Defaults.pas" + 0) + $1E
[008A6395] RenderFramework.AwesomeUI.Classes.{System.Generics.Collections}TList<RenderFramework.AwesomeUI.Classes.FrameworkElement>.DeleteRange (Line 56, "System.Generics.Defaults.pas" + 0) + $9E
[5918FE49] Unknown function at Direct3DCreate9Ex + $18249
[0040C1AD] System.@DynArrayClear + $35
[5919081F] Unknown function at Direct3DCreate9Ex + $18C1F
[76F36F1A] ZwDelayExecution + $A
[76B8A773] SleepEx + $93
[76B8A789] SleepEx + $A9
[5921A021] Unknown function at Direct3D9EnableMaximizedWindowedModeShim + $22681
[76B8A6CA] Sleep + $A
[5917DCA5] Unknown function at Direct3DCreate9Ex + $60A5
[0040D7D0] System.@IntfClear + $10
[0040B4FC] System.@FinalizeArray + $E4
[00846666] RenderFramework.CFramework.OnRenderFrame (Line 331, "RenderFramework.pas" + 26) + $1B
[008C6F86] RenderFramework.AwesomeUI.UIManager.WindowProc (Line 245, "RenderFramework.AwesomeUI.pas" + 3) + $4
[012B5B43] Tools.Framework.RenderFrameworkApp.CDXCustom3DSceneRender.WindowProc (Line 199, "Tools.Framework.RenderFrameworkApp.pas" + 0) + $3
[0084691A] RenderFramework.CFramework.DoWndProc (Line 403, "RenderFramework.pas" + 2) + $5
[00540620] Vcl.Controls.TWinControl.MainWndProc + $2C
[004C85CC] System.Classes.StdWndProc + $14
[744884F1] Unknown function at SetManipulationInputTarget + $51
[74466C3B] Unknown function at CallWindowProcW + $2FB
[74466B12] Unknown function at CallWindowProcW + $1D2
[7446653C] Unknown function at DispatchMessageW + $24C
[7446CD7A] PeekMessageW + $16A
[744662FB] DispatchMessageW + $B
[0062A21B] Vcl.Forms.TApplication.ProcessMessage + $F3
[0062A25E] Vcl.Forms.TApplication.HandleMessage + $A
[00625A75] Vcl.Forms.TCustomForm.ShowModal + $1A1
[00A9FBBA] Tools.Framework.BaseClass.CBaseToolClass.Main (Line 185, "Tools.Framework.BaseClass.pas" + 36) + $4
[01510026] Tools.TextureEditor.TextureEditor.OpenExternalFile (Line 72, "Tools.TextureEditor.pas" + 1) + $27
[015100AA] Tools.TextureEditor.TextureEditor.Action (Line 78, "Tools.TextureEditor.pas" + 2) + $C
[00AA63B6] Tools.Framework.CToolsFramework.RunAction (Line 305, "Tools.Framework.pas" + 3) + $13
[00BA69A3] Black.Legacy.UI.MainWindow.Actions.TActionsModule.toolOpenFileInClick (Line 4046, "Black.Legacy.UI.MainWindow.Actions.pas" + 27) + $33
[006109EE] Vcl.Menus.TMenuItem.Click + $AA
[00611FE7] Vcl.Menus.TMenu.DispatchCommand + $13
[00613256] Vcl.Menus.TPopupList.WndProc + $82
[00408340] System.TMonitor.CheckOwningThread + $4
[00408616] System.TMonitor.Exit + $6
[00408667] System.TMonitor.Exit + $F
[005178D7] Vcl.Graphics.FreeMemoryContexts + $9B
[00540620] Vcl.Controls.TWinControl.MainWndProc + $2C
[006131A5] Vcl.Menus.TPopupList.MainWndProc + $1D
[004C85CC] System.Classes.StdWndProc + $14
[744884F1] Unknown function at SetManipulationInputTarget + $51
[74466C3B] Unknown function at CallWindowProcW + $2FB
[74466B12] Unknown function at CallWindowProcW + $1D2
[76F36CFA] ZwFindAtom + $A
[7446653C] Unknown function at DispatchMessageW + $24C
[744662FB] DispatchMessageW + $B
[0062A21B] Vcl.Forms.TApplication.ProcessMessage + $F3
[0062A25E] Vcl.Forms.TApplication.HandleMessage + $A
[0062A599] Vcl.Forms.TApplication.Run + $C9
[0120380B] OpenIV.Application.CProgram.ApplicationMain (Line 125, "OpenIV.Application.pas" + 12) + $7
[01203739] OpenIV.Application.CProgram.Main (Line 109, "OpenIV.Application.pas" + 0) + $5
[0128ADEC] Black.Application.CBlackApplication.Main (Line 137, "Black.Application.pas" + 30) + $5
[01536F2C] OpenIV.OpenIV (Line 649, "" + 12) + $5
[749038F2] BaseThreadInitThunk + $22
[76F25DE1] Unknown function at RtlUnicodeStringToInteger + $251
[76F25DA9] Unknown function at RtlUnicodeStringToInteger + $219
ClientId: 2249387, ReportId: 888810
OpenIVError.txt (10,729 bytes)

xSKORP1ONx

2016-06-27 07:00

reporter   ~0000175

I have tried a number of solutions, including setting OpenIV.exe to High priority in Task manager, running OpenIV as admin, and importing the textures one at a time and saving it one at a time. It crashes regardless once the file is too large.

GooD-NTS

2016-06-27 12:26

administrator   ~0000176

What parameters did you choose while import?
Mipmaps? Texture compression?

xSKORP1ONx

2016-06-27 19:39

reporter   ~0000177

I chose for both to be done automatically, which ended up with 11 mipmaps and DXT5 compression.

GooD-NTS

2017-03-27 10:51

administrator   ~0000211

Please check on the latest release.

GooD-NTS

2017-04-12 10:51

administrator   ~0000236

No feedback. Closed.

Issue History

Date Modified Username Field Change
2016-06-27 06:57 xSKORP1ONx New Issue
2016-06-27 06:57 xSKORP1ONx File Added: OpenIVError.txt
2016-06-27 07:00 xSKORP1ONx Note Added: 0000175
2016-06-27 12:26 GooD-NTS Note Added: 0000176
2016-06-27 12:26 GooD-NTS Assigned To => GooD-NTS
2016-06-27 12:26 GooD-NTS Status new => feedback
2016-06-27 19:39 xSKORP1ONx Note Added: 0000177
2016-06-27 19:39 xSKORP1ONx Status feedback => assigned
2017-03-27 10:51 GooD-NTS Note Added: 0000211
2017-03-27 10:51 GooD-NTS Assigned To GooD-NTS =>
2017-03-27 10:51 GooD-NTS Status assigned => feedback
2017-04-12 10:51 GooD-NTS Note Added: 0000236
2017-04-12 10:51 GooD-NTS Status feedback => closed
2017-04-12 10:51 GooD-NTS Resolution open => no change required