0x0ade / FEZMod-Legacy

Kinda dead FEZ mod. Check the linked issue comment for further info.
https://github.com/0x0ade/FEZMod-Legacy/issues/5#issuecomment-341082111
MIT License
22 stars 2 forks source link

.Speedrun keeps hanging on loading screen with non-DISABLE_THREADING FNA #23

Closed 0x0ade closed 8 years ago

0x0ade commented 8 years ago

Closed issue by default, open if FEZ 1.12 releases without DISABLE_THREADING set for the FNA build or it somehow else happens.

Happens in multi-threaded and single-threaded modes. Building FNA with DISABLE_THREADING seems to fix this, but then an one-frame black flicker sometimes occurs between the loading and Polytron intro screens. I don't know if FEZ 1.12 releases with DISABLE_THREADING, although IIRC it has been mentioned.

Happens in FEZ 1.12 fna-unstable, either since or only noticed since the "MonoMod type addition" changes.

STDOUT:

(15:59:27.166) [FEZMod] JustAnotherFEZMod (FEZMod) 0.3a8
(15:59:27.200) [FEZMod] Running .NET 4.5+ codepath for setting the default culture.
(15:59:27.214) [FEZMod] Initializing FEZ mods...
(15:59:27.224) [FEZMod] Found referenced assembly mscorlib
(15:59:27.263) [FEZMod] Found referenced assembly Mono.Security
(15:59:27.269) [FEZMod] Found referenced assembly System.Xml
(15:59:27.282) [FEZMod] Found referenced assembly System.Security
(15:59:27.286) [FEZMod] Found referenced assembly System.Configuration
(15:59:27.289) [FEZMod] Found referenced assembly System
(15:59:27.316) [FEZMod] Found referenced assembly Mono.Posix
(15:59:27.321) [FEZMod] Found referenced assembly System.Core
(15:59:27.342) [FEZMod] Found referenced assembly FNA
(15:59:27.357) [FEZMod] Found referenced assembly Common
(15:59:27.359) [FEZMod] Found referenced assembly XnaWordWrapCore
(15:59:27.360) [FEZMod] Found referenced assembly SimpleDefinitionLanguage
(15:59:27.360) [FEZMod] Found referenced assembly ContentSerialization
(15:59:27.361) [FEZMod] Found referenced assembly System.Drawing
(15:59:27.374) [FEZMod] Found referenced assembly FezEngine
(15:59:27.398) [FEZMod] Pre-Initializing FEZMod.Engine
(15:59:27.400) [FEZMod] Found referenced assembly Steamworks.NET
(15:59:27.406) [FEZMod] Found referenced assembly EasyStorage
(15:59:27.409) [FEZMod] Found referenced assembly Mono.Cecil
(15:59:27.432) [FEZMod] Found referenced assembly MonoMod
(15:59:27.433) [FEZMod] Found referenced assembly FEZ
(15:59:27.457) [FEZMod] Pre-Initializing FEZMod.FezEditor
(15:59:27.462) [FEZMod] Pre-Initializing FEZDroid
(15:59:27.463) [FEZDroid] Checking if running in Android
(15:59:27.464) [FEZMod] Pre-Initializing FEZMod.Corruption
(15:59:27.466) [FEZMod] Pre-Initializing FEZMod.Speedrun
(15:59:27.481) [FEZMod] Checking for custom arguments...
(15:59:27.482) [FEZMod] Found -pphd / --pixel-perfect-high-definition
(15:59:27.498) [FEZMod.Engine] Found -nc / --no-cache
(15:59:27.499) [FEZMod.Engine] Found -mnc / --music-no-cache
(15:59:27.502) [FEZMod] Passing to FEZ...
ATTENTION: default value of option vblank_mode overridden by environment.
(15:59:28.014) [Version] 1.12 | 0.3a8, Build Date : 2015-11-24 11:36:15 PM
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
OpenGL Device: Gallium 0.4 on AMD RV730 (DRM 2.43.0, LLVM 3.6.2)
OpenGL Driver: 3.0 Mesa 11.1.0-devel (git-ef8eebc 2015-09-17 vivid-oibaf-ppa)
OpenGL Vendor: X.Org
MojoShader Profile: glsl120
EXT_swap_control_tear unsupported. Fall back to standard VSync.
(15:59:28.134) [Instancing] Hardware instancing is enabled
(15:59:28.135) [Multisampling] Multisample count is 0
(15:59:28.147) [SettingsManager] Screen set to {{Width:1366 Height:768 Format:Color}}
(15:59:28.147) [SettingsManager] Screen mode is : Borderless Fullscreen
(15:59:28.148) [SettingsManager] Backbuffer is 1366x768
(15:59:28.148) [SettingsManager] VSync is off
(15:59:28.148) [SettingsManager] Multisample count is 0
(15:59:28.249) [Threading] Multithreading is enabled
(15:59:29.875) [Intro] First draw done!
(15:59:30.381) [StaticPreloader] SharedContentManager preloaded.
(15:59:30.382) [StaticPreloader] Music library initialized.
(15:59:30.418) [StaticPreloader] Volume levels loaded.
(15:59:30.643) [StaticPreloader] Animations filled.
(15:59:30.644) [StaticPreloader] Text scroll pre-initialized.
(15:59:30.646) [StaticPreloader] World map pre-initialized.
(15:59:30.652) [StaticPreloader] Pause menu pre-initialized.
^\Full thread dump:

