Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua error when scanning cooking recipes #722

Open
detilium opened this issue Nov 18, 2024 · 5 comments
Open

Lua error when scanning cooking recipes #722

detilium opened this issue Nov 18, 2024 · 5 comments
Assignees

Comments

@detilium
Copy link

detilium commented Nov 18, 2024

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"
@cmarini
Copy link

cmarini commented Nov 19, 2024

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"

@filliph
Copy link

filliph commented Dec 9, 2024

This is still occurring in 19.7.2

@ITismeMario
Copy link

I have this same error as today.

@thetakerfan
Copy link

Still persists, also tried factory reset to no avail

@derfloh205 derfloh205 marked this as a duplicate of #784 Jan 15, 2025
@avilene avilene assigned avilene and unassigned derfloh205 Jan 23, 2025
@thetakerfan
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

7 participants