Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change from v3 to v4 #145

Open
kbridgford opened this issue Oct 27, 2024 · 2 comments
Open

Breaking change from v3 to v4 #145

kbridgford opened this issue Oct 27, 2024 · 2 comments

Comments

@kbridgford
Copy link

Running StardewValley as a headless server. I have everything working fine using jlesage/baseimage-gui:debian-11-v3.5. When I updated to jlesage/baseimage-gui:debian-11-v4 the app won't launch and gets the following error:

stardew  | [app         ] ./StardewValley: line 7: sw_vers: command not found
stardew  | [supervisor  ] all services started.
stardew  | [supervisor  ] service 'utils' exited (with status 126).
stardew  | [app         ] Unhandled exception. Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Failed to create graphics device!
stardew  | [app         ]  ---> System.NullReferenceException: Object reference not set to an instance of an object.
stardew  | [app         ]    at MonoGame.OpenGL.GL.LoadExtensions() in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\Graphics\OpenGL.cs:line 1443
stardew  | [app         ]    at MonoGame.OpenGL.GraphicsContext..ctor(IWindowInfo info) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\Graphics\GraphicsContext.SDL.cs:line 49
stardew  | [app         ]    at Microsoft.Xna.Framework.Graphics.GraphicsDevice.PlatformSetup() in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\Graphics\GraphicsDevice.OpenGL.cs:line 249
stardew  | [app         ]    at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Setup() in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Graphics\GraphicsDevice.cs:line 297
stardew  | [app         ]    at Microsoft.Xna.Framework.Graphics.GraphicsDevice..ctor(GraphicsAdapter adapter, GraphicsProfile graphicsProfile, Boolean preferHalfPixelOffset, PresentationParameters presentationParameters) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Graphics\GraphicsDevice.cs:line 273
stardew  | [app         ]    at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation gdi) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\GraphicsDeviceManager.cs:line 144
stardew  | [app         ]    at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice() in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\GraphicsDeviceManager.cs:line 115
stardew  | [app         ]    --- End of inner exception stack trace ---
stardew  | [app         ]    at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice() in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\GraphicsDeviceManager.cs:line 123
stardew  | [app         ]    at Microsoft.Xna.Framework.Game.DoInitialize() in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 941
stardew  | [app         ]    at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 465
stardew  | [app         ]    at StardewValley.Program.Main(String[] args) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Program.cs:line 200

I'm suspecting some issue with xterm. I reviewed the adaptations from 3.x section of the docs but didn't find anything promising.

Any pointers would be appreciated.

@kbridgford
Copy link
Author

After further troubleshooting, I think it broke when TigerVNC replaced x11vnc in V4.

@kbridgford
Copy link
Author

kbridgford commented Nov 12, 2024

I've tried taking the v4 image and removing TigerVNC and re-installing x11vnc and xvfb. I used the config files from commit 28f8215 as inspiration.

I still get the error Unhandled exception. Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Failed to create graphics device! when trying to launch the game.

Maybe it's something that changed with openbox between v3 and v4, but I have no idea what logs would help or what configs to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant