Mac Beta v11 debugger intermittent problems

Comments

2 comments

  • Adrian Nelson

    It just happened again, although the windows were blank as per screenshot below the debugger buttons were available so I clicked the 'step in' button and it crashed YoYoRunner, the UI log shows the following bit after the screenshot around the time which may or may not be relevant:

    [06:58:41:711(4e8a)] VMCompiler:InitSession failed: Exception has been thrown by the target of an invocation.
    [06:58:41:712(4e8a)] InnerException : Could not load type of field 'GMAssetCompiler.GMOptions:<BackImage>k__BackingField' (44) due to: Could not load file or assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    [06:58:41:712(4e8a)] at GMAssetCompiler.GMAssets..ctor (YoYoStudio.Resources.GMProject _project, System.String _baseDir) [0x00038] in <f560a7332e2d4646ada7c46f2b280b61>:0
    at GMAssetCompiler.Program.InitSession (YoYoStudio.Resources.GMProject _project, System.String _projectFile) [0x0023a] in <f560a7332e2d4646ada7c46f2b280b61>:0
    at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
    at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <ab04ed2808f745289a3666eaaadaf8fd>:0
    [06:58:41:804(4e8a)] starting /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono /Users/Shared/GameMakerStudio2-Beta/Cache/runtimes/runtime-23.1.1.161/bin/Igor.exe -j=8 -options="/var/folders/s1/xhck085515zf3kvw89ft18140000gn/GameMakerStudio2-Beta/GMS2TEMP/build.bff" -v -- Mac Run
    [06:58:57:613(4e8a)] Unable to compile watch:VMSession not ready
    [06:58:57:616(4e8a)] Exception in ,Void Tick(System.TimeSpan) : System.NullReferenceException: Object reference not set to an instance of an object
    at YoYoStudio.GMDebug.DebuggerManager.AssociateWithResource (YoYoStudio.GMDebug.ScriptLocation _scriptPos) [0x0016d] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.DebuggerManager.DebuggerComms_OnReceivedData (System.Object _sender, YoYoStudio.GMDebug.ReceivedDataEventArgs _args) [0x00156] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.GMDebugger.DataReceivedCallback (YoYoStudio.GMDebug.Utils.DataBuffer _resultBuffer) [0x0010d] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.DataRequestOp.ResultOperation () [0x00008] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.FileAPI.AsyncQueue.DispatchCompletedRequests (System.Int32 _amount) [0x00047] in <36d0779f96844a5eb82e25e966fd9e58>:0
    at YoYoStudio.GMDebug.GMDebugger.Process () [0x00000] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.GMDebugger.Tick (System.TimeSpan _delta) [0x0012b] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.DebuggerManager.Tick (System.TimeSpan _delta) [0x000ea] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at (wrapper dynamic-method) YoYoStudio.GMDebug.DebuggerManager.WeakDelegate(object,object[])
    at YoYoStudio.Core.Utils.WeakDelegate`1[T].Invoke (System.Object[] _args) [0x00008] in <36d0779f96844a5eb82e25e966fd9e58>:0
    [06:58:57:830(4e8a)] Exception in ,Void Tick(System.TimeSpan) : System.NullReferenceException: Object reference not set to an instance of an object
    at YoYoStudio.GMDebug.ScriptLocation.IsEqual (YoYoStudio.GMDebug.ScriptLocation _bp) [0x00000] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.ScriptLocation.Equals (System.Object obj) [0x0000a] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.DebuggerManager.DebuggerComms_OnReceivedData (System.Object _sender, YoYoStudio.GMDebug.ReceivedDataEventArgs _args) [0x000e5] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.GMDebugger.DataReceivedCallback (YoYoStudio.GMDebug.Utils.DataBuffer _resultBuffer) [0x0010d] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.DataRequestOp.ResultOperation () [0x00008] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.FileAPI.AsyncQueue.DispatchCompletedRequests (System.Int32 _amount) [0x00047] in <36d0779f96844a5eb82e25e966fd9e58>:0
    at YoYoStudio.GMDebug.GMDebugger.Process () [0x00000] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.GMDebugger.Tick (System.TimeSpan _delta) [0x0012b] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at YoYoStudio.GMDebug.DebuggerManager.Tick (System.TimeSpan _delta) [0x000ea] in <9602e371e1f2416e8b7bcee2b6d9cc9d>:0
    at (wrapper dynamic-method) YoYoStudio.GMDebug.DebuggerManager.WeakDelegate(object,object[])
    at YoYoStudio.Core.Utils.WeakDelegate`1[T].Invoke (System.Object[] _args) [0x00008] in <36d0779f96844a5eb82e25e966fd9e58>:0
    [07:00:28:313(4e8a)] Failed to read packet header; read 0 bytes
    [07:00:28:687(4e8a)] elapsed time 00:01:46.8831780s for command "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" /Users/Shared/GameMakerStudio2-Beta/Cache/runtimes/runtime-23.1.1.161/bin/Igor.exe -j=8 -options="/var/folders/s1/xhck085515zf3kvw89ft18140000gn/GameMakerStudio2-Beta/GMS2TEMP/build.bff" -v -- Mac Run started at 07/14/2020 06:58:41
    [07:00:34:288(4e8a)] Reconnect timeout
    [07:01:00:23(4e8a)] Closing debugger socket

     

    0
    Comment actions Permalink
  • Adrian Nelson

    OK - it finally happened again, the debugger hit my breakpoint and the first screenshot resulted. As you can see no source was shown in the main debugger window, however I could click on the call stack (sometimes this is blank so I just have to use the keyboard to step over one statement but in this case I could click on the source file) on the topmost source file and the source is then shown in the window. See screenshot 2, however the various step buttons are greyed out until I use a keyboard shortcut and they magically appear. This does not happen very often, maybe less than once per day and to me it feels like a weird UI update race condition.

    screenshot 1 - no source code and no debugger step buttons available:

     

    screenshot 2, source code now display but still no step buttons available:

    0
    Comment actions Permalink

Please sign in to leave a comment.