Error:
1x Grail\Grail-108.lua:3642: attempt to index field '?' (a nil value)
[string "@Grail\Grail-108.lua"]:3642: in function _LearnWorldQuest' [string "@Grail\Grail-108.lua"]:3513: in function_AddWorldQuests'
[string "@Grail\Grail-108.lua"]:2075: in function ?' [string "@Grail\Grail-108.lua"]:10580: in function_Tooltip_OnEvent'
[string "@Grail\Grail-108.lua"]:11166: in function <Grail\Grail.lua:11166>
Locals:
self =
{
QuestBreadcrumbsFor = defined @Grail\Grail.lua:9196
bitMaskClassPriest = 256
IsBugged = defined @Grail\Grail.lua:7067
bitMaskGenderMale = 8192
_RecordArtifactLevels = defined @Grail\Grail.lua:9794
bitMaskCompleted = 1
_PrepareWorldQuestSelfNewNPCs = defined @Grail\Grail.lua:3390
QuestLocationsAccept = defined @Grail\Grail.lua:9354
IsAvailable = defined @Grail\Grail.lua:7049
NO_SKILL = -1
_HandleEventGarrisonBuildingActivated = defined @Grail\Grail.lua:6754
bitMaskClassAll = 268443644
_HandleEventLootClosed = defined @Grail\Grail.lua:6782
bitMaskQuestLegendary = 4096
_RemoveDelayedNotification = defined @Grail\Grail.lua:5187
reputationFriends =
{
}
NPC_TYPE_BY = "BY"
NPC_TYPE_DROP = "DROP"
_PostDelayedNotification = defined @Grail\Grail.lua:8463
_MarkQuestType = defined @Grail\Grail.lua:5556
receivedCalendarUpdateEventList = true
bitMaskClassDeathKnight = 4
QuestNPCPrerequisiteTurnins = defined @Grail\Grail.lua:9525
_ProcessServerBackup = defined @Grail\Grail.lua:8885
bitMaskQuestVariableLevel = 4278190080
MeetsRequirementGroup = defined @Grail\Grail.lua:8045
_EvaluateCodeAsPrerequisite = defined @Grail\Grail.lua:6071
bitMaskInLog = 16
bitMaskQuestWeekly = 4
bitMaskHolidayNoble = 256
MeetsRequirementProfession = defined @Grail\Grail.lua:8130
DoesNPCExist = defined @Grail\Grail.lua:6036
npcNames =
Yes that does fix the Problem with line 6342, but then another one pops up that was not reported before.
1x Grail\Grail-108.lua:7535: attempt to concatenate local 'npcId' (a nil value)
[string "@Grail\Grail-108.lua"]:7535: in function LearnNPCLocation' [string "@Grail\Grail-108.lua"]:3646: in function_LearnWorldQuest'
[string "@Grail\Grail-108.lua"]:3513: in function _AddWorldQuests' [string "@Grail\Grail-108.lua"]:2075: in function?'
[string "@Grail\Grail-108.lua"]:10581: in function `_Tooltip_OnEvent'
[string "@Grail\Grail-108.lua"]:11167: in function <Grail\Grail.lua:11167>
Locals:
self =
{
QuestBreadcrumbsFor = defined @Grail\Grail.lua:9197
bitMaskClassPriest = 256
IsBugged = defined @Grail\Grail.lua:7068
bitMaskGenderMale = 8192
_RecordArtifactLevels = defined @Grail\Grail.lua:9795
bitMaskCompleted = 1
_PrepareWorldQuestSelfNewNPCs = defined @Grail\Grail.lua:3390
QuestLocationsAccept = defined @Grail\Grail.lua:9355
IsAvailable = defined @Grail\Grail.lua:7050
NO_SKILL = -1
_HandleEventGarrisonBuildingActivated = defined @Grail\Grail.lua:6755
bitMaskClassAll = 268443644
_HandleEventLootClosed = defined @Grail\Grail.lua:6783
bitMaskQuestLegendary = 4096
_RemoveDelayedNotification = defined @Grail\Grail.lua:5188
reputationFriends =
{
}
NPC_TYPE_BY = "BY"
NPC_TYPE_DROP = "DROP"
_PostDelayedNotification = defined @Grail\Grail.lua:8464
_MarkQuestType = defined @Grail\Grail.lua:5557
receivedCalendarUpdateEventList = true
bitMaskClassDeathKnight = 4
QuestNPCPrerequisiteTurnins = defined @Grail\Grail.lua:9526
_ProcessServerBackup = defined @Grail\Grail.lua:8886
bitMaskQuestVariableLevel = 4278190080
MeetsRequirementGroup = defined @Grail\Grail.lua:8046
_EvaluateCodeAsPrerequisite = defined @Grail\Grail.lua:6072
bitMaskInLog = 16
bitMaskQuestWeekly = 4
bitMaskHolidayNoble = 256
MeetsRequirementProfession = defined @Grail\Grail.lua:8131
DoesNPCExist = defined @Grail\Grail.lua:6037
npcNames =
I tried to fix the function "LearnNPCLocation" by adding
npcId = npcId or ''
in line 7535, but that led to other errors in "_AddNPCLocation" (as the empty ID is given to that function) and if I'm setting npcID there to 0 I have multiple errors in other lines (and as I am not sure what Im actually doing, I have undone my changes :) )
For the line I asked you to add earlier, can you replace it with:
print("*** learning for", mapId)
Basically I would like to see what the last mapId is before the crash because I do not know where it is coming from. I know it should not be nil, but it seems to be something unexpected.
learning for 62
learning for 62
learning for 62
learning for 62
learning for 62
learning for 62
learning for 627
learning for 630
learning for 627
learning for 630
*** learning for 646
Thanks...that is some progress. I have updated Grail to hopefully handle this as well. It seems your Grail.lua saved variables may be in a weird state. Can you upload that so I can test with it? I ask because I have not been able to reproduce the issues you are seeing on any of my characters.
where your WoW directory depends on where you have WoW installed, and the account name is the one that you use for logging into WoW on the character that has a problem. This Grail.lua is the saved variables for the addon that records the new quests and NPCs that it finds.
Version: Grail 1.08 (Retail)
Error: 1x Grail\Grail-108.lua:3642: attempt to index field '?' (a nil value) [string "@Grail\Grail-108.lua"]:3642: in function
_LearnWorldQuest' [string "@Grail\Grail-108.lua"]:3513: in function
_AddWorldQuests' [string "@Grail\Grail-108.lua"]:2075: in function?' [string "@Grail\Grail-108.lua"]:10580: in function
_Tooltip_OnEvent' [string "@Grail\Grail-108.lua"]:11166: in function <Grail\Grail.lua:11166>Locals: self =
Can you try to add the following line so it becomes line 3641 in the Grail.lua file in the addon:
It would be the line right before:
Then can you try to see if that fixes the problem. As you can guess I have not been able to recreate the problem at my end.
Yes that does fix the Problem with line 6342, but then another one pops up that was not reported before.
1x Grail\Grail-108.lua:7535: attempt to concatenate local 'npcId' (a nil value) [string "@Grail\Grail-108.lua"]:7535: in function
LearnNPCLocation' [string "@Grail\Grail-108.lua"]:3646: in function
_LearnWorldQuest' [string "@Grail\Grail-108.lua"]:3513: in function_AddWorldQuests' [string "@Grail\Grail-108.lua"]:2075: in function
?' [string "@Grail\Grail-108.lua"]:10581: in function `_Tooltip_OnEvent' [string "@Grail\Grail-108.lua"]:11167: in function <Grail\Grail.lua:11167>Locals: self =
I tried to fix the function "LearnNPCLocation" by adding
npcId = npcId or ''
in line 7535, but that led to other errors in "_AddNPCLocation" (as the empty ID is given to that function) and if I'm setting npcID there to 0 I have multiple errors in other lines (and as I am not sure what Im actually doing, I have undone my changes :) )Btw: thank you for your quick reply
For the line I asked you to add earlier, can you replace it with:
print("*** learning for", mapId)
Basically I would like to see what the last mapId is before the crash because I do not know where it is coming from. I know it should not be nil, but it seems to be something unexpected.
I have the same issue, I added the line you mentioned earlier and it says ***learning for 896
In my case its the following print out
learning for 62 learning for 62 learning for 62 learning for 62 learning for 62 learning for 62 learning for 627 learning for 630 learning for 627 learning for 630 *** learning for 646
Can you try to use the latest Grail on GitHub to see if the problem still occurs for you?
Error message right after login and on every reload
Thanks...that is some progress. I have updated Grail to hopefully handle this as well. It seems your Grail.lua saved variables may be in a weird state. Can you upload that so I can test with it? I ask because I have not been able to reproduce the issues you are seeing on any of my characters.
Sure :). Thank you for your support. Grail.zip
Just saw the update to 1.08. This is the Grail.lua after the update. (just in case there are differences between them) Grail108.zip
I did not mean the Grail.lua from the addons, but I meant the one found in
WoW/_retail_/WTF/Account/account name/SavedVariables/Grail.lua
where your WoW directory depends on where you have WoW installed, and the account name is the one that you use for logging into WoW on the character that has a problem. This Grail.lua is the saved variables for the addon that records the new quests and NPCs that it finds.
Ah, sorry. My mistake. Now the right one. (I edited the char names as Im not able to send you this via PM Grail.zip )
Thanks. The latest Grail on GitHub should fix this issue.