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

MissingFieldException: long .vorbis_info.rate - Gnomoria and Shipwreck #1

Open
rfht opened this issue Feb 4, 2018 · 3 comments
Open

Comments

@rfht
Copy link
Owner

rfht commented Feb 4, 2018

These 2 errors remain after exchanging the FNA.dll to mitigate the PtrToStringAnsi error.

1.)
Error reading Character_WindowPos Error reading SendMerchant_WindowPos Error reading Faction_WindowPos Error reading Butcher_WindowPos Error reading MarketStall_WindowPos Error reading Workshop_WindowPos Error reading Help_WindowPos Error reading Kingdom_WindowPos Error reading Military_WindowPos Error reading Population_WindowPos Error reading Notification_WindowPos Error reading Stock_WindowPos Error reading Stockpile_WindowPos

2.)
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method 'Microsoft.Xna.Framework.Graphics.Texture2D.TextureDataFromStreamEXT' not found. at Microsoft.Xna.Framework.Content.ContentTypeReader``1[T].Read (Microsoft.Xna.Framework.Content.ContentReader input, System.Object existingInstance) [0x00003] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Microsoft.Xna.Framework.Content.ContentReader.InnerReadObject[T] (T existingInstance) [0x00022] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T] (T existingInstance) [0x00000] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T] () [0x00000] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T] () [0x00006] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T] (System.String assetName, System.Action``1[T] recordDisposableObject) [0x001ee] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Microsoft.Xna.Framework.Content.ContentManager.Load[T] (System.String assetName) [0x0005a] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Game.GUI.Controls.Skin.Init () [0x0013d] in <be153375703e40fa8f9e8d76280ab84f>:0 at Game.GUI.Controls.Manager.SetSkin (Game.GUI.Controls.Skin skin) [0x00050] in <be153375703e40fa8f9e8d76280ab84f>:0 at Game.GUI.Controls.Manager.SetSkin (System.String name) [0x00008] in <be153375703e40fa8f9e8d76280ab84f>:0 at Game.GUI.Controls.Manager.Initialize () [0x00061] in <be153375703e40fa8f9e8d76280ab84f>:0 at Game.GUI.GuiManager.Initialize () [0x00000] in <be153375703e40fa8f9e8d76280ab84f>:0 at Game.GUI.GuiManager..ctor () [0x00046] in <be153375703e40fa8f9e8d76280ab84f>:0 at Game.GnomanEmpire.Initialize () [0x0002c] in <be153375703e40fa8f9e8d76280ab84f>:0 at Microsoft.Xna.Framework.Game.DoInitialize () [0x0000d] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Microsoft.Xna.Framework.Game.Run () [0x0000e] in <8447c3557eec45c5911d5f3fef8fe117>:0 at Game.Program.Main (System.String[] args) [0x00006] in <be153375703e40fa8f9e8d76280ab84f>:0

@rfht
Copy link
Owner Author

rfht commented Feb 18, 2018

Likely a function mismatch. May need to make a custom dll with the old function sig and suitable mojoshader sig.

@rfht
Copy link
Owner Author

rfht commented Sep 22, 2019

after getting past this error (code see [1]), another error surfaces that per Discord discussion is likely due to old vorbisfile [2].

[1]

                public static void TextureDataFromStreamEXT(
                        System.IO.Stream stream,
                        out int width,
                        out int height,
                        out byte[] pixels
                ) {
                        int requestedWidth = -1;
                        int requestedHeight = -1;
                        bool zoom = false;
                        FNAPlatform.TextureDataFromStream(
                                stream,
                                out width,
                                out height,
                                out pixels,
                                requestedWidth,
                                requestedHeight,
                                zoom
                        );
                }

[2]:

