System.InvalidOperationException at ORTS.CABTextureManager.DisassembleFrames[T] (Cab texture causing exception with Bernina Bahn rolling stock)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
Fix Released
|
Low
|
James Ross | ||
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm getting the following error with a bernina bahn rolling stock, and it seems it's caused by the cab textures.
Error: System.
arge or too small for this resource.
at Microsoft.
C* __unnamed000, UInt32 dwLockWidth, UInt32 dwLockHeight, UInt32 dwFormatSize, U
Int32 dwElementSize, UInt32 elementCount)
at Microsoft.
le`1 rect, T[] data, Int32 startIndex, Int32 elementCount, UInt32 options, Boole
an isSetting)
at Microsoft.
e`1 rect, T[] data, Int32 startIndex, Int32 elementCount)
at ORTS.CABTexture
Texture2D texture, Point controlSize, Int32 frameCount, Point frameGrid, Textur
e2D[] frames, Point frameSize, Point copySize, Point textureSize, T[] buffer)
at ORTS.CABTexture
D texture, Point controlSize, Int32 frameCount, Point frameGrid, String fileName
)
at ORTS.CABTexture
tring fileName, Int32 width, Int32 height, Int32 frameCount, Int32 framesX, Int3
2 framesY)
at ORTS.CabViewDis
SLocomotive car, CabShader shader)
at ORTS.CabRendere
at ORTS.MSTSLocomo
at ORTS.TrainDrawe
at ORTS.World.Load()
at ORTS.Viewer3D.
at ORTS.LoaderProc
at ORTS.LoaderProc
at ORTS.LoaderProc
at System.
at System.
ontextCallback callback, Object state)
at System.
the trainset can be downloaded here: http://
The consist which i used for testing, and causes error is: RhB 417 Bernina Express.con
Changed in or: | |
status: | New → Confirmed |
importance: | Undecided → Low |
milestone: | none → 0.9 |
tags: | added: cabs graphics |
Changed in or: | |
status: | Confirmed → Triaged |
Changed in or: | |
status: | Fix Committed → Fix Released |
I got also this bug. It seems that the Dxt1 textures on CAB of RhB_Gem type engin is implied.
Some more informations in the Elvas Tower forum.
Stefan