Skip to content

Instantly share code, notes, and snippets.

Watchign $exception.GetBaseException().StackTrace--------------------------
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <204f770036d441bb8dfd3daba3550e83>:0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <204f770036d441bb8dfd3daba3550e83>:0
at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <204f770036d441bb8dfd3daba3550e83>:0
at System.Collections.ObjectModel.Collection`1[T].System.Collections.IList.get_Item (System.Int32 index) [0x00000] in <204f770036d441bb8dfd3daba3550e83>:0
at Eto.EnumerableChangedHandler`2[TItem,TCollection].InternalElementAt (System.Int32 index) [0x00030] in <2c3b8fa69720444b9de0309b3a5e40aa>:0
at Eto.CollectionChangedHandler`2[TItem,TCollection].ElementAt (System.Int32 index) [0x0001c] in <2c3b8fa69720444b9de0309b3a5e40aa>:0
at Eto.GtkSharp.Forms.Controls.GtkEnumerableModel`1[TItem].GetValue (Gtk.TreeIter iter, System.
@se5a
se5a / gist:7e54feb3ab56ef479a0df640f2abc77d
Created November 12, 2017 11:36
AvalonStudio error.
$ dotnet ./AvalonStudio.dll
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
(dotnet:20419): GLib-GObject-CRITICAL **: g_object_set_qdata: assertion 'G_IS_OBJECT (object)' failed
(dotnet:20419): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer
(dotnet:20419): GLib-GObject-CRITICAL **: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
@se5a
se5a / gist:dc7221ad7e97d6970de22e340880f0d2
Created November 12, 2017 12:20
AvalonStudio error2
$ dotnet ./AvalonStudio.dll
(dotnet:31697): Gtk-CRITICAL **: gtk_window_resize: assertion 'width > 0' failed
(dotnet:31697): Gtk-CRITICAL **: gtk_window_resize: assertion 'width > 0' failed
(dotnet:31697): Gtk-CRITICAL **: gtk_window_resize: assertion 'width > 0' failed
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
(dotnet:31697): GLib-GObject-CRITICAL **: g_object_set_qdata: assertion 'G_IS_OBJECT (object)' failed
@se5a
se5a / gist:4ec9a353b3349e45b094421f3c36393e
Created November 12, 2017 21:24
AS crash while building AS in AS.
Unhandled Exception: System.AggregateException: One or more errors occurred. (The method or operation is not implemented.) ---> System.NotImplementedException: The method or operation is not implemented.
at Microsoft.Samples.Debugging.CorDebug.CoreClrShimUtil.CreateCorDebugImpl(DbgShimInterop dbgShimInterop, UInt32 processId, TimeSpan runtimeLoadTimeout, Void* resumeHandle, Action`2 onSetup) in /mnt/98448323-4372-4c8a-904a-30b587cc3685/Programing/AvalonStudio/debugger-libs/CorApi2/debug/CoreClrShimUtil.cs:line 114
at Microsoft.Samples.Debugging.CorDebug.CoreClrShimUtil.CreateCorDebugForCommand(DbgShimInterop dbgShimInterop, String command, String workingDir, IDictionary`2 env, TimeSpan runtimeLoadTimeout, Action`2 onSetup, Int32& procId) in /mnt/98448323-4372-4c8a-904a-30b587cc3685/Programing/AvalonStudio/debugger-libs/CorApi2/debug/CoreClrShimUtil.cs:line 51
at Mono.Debugging.Win32.CoreClrDebuggerSession.<>c__DisplayClass3_0.<OnRun>b__0() in /mnt/98448323-4372-4c8a-904a-30b587cc3685/Programing/Avalo
Stacktrace:
at <unknown> <0xffffffff>
* Assertion at metadata.c:1042, condition `index < meta->heap_strings.size' not met
at (wrapper managed-to-native) System.Reflection.Assembly.InternalGetReferencedAssemblies (System.Reflection.Assembly) [0x0001a] in <62f5937022004555807e6c57c33f6684>:0
at System.Reflection.Assembly.GetReferencedAssemblies (System.Reflection.Assembly) [0x00000] in <62f5937022004555807e6c57c33f6684>:0
at System.Reflection.MonoAssembly.GetReferencedAssemblies () [0x00000] in <62f5937022004555807e6c57c33f6684>:0
at Microsoft.NET.Build.Tasks.GetDependsOnNETStandard.GetFileDependsOnNETStandard (string) [0x00020] in <4f5fb896e349410580f8a3f8f63ac807>:0
at Microsoft.NET.Build.Tasks.GetDependsOnNETStandard.AnyReferenceDependsOnNETStandard () [0x00020] in <4f5fb896e349410580f8a3f8f63ac807>:0
@se5a
se5a / gist:5e754b8f137a79c7e53859e4b3ce4b6d
Created March 7, 2018 07:59
monodevelop make install fail
se5a@se5aMint ~/Desktop/monodevelop-7.4 $ make install
Making install in external
make[1]: Entering directory '/home/se5a/Desktop/monodevelop-7.4/external'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/home/se5a/Desktop/monodevelop-7.4/external'
Making install in .
make[1]: Entering directory '/home/se5a/Desktop/monodevelop-7.4'
touch vcrevision
MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'.
All packages listed in packages.config are already installed.
/// <summary>
/// An experimental distance value struct.
/// idea here was to simply define what a distance value was and handle very small or very large numbers equaly well.
/// </summary>
public struct DistanceValue
{
public enum ValueTypeEnum : sbyte//number of zeros.
{
NanoMeters = -9,
MicroMeters = -6,
System.NullReferenceException: Object reference not set to an instance of an object
at at (wrapper managed-to-native) SDL2.SDL.SDL_CreateTextureFromSurface(intptr,intptr)
at Pulsar4X.SDL2UI.GlobalUIState..ctor (ImGuiSDL2CS.ImGuiSDL2CSWindow viewport) [0x0009b] in /mnt/98448323-4372-4c8a-904a-30b587cc3685/Programing/Pulsar4X/Pulsar4x/Pulsar4X/Pulsar4X.ImGuiNetUI/GlobalUIState.cs:74
at Pulsar4X.SDL2UI.PulsarMainWindow..ctor () [0x0003d] in /mnt/98448323-4372-4c8a-904a-30b587cc3685/Programing/Pulsar4X/Pulsar4x/Pulsar4X/Pulsar4X.ImGuiNetUI/Program.cs:47
at Pulsar4X.SDL2UI.Program.Main () [0x00001] in /mnt/98448323-4372-4c8a-904a-30b587cc3685/Programing/Pulsar4X/Pulsar4x/Pulsar4X/Pulsar4X.ImGuiNetUI/Program.cs:19
Starting log.
User is on Linux, because apparently life isn't hard enough already.
Initialising SDL video subsystem
Loading XML files
Texture Level 0
Multisampling Level 1
Text Clarity Level 1
Dyslexic 1
Resolutions Supported:
1920:1080
/// <summary>
/// 2d! vector.
/// </summary>
/// <returns>The orbital vector ralitive to the parent</returns>
/// <param name="sgp">Standard Grav Perameter. in AU</param>
/// <param name="position">Ralitive Position.</param>
/// <param name="sma">SemiMajorAxis</param>
/// <param name="loP">Longditude of Periapsis (LoAN+ AoP) </param>
public static Vector4 PreciseOrbitalVector(double sgp, Vector4 position, double sma, double eccentricity, double loP)
{