Giter Site home page Giter Site logo

Comments (9)

Rampastring avatar Rampastring commented on June 1, 2024 1

Fixed already in f1e09f3

from xna-cncnet-client.

GrantBartlett avatar GrantBartlett commented on June 1, 2024

Great OK I'll close this then, because that was pushed last night and the bug was reported before the newest update.

from xna-cncnet-client.

GrantBartlett avatar GrantBartlett commented on June 1, 2024

This happens when loading a custom map it appears.

10.12. 11:53:17.730 Loading custom map C:\Users\Home\Documents\Visual Studio 2015\Projects!yr-theme\cncnet-yr-client-theme\Maps\Custom\19c2bbabde5bf1e81c535143b361dd6d15975809.map failed!
10.12. 11:53:17.803 KABOOOOOOM!!! Info:
10.12. 11:53:17.807 Message: This image format is not supported
10.12. 11:53:17.813 Source: MonoGame.Framework
10.12. 11:53:17.818 TargetSite.Name: FromStream
10.12. 11:53:17.823 Stacktrace: at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream(GraphicsDevice graphicsDevice, Stream stream)
at Rampastring.XNAUI.AssetLoader.TextureFromImage(Image image)
at ClientCore.CnCNet5.GameCollection.Initialize(GraphicsDevice gd)
at ‌​‪​‪‌‫‭‪‪‭‬​‌‍‪‏‬‌‪‍‌‫‫‎‍‌‏‮‫‬‎‮.‫‫​‌‍‌‏‍‏‪‮‬‫‍‭‍‎‬‬‎‪‮‮‏‏‏‮(GameCollection , GraphicsDevice )
at ‌​‪​‪‌‫‭‪‪‭‬​‌‍‪‏‬‌‪‍‌‫‫‎‍‌‏‮‫‬‎‮.‎‫‫‮‏‮‭​​‌‎‎‎‍‍‪‪‌‌‭‫‌‬‮‮()
at ‌​‪​‪‌‫‭‪‪‭‬​‌‍‪‏‬‌‪‍‌‫‫‎‍‌‏‮‫‬‎‮.‌‎‭‪‏‎‎​‭‏‮‍​‭‭‪‭‎‏‫​‍‎‏‍‏‬‮()
at ‌​‪​‪‌‫‭‪‪‭‬​‌‍‪‏‬‌‪‍‌‫‫‎‍‌‏‮‫‬‎‮.‌‫‫‪​‏‮‫‍‌‮​‌‬‪‭‏‮‭‭‌‏‍‫‭‎‮(GameTime )
at Rampastring.XNAUI.WindowManager.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.<>c.<.cctor>b__114_1(IUpdateable updateable, GameTime gameTime)
at Microsoft.Xna.Framework.Game.SortingFilteringCollection1.ForEachFilteredItem[TUserData](Action2 action, TUserData userData)
at Microsoft.Xna.Framework.Game.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at MonoGame.Framework.WinFormsGamePlatform.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Microsoft.Xna.Framework.Game.Run()
at ‌‪‎​‫‪‭‭​‫‪‪‮‎‪‏‮‌‫‬‫‍​‪‮.‎‪‭‬‭‭‏‎‌‫‌‍‏‫‬‍‏‎‮‫‪‪‭‬‎‮()
at ‮‪‬‏‮‏‎‍‏‏‭‮​‎‌‏‍‮​‫‬‪​‍‌‭‮.‫‬‬‬‏‭‌‪‭‎‮‏‏​‫‫‫‪‭‌‮‭‎‍‌‮(String[] )
at ‮​​‫‍‭‮‮‌‏‌​‮‍‬‎‬‬‮‌‮‮‏‫‮‬‎‮.‏‫‪‏‎‬‮‍‪‌‭‍‮‭‭‭‪​​​‏‮‪‎‮(String[] )
10.12. 11:53:17.828 InnerException info:
10.12. 11:53:17.834 Message: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.

10.12. 11:53:17.839 Stacktrace: at SharpDX.Result.CheckError()
at SharpDX.Direct3D11.Device.CreateTexture2D(Texture2DDescription& descRef, DataBox[] initialDataRef, Texture2D texture2DOut)
at SharpDX.Direct3D11.Texture2D..ctor(Device device, Texture2DDescription description, DataRectangle[] data)
at Microsoft.Xna.Framework.Graphics.Texture2D.CreateTex2DFromBitmap(BitmapSource bsource, GraphicsDevice device)
at Microsoft.Xna.Framework.Graphics.Texture2D.PlatformFromStream(GraphicsDevice graphicsDevice, Stream stream)
at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream(GraphicsDevice graphicsDevice, Stream stream)

19c2bbabde5bf1e81c535143b361dd6d15975809.txt

Happens with the above map, rename to .map to reproduce locally.

from xna-cncnet-client.

Rampastring avatar Rampastring commented on June 1, 2024

Doesn't happen to me. The inner exception error message would point to a problem with the graphics device rather than the image format, "The GPU device instance has been suspended."

I can add a check to Rampastring.XNAUI.AssetLoader.TextureFromImage(Image image) to check if the texture was loaded succesfully though.

from xna-cncnet-client.

GrantBartlett avatar GrantBartlett commented on June 1, 2024

It happens to me on and off, which is strange (And only when I merged the latest)

from xna-cncnet-client.

Rampastring avatar Rampastring commented on June 1, 2024

Implemented. It's not entirely without side-effects though, if loading a map preview during startup fails then the map will have a black preview or the starting location indicators will be shown in invalid locations.

acaf723

from xna-cncnet-client.

GrantBartlett avatar GrantBartlett commented on June 1, 2024

Better than a crash - thanks @Rampastring

I was thinking, maybe the Loadup screen should say what it is actually loading, so it doesn't appear to be "slow". For instance, it could just be a simple text string saying:

"Loading maps - 1/20" etc.

from xna-cncnet-client.

GrantBartlett avatar GrantBartlett commented on June 1, 2024

24.01. 19:23:01.407 Stacktrace: at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream(GraphicsDevice graphicsDevice, Stream stream)
at Rampastring.XNAUI.AssetLoader.LoadTexture(String name)
at ‭‬‪‭‭‌‌‬‌‫‏​‌‌‎‌‌‍‌‏‍‍‍‮‍‮.‫‎‪‍‭‬‪‎‪‌‮‭‍‍‍‏‎‫‫‭‮‪‌‍‭‭‭‪‮()
at ‭‬‪‭‭‌‌‬‌‫‏​‌‌‎‌‌‍‌‏‍‍‍‮‍‮.‎‌‭‌‬‏‮‬‌‮‍‬‪‫‪​‪‌‏‏‫‎‭‏‪‌‮()
at Microsoft.Xna.Framework.Game.DoInitialize()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Microsoft.Xna.Framework.Game.Run()
at ‏‏‏‏‭‬‮​‌‮‮‫‫‌‎‪‫‪‫‭‫‏‭‪​‏‫‫‏‮.‫‪‎​‍‬​‏‪‍‫‭‬‫‍‏‍‭​​​‍‏‮()
at ‭‎‌‮​‍‍‪‬‎‮‭‪‎‬​‍‮‭‫‬‌‮‬‬‬‮.‎‎‭‮‮‮‪‍‪‍‏​‫‫‬‫‬‎​‮‮‌‭‏​‌‪‮(String[] )
at ‪‎‬‏‭​‏‍‪‌​‍‎‬‪‪‭‬‬‎‎‌‭‬‎‏‮.‮‮‍‮‌‪‏‎‏​‌‍‬‍‌‏‎‎‏‮(String[] )
24.01. 19:23:01.407 InnerException info:
24.01. 19:23:01.407 Message: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: Unknown
24.01. 19:23:01.407 Stacktrace: at SharpDX.Result.CheckError()
at SharpDX.Direct3D11.Device.CreateTexture2D(Texture2DDescription& descRef, DataBox[] initialDataRef, Texture2D texture2DOut)
at SharpDX.Direct3D11.Texture2D..ctor(Device device, Texture2DDescription description, DataRectangle[] data)
at Microsoft.Xna.Framework.Graphics.Texture2D.CreateTex2DFromBitmap(BitmapSource bsource, GraphicsDevice device)
at Microsoft.Xna.Framework.Graphics.Texture2D.PlatformFromStream(GraphicsDevice graphicsDevice, Stream stream)
at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream(GraphicsDevice graphicsDevice, Stream stream)

https://forums.cncnet.org/index.php?topic=7256.0;topicseen

@Rampastring

from xna-cncnet-client.

Rampastring avatar Rampastring commented on June 1, 2024

The issue in the post appears to be solved. According to the original poster on the topic on CnCNet forums (JetMod), "Update DontNetFramwork and it works.".

I also think this is a duplicate of #27.

from xna-cncnet-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.