Controller 0: XBox360 Controller
Audio Engine Driver: FNA AudioDevice
IGLDevice: OpenGLDevice
OpenGL Device: AMD TURKS (DRM 2.50.0 / 6.6, LLVM 8.0.1)
OpenGL Driver: 3.1 Mesa 19.0.8
OpenGL Vendor: X.Org
MojoShader Profile: glsl120
EXT_swap_control_tear unsupported. Fall back to standard VSync.
Error reading Character_WindowPos
Error reading SendMerchant_WindowPos
Error reading Faction_WindowPos
Error reading Butcher_WindowPos
Error reading MarketStall_WindowPos
Error reading Workshop_WindowPos
Error reading Help_WindowPos
Error reading Kingdom_WindowPos
Error reading Military_WindowPos
Error reading Population_WindowPos
Error reading Notification_WindowPos
Error reading Stock_WindowPos
Error reading Stockpile_WindowPos
TextureDataFromStream: Unsupported image format
Problem reading cursor Cursors/Busy
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingFieldException: Field not found: long .vorbis_info.rate Due to: Could not find field in class
  at IrrKlang.ISoundEngine.Play2D (System.String path, System.Boolean loop, System.Boolean pause) [0x00041] in <be153375703e40fa8f9e8d76280ab84f>:0 
  at Game.AudioManager.PlaySong (System.String songName, System.Single fadeIn) [0x00035] in <be153375703e40fa8f9e8d76280ab84f>:0 
  at Game.GnomanEmpire.LoadContent () [0x00054] in <be153375703e40fa8f9e8d76280ab84f>:0 
  at Microsoft.Xna.Framework.Game.Initialize () [0x00065] in <8fed2ba211b845fb9e86097b7712a092>:0 
  at Game.GnomanEmpire.Initialize () [0x00088] in <be153375703e40fa8f9e8d76280ab84f>:0 
  at Microsoft.Xna.Framework.Game.DoInitialize () [0x0000f] in <8fed2ba211b845fb9e86097b7712a092>:0 
  at Microsoft.Xna.Framework.Game.Run () [0x00016] in <8fed2ba211b845fb9e86097b7712a092>:0 
  at Game.Program.Main (System.String[] args) [0x00006] in <be153375703e40fa8f9e8d76280ab84f>:0 
AL lib: (EE) alc_cleanup: 1 device not closed

@rfht
Copy link
Owner Author

rfht commented Sep 10, 2022

Same error in Shipwreck since summer 2022:

