{"action":"created","issue":{"url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/368","repository_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced","labels_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/368/comments","events_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/368/events","html_url":"https://github.com/TimothyLuke/GnomeSequencer-Enhanced/issues/368","id":279972625,"number":368,"title":"Two GSE errors: one on load, one when clicking 'send'","user":{"login":"dedphrog","id":32372195,"avatar_url":"https://avatars2.githubusercontent.com/u/32372195?v=4","gravatar_id":"","url":"https://api.github.com/users/dedphrog","html_url":"https://github.com/dedphrog","followers_url":"https://api.github.com/users/dedphrog/followers","following_url":"https://api.github.com/users/dedphrog/following{/other_user}","gists_url":"https://api.github.com/users/dedphrog/gists{/gist_id}","starred_url":"https://api.github.com/users/dedphrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dedphrog/subscriptions","organizations_url":"https://api.github.com/users/dedphrog/orgs","repos_url":"https://api.github.com/users/dedphrog/repos","events_url":"https://api.github.com/users/dedphrog/events{/privacy}","received_events_url":"https://api.github.com/users/dedphrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-07T01:56:20Z","updated_at":"2018-03-29T20:46:34Z","closed_at":null,"author_association":"NONE","body":"Hi All,\r\n\r\nI am a programming  noob and would appreciate assistance. I am attempting to install GSE for the first time. I am receiving two errors: one on load, and another when clicking the 'send' button to generate a macro from the GSE GUI. Please see them below.\r\n\r\nI've attempted reinstalling and disabling a few addons, but honestly I feel like I am looking for a needle in a haystack. Cheers!\r\n\r\n**# On Load Error:**\r\n50x GSE_GUI\\Editor.lua:728: attempt to index local 'container' (a nil value)\r\nGSE_GUI\\Editor.lua:728: in function `GUISelectEditorTab'\r\nGSE_GUI\\Editor.lua:59: in function <GSE_GUI\\Editor.lua:54>\r\n\r\nLocals:\r\ncontainer = nil\r\nevent = \"Resize\"\r\ngroup = \"group\"\r\n(*temporary) = nil\r\n(*temporary) = nil\r\n(*temporary) = nil\r\n(*temporary) = nil\r\n(*temporary) = nil\r\n(*temporary) = \"attempt to index local 'container' (a nil value)\"\r\neditframe = <table> {\r\n Sequence = <table> {\r\n }\r\n SequenceName = \"\"\r\n Heroic = 1\r\n save = false\r\n Left = 503.33331298828\r\n sizer_e = <unnamed> {\r\n }\r\n Dungeon = 1\r\n Party = 1\r\n Raid = 1\r\n base = <table> {\r\n }\r\n Hide = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:127\r\n AceGUIWidgetVersion = 26\r\n Bottom = 710.00006103516\r\n PVP = 1\r\n ClassID = 1\r\n ApplyStatus = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:149\r\n Show = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:131\r\n titlebg = <unnamed> {\r\n }\r\n content = <unnamed> {\r\n }\r\n OnRelease = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:93\r\n OnWidthSet = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:98\r\n Mythic = 1\r\n SetStatusText = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:123\r\n sizer_se = <unnamed> {\r\n }\r\n OnAcquire = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:83\r\n EnableResize = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:135\r\n userdata = <table> {\r\n }\r\n children = <table> {\r\n }\r\n OnHeightSet = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:108\r\n type = \"Frame\"\r\n SetTitle = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:118\r\n Width = 700.00006103516\r\n SelectedTab = \"group\"\r\n SetStatusTable = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\widgets\\AceGUIContainer-Frame.lua:143\r\n titletext = <unnamed> {\r\n }\r\n LayoutFunc = <function> defined @AngryAssignments\\libs\\AceGUI-3.0\\AceGUI-3.0.lua:629\r\n statustext = <unnamed> {\r\n }\r\n events = <table> {\r\n }\r\n Default = 1\r\n Height = 511.99993896484\r\n sizer_s = <unnamed> {\r\n }\r\n frame = <unnamed> {\r\n }\r\n localstatus = <table> {\r\n }\r\n}\r\nGSE = <table> {\r\n ResetButtons = <function> defined @GSE\\API\\Storage.lua:519\r\n GUIShowDebugWindow = <function> defined @GSE_GUI\\DebugWindow.lua:17\r\n GetClassIcon = <function> defined @GSE\\API\\CharacterFunctions.lua:41\r\n StartOOCTimer = <function> defined @GSE\\API\\Events.lua:321\r\n CloneSequence = <function> defined @GSE\\API\\Storage.lua:14\r\n SplitCastSequence = <function> defined @GSE\\API\\StringFunctions.lua:79\r\n CancelTimer = <function> defined @AngryAssignments\\libs\\AceTimer-3.0\\AceTimer-3.0.lua:145\r\n GetCurrentTalents = <function> defined @GSE\\API\\CharacterFunctions.lua:86\r\n UnregisterComm = <function> defined @AdiBags\\libs\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:179\r\n StopOOCTimer = <function> defined @GSE\\API\\Events.lua:326\r\n OutputQueue = <table> {\r\n }\r\n MediaPath = \"Addons\\GSE\\Media\"\r\n GUIRecordFrame = <table> {\r\n }\r\n DebugDumpButton = <function> defined @GSE\\API\\Storage.lua:632\r\n GetSpecNames = <function> defined @GSE\\API\\CharacterFunctions.lua:72\r\n GUIConfirmDeleteSequence = <function> defined @GSE_GUI\\GUIFunctions.lua:16\r\n CurrentGCD = 0\r\n GSSlash = <function> defined @GSE\\API\\Events.lua:266\r\n inDungeon = false\r\n UsedSequences = <table> {\r\n }\r\n ScheduleTimer = <function> defined @AngryAssignments\\libs\\AceTimer-3.0\\AceTimer-3.0.lua:92\r\n ImportCompressedMacroCollection = <function> defined @GSE\\API\\Storage.lua:158\r\n UnsavedOptions = <table> {\r\n }\r\n UpdateIcon = <function> defined @GSE\\API\\Storage.lua:989\r\n ADDON_LOADED = <function> defined @GSE\\API\\Eve\r\n\r\n\r\n\r\n**# Send error:**\r\n13x GSE_GUI\\Editor.lua:146: attempt to concatenate field 'ClassId' (a nil value)\r\nGSE_GUI\\Editor.lua:146: in function <GSE_GUI\\Editor.lua:146>\r\n(tail call): ?\r\n[C]: ?\r\n[string \"safecall Dispatcher[4]\"]:9: in function <[string \"safecall Dispatcher[4]\"]:5>\r\n(tail call): ?\r\n...dOns\\AngryAssignments\\libs\\AceGUI-3.0\\AceGUI-3.0-34.lua:314: in function `Fire'\r\n...ents\\libs\\AceGUI-3.0-34\\widgets\\AceGUIWidget-Button.lua:22: in function <...ents\\libs\\AceGUI-3.0\\widgets\\AceGUIWidget-Button.lua:19>\r\n\r\nLocals:\r\nnil"},"comment":{"url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/comments/377366971","html_url":"https://github.com/TimothyLuke/GnomeSequencer-Enhanced/issues/368#issuecomment-377366971","issue_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/368","id":377366971,"user":{"login":"TimothyLuke","id":573717,"avatar_url":"https://avatars2.githubusercontent.com/u/573717?v=4","gravatar_id":"","url":"https://api.github.com/users/TimothyLuke","html_url":"https://github.com/TimothyLuke","followers_url":"https://api.github.com/users/TimothyLuke/followers","following_url":"https://api.github.com/users/TimothyLuke/following{/other_user}","gists_url":"https://api.github.com/users/TimothyLuke/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyLuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyLuke/subscriptions","organizations_url":"https://api.github.com/users/TimothyLuke/orgs","repos_url":"https://api.github.com/users/TimothyLuke/repos","events_url":"https://api.github.com/users/TimothyLuke/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyLuke/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T20:46:34Z","updated_at":"2018-03-29T20:46:34Z","author_association":"OWNER","body":"Hi Steven,\n\nThanks for this.  This is a race condition that I have been trying to cause so I could debug it.  The hard part was finding another addon that would trigger it reliably so I could see what is happening.  For example Elv + GSE doesn’t cause it. \n\nThe only time I got close was having an addon with an older AceGui lib with a modified internal number to run has a higher version.\n\n\nTimothyLuke\n\n> On 30 Mar 2018, at 2:58 am, Steffen <notifications@github.com> wrote:\n> \n> @TimothyLuke\n> \n> Hi, I'm one of the maintainers of ElvUI. I came here because we got a report about this error (even though it does not mention ElvUI), and I wanted to help out narrow down the issue.\n> \n> I looked through your code, and I think I have an idea about what triggers this error:\n> \n> You try to reference container (which is actually a reference to .ContentContainer) before it has been created by yourself.\n> This is what happens:\n> \n> On line 54 you set \"OnSizeChanged\" script for editframe.frame. The function calls GSE.GUISelectEditorTab(editframe.ContentContainer, \"Resize\", editframe.SelectedTab)\n> On line you create the .ContentContainer reference inside the GSE.GUIEditorPerformLayout(frame) function: editframe.ContentContainer = tabgrp\n> Now, while you may not experience any errors with just GSE enabled, you are still the addon responsible for the error. You introduce code which expects an element to exist very early on, but you don't actually create that element until later in your code. If any 3rd party addon does something which causes the \"OnSizeChanged\" script to execute for \"editframe.frame\", and if this happens before your GSE.GUIEditorPerformLayout is executed, then you get the error.\n> \n> You need to put in place some kind of failsafe to make sure that you don't try to run your OnSizeChanged code until your addon is actually ready for it.\n> \n> I hope this helps.\n> \n> Best regards,\n> Steffen\n> \n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n> \n"}}
{"actor":{"display_login":"TimothyLuke"}}