OpenRails crashing on alt-enter fullscreen/windowed toggle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • plethaus21
    Senior Member
    • Jul 2006
    • 105
    • .

    #1

    OpenRails crashing on alt-enter fullscreen/windowed toggle

    I am running the current official "Testing" branch from the main openrails.org website, but I have tested the last stable version as well. The problem I'm having is that OR is crashing to desktop sometimes when switching from fullscreen to windowed (or vice versa) using alt enter. I do this because I have a Gsync monitor which needs exclusive fullscreen on Windows 10 in order to work. I was hoping there might be some combination of options or some other fix. Thanks!

    This was in the Event Viewer:

    Application: RunActivityLAA.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    at Microsoft.Xna.Framework.Graphics.Texture2D.CreateT exture(Microsoft.Xna.Framework.Graphics.GraphicsDe vice, Int32, Int32, Int32, UInt32, _D3DPOOL, Microsoft.Xna.Framework.Graphics.SurfaceFormat)
    at Microsoft.Xna.Framework.Graphics.ResolveTexture2D. .ctor(Microsoft.Xna.Framework.Graphics.GraphicsDev ice, Int32, Int32, Int32, Microsoft.Xna.Framework.Graphics.SurfaceFormat)
    at Orts.Viewer3D.Popups.WindowManager.ScreenChanged()
    at Orts.Viewer3D.Viewer.BeginRender(Orts.Viewer3D.Ren derFrame)
    at Orts.Viewer3D.Processes.GameStateViewer3D.BeginRen der(Orts.Viewer3D.RenderFrame)
    at Orts.Viewer3D.Processes.RenderProcess.BeginDraw()
    at Orts.Viewer3D.Processes.Game.BeginDraw()
    at Microsoft.Xna.Framework.Game.DrawFrame()
    at Microsoft.Xna.Framework.Game.Tick()
    at Microsoft.Xna.Framework.Game.HostIdle(System.Objec t, System.EventArgs)
    at Microsoft.Xna.Framework.GameHost.OnIdle()
    at Microsoft.Xna.Framework.WindowsGameHost.Applicatio nIdle(System.Object, System.EventArgs)
    at System.Windows.Forms.Application+ThreadContext.Sys tem.Windows.Forms.UnsafeNativeMethods.IMsoComponen t.FDoIdle(Int32)
    at System.Windows.Forms.Application+ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(IntPtr, Int32, Int32)
    at System.Windows.Forms.Application+ThreadContext.Run MessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
    at System.Windows.Forms.Application+ThreadContext.Run MessageLoop(Int32, System.Windows.Forms.ApplicationContext)
    at System.Windows.Forms.Application.Run(System.Window s.Forms.Form)
    at Microsoft.Xna.Framework.WindowsGameHost.Run()
    at Microsoft.Xna.Framework.Game.Run()
    at Orts.Program.Main(System.String[])
  • geepster775
    2500 Post Veteran


    • Sep 2006
    • 2846
    • .
    • General

    #2
    Is Alt-Tab equally unstable?
    My Open Rails videos https://www.youtube.com/@lakecities3663/videos

    Comment

    Working...