"<unnamed thread>"  at <unknown> <0xffffffff>
  at FezEngine.Tools.ServiceHelper.orig_RemoveComponent<T> (T) <IL 0x0002b, 0x001bf>
  at FezEngine.Tools.ServiceHelper.RemoveComponent<T> (T) <IL 0x0000b, 0x0003f>
  at FezEngine.Components.Waiter`1.Kill () <IL 0x0001d, 0x00057>
  at FezEngine.Components.Waiter`1.Update (Microsoft.Xna.Framework.GameTime) <IL 0x000a1, 0x00167>
  at Microsoft.Xna.Framework.Game.<UpdateAction>m__D (Microsoft.Xna.Framework.IUpdateable,Microsoft.Xna.Framework.GameTime) <IL 0x00002, 0x0001b>
  at Microsoft.Xna.Framework.Game/SortingFilteringCollection`1.ForEachFilteredItem<TUserData> (System.Action`2<T, TUserData>,TUserData) <IL 0x00093, 0x001e5>
  at Microsoft.Xna.Framework.Game.Update (Microsoft.Xna.Framework.GameTime) <IL 0x0000d, 0x0002f>
  at FezGame.Fez.orig_Update (Microsoft.Xna.Framework.GameTime) <IL 0x00039, 0x00137>
  at FezGame.Fez.Update (Microsoft.Xna.Framework.GameTime) <IL 0x00051, 0x000bc>
  at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime) <IL 0x00020, 0x00046>
  at Microsoft.Xna.Framework.Game.Tick () <IL 0x00216, 0x0056f>
  at Microsoft.Xna.Framework.SDL2_GamePlatform.RunLoop () <IL 0x005d9, 0x00867>
  at Microsoft.Xna.Framework.Game.Run () <IL 0x0005f, 0x000fc>
  at FezGame.Program.orig_MainInternal () <IL 0x0002f, 0x00093>
  at FezGame.Program.MainInternal () <IL 0x00001, 0x0002f>
  at Common.Logger.Try (System.Action) <IL 0x00001, 0x0001d>
  at FezGame.Program.orig_Main (string[]) <IL 0x00247, 0x00633>
  at FezGame.Program.Main (string[]) <IL 0x0008d, 0x0024b>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00060, 0xffffffff>

"<unnamed thread>"  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Threading.Monitor.Monitor_wait (object,int) <IL 0x0000e, 0xffffffff>
  at System.Threading.Monitor.Wait (object,int) <0x00042>
  at System.Threading.ManualResetEventSlim.Wait (int,System.Threading.CancellationToken) <0x002f7>
  at System.Threading.ManualResetEventSlim.Wait () <0x00028>
  at FezEngine.Tools.PersistentThread.DoActualWork () <IL 0x00011, 0x00032>
  at Common.Logger.Try (System.Action) <IL 0x00001, 0x0001d>
  at FezEngine.Tools.PersistentThread.DoWork () <IL 0x0000c, 0x0008f>
  at System.Threading.Thread.StartInternal () <0x000c2>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0005e, 0xffffffff>

"<unnamed thread>"  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Threading.Monitor.Monitor_wait (object,int) <IL 0x0000e, 0xffffffff>
  at System.Threading.Monitor.Wait (object,int) <0x00042>
  at System.Threading.ManualResetEventSlim.Wait (int,System.Threading.CancellationToken) <0x002f7>
  at System.Threading.ManualResetEventSlim.Wait () <0x00028>
  at Microsoft.Xna.Framework.Graphics.OpenGLDevice.ForceToMainThread (System.Action) <IL 0x0007f, 0x0022f>
  at Microsoft.Xna.Framework.Graphics.OpenGLDevice.GenIndexBuffer (bool,int,Microsoft.Xna.Framework.Graphics.IndexElementSize) <IL 0x00037, 0x00133>
  at Microsoft.Xna.Framework.Graphics.IndexBuffer..ctor (Microsoft.Xna.Framework.Graphics.GraphicsDevice,Microsoft.Xna.Framework.Graphics.IndexElementSize,int,Microsoft.Xna.Framework.Graphics.BufferUsage,bool) <IL 0x00050, 0x00088>
  at Microsoft.Xna.Framework.Graphics.IndexBuffer..ctor (Microsoft.Xna.Framework.Graphics.GraphicsDevice,Microsoft.Xna.Framework.Graphics.IndexElementSize,int,Microsoft.Xna.Framework.Graphics.BufferUsage) <IL 0x00007, 0x00023>
  at Microsoft.Xna.Framework.Graphics.SpriteBatch..ctor (Microsoft.Xna.Framework.Graphics.GraphicsDevice) <IL 0x00065, 0x0016f>
  at FezGame.Components.SpeedrunInfo.LoadContent () <IL 0x00007, 0x00033>
  at Microsoft.Xna.Framework.DrawableGameComponent.Initialize () <IL 0x00015, 0x00024>
  at FezGame.Components.SpeedrunInfo.Initialize () <IL 0x00001, 0x0000f>
  at Microsoft.Xna.Framework.Game.Components_ComponentAdded (object,Microsoft.Xna.Framework.GameComponentCollectionEventArgs) <IL 0x00007, 0x00029>
  at Microsoft.Xna.Framework.GameComponentCollection.OnComponentAdded (Microsoft.Xna.Framework.GameComponentCollectionEventArgs) <IL 0x00015, 0x0002f>
  at Microsoft.Xna.Framework.GameComponentCollection.InsertItem (int,Microsoft.Xna.Framework.IGameComponent) <IL 0x00030, 0x000a7>
  at System.Collections.ObjectModel.Collection`1.Add (T) <0x0008c>
  at FezEngine.Tools.ServiceHelper.orig_AddComponent (Microsoft.Xna.Framework.IGameComponent,bool) <IL 0x00027, 0x00086>
  at FezEngine.Tools.ServiceHelper.AddComponent (Microsoft.Xna.Framework.IGameComponent,bool) <IL 0x00002, 0x00017>
  at FezEngine.Tools.ServiceHelper.AddComponent (Microsoft.Xna.Framework.IGameComponent) <IL 0x00002, 0x0000f>
  at FezGame.Speedrun.FezSpeedrun.LoadComponents (FezGame.Fez) <IL 0x00005, 0x0003f>
  at (wrapper dynamic-method) object. (object,object[]) <IL 0x0001a, 0x0003a>
  at Common.ReflectionHelper.InvokeMethod (System.Reflection.MethodInfo,object,object[]) <IL 0x00008, 0x0002c>
  at FezGame.Mod.FEZMod.CallInEachModule (string,object[]) <IL 0x0008a, 0x00197>
  at FezGame.Mod.FEZMod.LoadComponents (FezGame.Fez) <IL 0x0008e, 0x00187>
  at FezGame.Fez.LoadComponents (FezGame.Fez) <IL 0x00007, 0x00017>
  at Common.Logger.Try<T> (System.Action`1<T>,T) <IL 0x00002, 0x00029>
  at FezGame.Components.Intro.DoPreLoad (bool) <IL 0x00017, 0x00097>
  at FezEngine.Tools.Worker`1<bool>.Act () <IL 0x0000c, 0x0001e>
  at FezEngine.Tools.PersistentThread.DoActualWork () <IL 0x0002c, 0x00062>
  at Common.Logger.Try (System.Action) <IL 0x00001, 0x0001d>
  at FezEngine.Tools.PersistentThread.DoWork () <IL 0x0000c, 0x0008f>
  at System.Threading.Thread.StartInternal () <0x000c2>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0005e, 0xffffffff>

"<unnamed thread>"  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Threading.Monitor.Monitor_wait (object,int) <IL 0x0000e, 0xffffffff>
  at System.Threading.Monitor.Wait (object,int) <0x00042>
  at System.Threading.ManualResetEventSlim.Wait (int,System.Threading.CancellationToken) <0x002f7>
  at System.Threading.ManualResetEventSlim.Wait () <0x00028>
  at FezEngine.Tools.PersistentThread.DoActualWork () <IL 0x0004d, 0x000a3>
  at Common.Logger.Try (System.Action) <IL 0x00001, 0x0001d>
  at FezEngine.Tools.PersistentThread.DoWork () <IL 0x0000c, 0x0008f>
  at System.Threading.Thread.StartInternal () <0x000c2>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0005e, 0xffffffff>
0x0ade commented 8 years ago

Fixed, should not happen again. See #24.