Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Game crashes when window is resized to min value vertically. #65

Closed
discosultan opened this issue Oct 27, 2014 · 0 comments
Closed

Game crashes when window is resized to min value vertically. #65

discosultan opened this issue Oct 27, 2014 · 0 comments
Assignees
Milestone

Comments

@discosultan
Copy link

Hello again!

When resizing is enabled

Window.AllowUserResizing = true;

and window is resized to its minimum value vertically, game will crash with the following exception

SharpDX.SharpDXException was unhandled
HResult=-2147024809
Message=HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.

Source=SharpDX
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)
at SiliconStudio.Paradox.Graphics.Texture2DBase.OnRecreate()
at SiliconStudio.Paradox.Graphics.ResumeManager.OnRecreate()
at SiliconStudio.Paradox.Games.GameBase.graphicsDeviceService_DeviceReset(Object sender, EventArgs e)
at SiliconStudio.Paradox.Games.GraphicsDeviceManager.OnDeviceReset(Object sender, EventArgs args)
at SiliconStudio.Paradox.Games.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
at SiliconStudio.Paradox.Games.GraphicsDeviceManager.ChangeOrCreateDevice(Boolean forceCreate)
at SiliconStudio.Paradox.Games.GraphicsDeviceManager.Window_ClientSizeChanged(Object sender, EventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at SiliconStudio.Paradox.Games.GameWindow.OnClientSizeChanged(Object source, EventArgs e)
at SiliconStudio.Paradox.Games.GameForm.OnUserResized(EventArgs e)
at SiliconStudio.Paradox.Games.GameForm.OnResizeEnd(EventArgs e)
at System.Windows.Forms.Form.WmExitSizeMove(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at SiliconStudio.Paradox.Games.GameForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
@xoofx xoofx added the bug label Oct 28, 2014
@xoofx xoofx self-assigned this Oct 28, 2014
@xen2 xen2 assigned xen2 and unassigned xoofx Nov 4, 2014
@xen2 xen2 added this to the beta03 milestone Nov 4, 2014
@xen2 xen2 added the fixed label Nov 4, 2014
stride-bot pushed a commit that referenced this issue Feb 11, 2017
…yPaste to master-1.9

* commit '5eb3b76e593bafd68beebff241134a76e16b7990':
  [Editor] Fix issues with collection of strings. Also cleanup AssetPropertyPasteProcessor to not rely on IEnumerable or IDictionary interfaces but rather use collection and dictionary descriptors. (XK-4259)
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants