CraftSim

CraftSim

2M Downloads

Lua error when scanning cooking recipes

detilium opened this issue · 8 comments

commented

Everytime I use the recipe scan for the cooking profession, the following Lua error is triggered.

9x CraftSim/DB/crafterDB.lua:436: table index is nil
[string "@CraftSim/DB/crafterDB.lua"]:436: in function `GetFavoriteRecipes'
[string "@CraftSim/DB/crafterDB.lua"]:462: in function `UpdateFavoriteRecipe'
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:161: in function `FilterRecipeInfo'
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:258: in function `mapFunc'
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:191: in function <CraftSim/Libs/GUTIL/GUTIL.lua:174>
[string "=(tail call)"]: ?
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:285: in function `ScanRow'
[string "@CraftSim/Modules/RecipeScan/UI.lua"]:439: in function `clickCallback'
[string "@CraftSim/Libs/GGUI/GGUI.lua"]:1911: in function <CraftSim/Libs/GGUI/GGUI.lua:1909>

Locals:
self = <table> {
}
crafterUID = "Detílium-ShatteredHand"
profession = nil
(*temporary) = <table> {
 1 = <table> {
 }
 5 = <table> {
 }
}
(*temporary) = <table> {
}
(*temporary) = "table index is nil"
commented

Having what appears to be the same issue, even after a "factory reset" (under Debug Tools) of CraftSim.

23x CraftSim/DB/crafterDB.lua:436: table index is nil
[string "@CraftSim/DB/crafterDB.lua"]:436: in function `GetFavoriteRecipes'
[string "@CraftSim/DB/crafterDB.lua"]:462: in function `UpdateFavoriteRecipe'
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:161: in function `FilterRecipeInfo'
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:258: in function `mapFunc'
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:191: in function <CraftSim/Libs/GUTIL/GUTIL.lua:174>
[string "=(tail call)"]: ?
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:285: in function `ScanRow'
[string "@CraftSim/Modules/RecipeScan/UI.lua"]:439: in function `clickCallback'
[string "@CraftSim/Libs/GGUI/GGUI.lua"]:1911: in function <CraftSim/Libs/GGUI/GGUI.lua:1909>

Locals:
self = <table> {
}
crafterUID = "Calnexin-Tichondrius"
profession = nil
(*temporary) = <table> {
 5 = <table> {
 }
}
(*temporary) = <table> {
}
(*temporary) = "table index is nil"
commented

This is still occurring in 19.7.2

commented

I have this same error as today.

commented

Still persists, also tried factory reset to no avail

commented

This seems to be related to Mists of Pandaria recipes. Clicking any of the "Way of the..." recipes I get the below error. Any of the basic "Everyday Cooking" open normally. I did have one of the Way of recipe marked as a favorite, forget which one. Unfavorited and reload but still got he error. Favorited a normal recipe and reload, still error

Message: Interface/AddOns/CraftSim/Classes/ProfessionData.lua:44: No professionInfo cached for CHARACTER-SERVER: 125141
Time: Sun Feb  9 10:06:08 2025
Count: 5
Stack: Interface/AddOns/CraftSim/Classes/ProfessionData.lua:44: No professionInfo cached for CHARACTER-SERVER: 125141
[string "=[C]"]: in function `error'
[string "@Interface/AddOns/CraftSim/Classes/ProfessionData.lua"]:44: in function `new'
[string "@Interface/AddOns/CraftSim/Libs/classic.lua"]:64: in function `ProfessionData'
[string "@Interface/AddOns/CraftSim/Classes/RecipeData.lua"]:84: in function `new'
[string "@Interface/AddOns/CraftSim/Libs/classic.lua"]:64: in function `RecipeData'
[string "@Interface/AddOns/CraftSim/Init/Init.lua"]:632: in function `TriggerModulesByRecipeType'
[string "@Interface/AddOns/CraftSim/Init/Init.lua"]:104: in function <Interface/AddOns/CraftSim/Init/Init.lua:102>
[string "@Interface/AddOns/CraftSim/Libs/GUTIL/GUTIL.lua"]:606: in function `checkCondition'
[string "@Interface/AddOns/CraftSim/Libs/GUTIL/GUTIL.lua"]:612: in function `WaitFor'
[string "@Interface/AddOns/CraftSim/Init/Init.lua"]:93: in function `TriggerModuleUpdate'
[string "@Interface/AddOns/CraftSim/Init/Init.lua"]:145: in function <Interface/AddOns/CraftSim/Init/Init.lua:125>
[string "=[C]"]: ?
...
[string "=[C]"]: ?
[string "@Interface/AddOns/Blizzard_SharedXMLBase/CallbackRegistry.lua"]:144: in function <...e/AddOns/Blizzard_SharedXMLBase/CallbackRegistry.lua:143>
[string "=[C]"]: ?
[string "@Interface/AddOns/Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in function `TriggerEvent'
[string "@Interface/AddOns/Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua"]:532: in function `SetElementDataSelected_Internal'
[string "@Interface/AddOns/Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua"]:493: in function <...dOns/Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua:492>
[string "=[C]"]: in function `securecallfunction'
[string "@Interface/AddOns/Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua"]:497: in function `SelectElementData'
[string "@Interface/AddOns/Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua"]:537: in function `Select'
[string "@Interface/AddOns/Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:58: in function <...fessionsTemplates/Blizzard_ProfessionsRecipeList.lua:46>

Locals: (*temporary) = "No professionInfo cached for CHARACTER-SERVER: 125141"
commented

And WHY did you close this as "not planned"? Like, do secondary professions not matter? Does a lua error in one of the core components not matter? Or did you close this because this requires MoP cooking, and you don't plan to level that?

commented

There was a fix so it at least shouldn't break anymore: #821

commented

Confirmed, able to scan without any errors with latest update