[2022-09-10 20:50:33] [INFO] Starting log /home/thfr/.local/share/Brushfire Games/Shipwreck/logs/2022-09-10-20-50-33.txt
[2022-09-10 20:50:33] [INFO] Welcome to Shipwreck.
[2022-09-10 20:50:33] [INFO] Copyright © Brushfire Games, LLC 2013-2016
[2022-09-10 20:50:33] [INFO] Build Version: 1.4.7.0
[2022-09-10 20:50:33] [INFO] Build Commit: ba1d9089cc2614ce452ffea7ffc842b6a8acecce
[2022-09-10 20:50:33] [INFO] Build Date (UTC): 2016-08-29 16:50:06
[2022-09-10 20:50:33] [INFO] CLR version: 4.0.30319.42000
[2022-09-10 20:50:33] [INFO] Referenced assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[2022-09-10 20:50:33] [INFO] Referenced assembly: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[2022-09-10 20:50:33] [INFO] Referenced assembly: FNA, Version=16.8.0.0, Culture=neutral, PublicKeyToken=null
[2022-09-10 20:50:33] [INFO] Referenced assembly: Steamworks.NET, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null
[2022-09-10 20:50:33] [INFO] Referenced assembly: SharpCompress, Version=0.11.3.0, Culture=neutral, PublicKeyToken=null
[2022-09-10 20:50:33] [INFO] Referenced assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[2022-09-10 20:50:33] [INFO] Culture:  - Invariant Language (Invariant Country)
[2022-09-10 20:50:33] [INFO] Keyboard layout: 1151
[2022-09-10 20:50:33] [INFO] Operating System: Unix 7.2.0.0
[2022-09-10 20:50:33] [INFO] 64-bit: OS? True, Process? True
[2022-09-10 20:50:33] [INFO] Processor count: 8
[2022-09-10 20:50:33] [INFO] Content directory: /home/thfr/games/fnaify/shipwreck/unzipped/content
[2022-09-10 20:50:33] [INFO] Game save directory: /home/thfr/.local/share/Brushfire Games/Shipwreck
[2022-09-10 20:50:33] [INFO] Steam running? True
[2022-09-10 20:50:33] [INFO] Steamworks initialized? True
[2022-09-10 20:50:33] [INFO] Controller 0: Microsoft X-Box One pad, GUID: 5e04d102, Mapping: 030000005e040000d102000001010000,Microsoft X-Box One pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux
[2022-09-10 20:50:33] [INFO] FNA3D Driver: OpenGL
[2022-09-10 20:50:33] [INFO] OpenGL Renderer: Mesa Intel(R) UHD Graphics (TGL GT1)
[2022-09-10 20:50:33] [INFO] OpenGL Driver: 4.6 (Compatibility Profile) Mesa 22.1.7
[2022-09-10 20:50:33] [INFO] OpenGL Vendor: Intel
[2022-09-10 20:50:33] [INFO] MojoShader Profile: glsl120
[2022-09-10 20:50:42] [ERROR] System.MissingFieldException: Field not found: long .vorbis_info.rate Due to: Could not find field in class
[2022-09-10 20:50:42] [ERROR]   at Shipwreck.Audio.Music.Play (System.String name, System.Boolean fade) [0x00075] in <bf4f9a82c42a486399592bee77f5151c>:0 
[2022-09-10 20:50:42] [ERROR]   at Shipwreck.Audio.Music.Update () [0x0004f] in <bf4f9a82c42a486399592bee77f5151c>:0 
[2022-09-10 20:50:42] [ERROR]   at Shipwreck.ShipwreckGame.Update (Microsoft.Xna.Framework.GameTime gameTime) [0x0002d] in <bf4f9a82c42a486399592bee77f5151c>:0 
[2022-09-10 20:50:42] [ERROR]   at Microsoft.Xna.Framework.Game.Tick () [0x000fc] in <aab932111fa74f7bb951d32b0d2686d4>:0 
[2022-09-10 20:50:42] [ERROR]   at Microsoft.Xna.Framework.Game.RunLoop () [0x00019] in <aab932111fa74f7bb951d32b0d2686d4>:0 
[2022-09-10 20:50:42] [ERROR]   at Microsoft.Xna.Framework.Game.Run () [0x00032] in <aab932111fa74f7bb951d32b0d2686d4>:0 
[2022-09-10 20:50:42] [ERROR]   at Shipwreck.ShipwreckMain.RunGame (System.String[] args, Shipwreck.Logging.Logger logger) [0x0000e] in <bf4f9a82c42a486399592bee77f5151c>:0 
[2022-09-10 20:50:42] [ERROR]   at Shipwreck.ShipwreckMain.RunGameWithExceptionHandling (System.String[] args, Shipwreck.Logging.Logger logger) [0x00000] in <bf4f9a82c42a486399592bee77f5151c>:0 
[2022-09-10 20:50:42] [ERROR] There was an error and the game crashed!
[2022-09-10 20:50:42] [ERROR] Please send an email to contact@brushfiregames.com including a description of what you were doing when the game crashed,
[2022-09-10 20:50:42] [ERROR] any game saves you have (located in /home/thfr/.local/share/Brushfire Games/Shipwreck), and attach this log file:
[2022-09-10 20:50:42] [ERROR] /home/thfr/.local/share/Brushfire Games/Shipwreck/logs/2022-09-10-20-50-33.txt
[2022-09-10 20:50:42] [ERROR] That will help us track down the problem and get it fixed. Thanks!

@rfht rfht changed the title Gnomoria: 2 error types - reading WindowPos and TextureDataFromStreamEXT not found MissingFieldException: long .vorbis_info.rate - Gnomoria and Shipwreck Sep 10, 2022
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