CraftSim

CraftSim

2M Downloads

Recipe Scan - Enchanting - Freezes at 12%

Serntis opened this issue ยท 5 comments

commented

Over the last two days, any time that I go for recipe scan (concentration selected or not), it freezes at 12% and never goes any higher. This only happens with my enchanting and none of my other professions.
image_2024-09-25_081427764

commented

3x CraftSim/Classes/ProfessionGear.lua:25: script ran too long
[string "@CraftSim/Classes/ProfessionGear.lua"]:25: in function Equals' [string "@CraftSim/Modules/TopGear/TopGear.lua"]:125: in function findFunc'
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:111: in function Find' [string "@CraftSim/Modules/TopGear/TopGear.lua"]:105: in function GetUniqueCombosFromAllPermutations'
[string "@CraftSim/Modules/TopGear/TopGear.lua"]:293: in function GetProfessionGearCombinations' [string "@CraftSim/Modules/TopGear/TopGear.lua"]:339: in function OptimizeTopGear'
[string "@CraftSim/Classes/RecipeData.lua"]:924: in function OptimizeGear' [string "@CraftSim/Classes/RecipeData.lua"]:953: in function OptimizeProfit'
[string "@CraftSim/Classes/RecipeData.lua"]:1494: in function `OptimizeSubRecipes'
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:320: in function <...ceCraftSim/Modules/RecipeScan/RecipeScan.lua:280>

Locals:
self =

{
professionStats =
{
}
item =
{
}
}
professionGear =
{
professionStats =
{
}
item =
{
}
}
itemLinkA = "|cff1eff00|Hitem:222573::::::::80:251::13:3:10827:10830:9631:4:28:2734:29:82:38:7:40:2256::::|h[Lightweight Scribe's Quill |A:Professions-ChatIcon-Quality-Tier4:17:17::1|a]|h|r"
itemLinkB = "|cff1eff00|Hitem:222573::::::::80:252::13:3:10827:10830:9632:4:28:2734:29:82:38:8:40:2256::::|h[Lightweight Scribe's Quill |A:Professions-ChatIcon-Quality-Tier5:17:17::1|a]|h|r"
(*temporary) = "|cff1eff00|Hitem:222573::::::::80:252::13:3:10827:10830:9632:4:28:2734:29:82:38:8:40:2256::::Player-76-0AB1B3F7:|h[Lightweight Scribe's Quill |A:Professions-ChatIcon-Quality-Tier5:17:17::1|a]|h|r"
(*temporary) = "Player.-:"
(*temporary) = ""
(*temporary) = "script ran too long"

commented

can you check for errors with buggrabber/bugsack addons?

commented

try disabling sub recipe optimization in the scan options if its on

commented

I also can reproduce this behavior. Except it's JC and its stuck at 84%.

3x .../Modules/ReagentOptimization/ReagentOptimization.lua:439: attempt to perform arithmetic on field '?' (a nil value)
[string "@CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua"]:439: in function `calculateArrayBP'
[string "@CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua"]:469: in function `OptimizeReagentAllocation'
[string "@CraftSim/Classes/RecipeData.lua"]:683: in function `OptimizeReagents'
[string "@CraftSim/Classes/RecipeData.lua"]:978: in function `OptimizeProfit'
[string "@CraftSim/Classes/RecipeData.lua"]:1510: in function `OptimizeSubRecipes'
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:320: in function <...ceCraftSim/Modules/RecipeScan/RecipeScan.lua:280>

Locals:
playerSkill = 113
arrayBP = <table> {
}
(for index) = 0
(for limit) = 0
(for step) = 1
i = 0
extraSkillPoint = 0
(*temporary) = nil
(*temporary) = 305
(*temporary) = false
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on field '?' (a nil value)"
numBP = 1
CraftSim = <table> {
 COOLDOWNS = <table> {
 }
 STATISTICS = <table> {
 }
 OPTIONAL_REAGENT_DATA = <table> {
 }
 NEWS = <table> {
 }
 CraftRecipeData = <table> {
 }
 DEBUG = <table> {
 }
 PRICE_DETAILS = <table> {
 }
 ProfessionGear = <table> {
 }
 CRAFT_BUFFS = Frame {
 }
 NodeData = <table> {
 }
 PRICE_OVERRIDE = <table> {
 }
 ConcentrationData = <table> {
 }
 LOCAL_MX = <table> {
 }
 ENCHANT_RECIPE_DATA = <table> {
 }
 REAGENT_DATA = <table> {
 }
 COST_OPTIMIZATION = <table> {
 }
 EXPLANATIONS = <table> {
 }
 LibCompress = <table> {
 }
 TopGearResult = <table> {
 }
 ReagentData = <table> {
 }
 LOCAL_DE = <table> {
 }
 CONCENTRATION_TRACKER = <table> {
 }
 SUPPORTERS = <table> {
 }
 LibGraph = <table> {
 }
 OptionalReagentSlot = <table> {
 }
 Reagent = <table> {
 }
 PRICE_APIS = <table> {
 }
 LOCAL_FR = <table> {
 }
 SPECIALIZATION_DATA = <table> {
 }
 PRICE_SOURCE = <table> {
 }
 UTIL = <table> {
 }
 LOCAL_ES = <table> {
 }
 CraftSimObject = <table> {
 }
 PerkData = <table> {
 }
 ITEM_COUNT = Frame {
 }
 TOPGEAR = <table> {
 }
 PriceData = <table> {
 }
 OptionalReagent = <table> {
 }
 CONCENTRATION_CURVE_DATA = <table> {
 }
 LOCAL_IT = <table> {
 }
 CONTROL_PANEL = <table> {
 }
 CraftQueueItem = <table> {
 }
 ResultData = <table> {
 }
 CraftQueue = <table> {
 }
 RECIPE_SCAN = <table> {
 }
 AVERAGEPROFIT = <table> {
 }
 BagBuff = <table> {
 }
 Buff = <table> {
 }
 BuffData = <table> {
 }
 SIMULATION_MODE = <table> {
 }
 JSONBuilder = <table> {
 }
 OPTIONS = <table> {
 }
 CraftSessionData = <table> {
 }
 INIT = Frame {
 }
 CALC = <table> {
 }
 ProfessionGearSet = <table> {
 }
 SpecializationData = <table> {
 }
 ProfessionData = <table> {
 }
 LOCAL_RU = <table> {
 }
 CraftResultSavedReagent = <table> {
 }
 CraftResultItem = <table> {
 }
 CraftResult = <table> {
 }
 LOCAL_CN = <table> {
 }
 ReagentOptimizationResult = <table> {
 }
 DB = <table> {
 }
 Statweights = <table> {
 }
 ProfessionStat = <table> {
 }
 SalvageReagentSlot = <table> {
 }
 ProfessionStats = <table> {
 }
 ReagentListItem = <table> {
 }
 GUTIL = <table> {
 }
 CUSTOMER_HISTORY = Frame {
 }
 ReagentItem = <table> {
 }
 REAGENT_OPTIMIZATION = <table> {
 }
 COMM = <table> {
 }
 LOCAL_EN = <table> {
 }
 FRAME = <table> {
 }
 CRAFT_RESULTS = Frame {
 }
 RecipeData = <table> {
 }
 LOCAL_KO = <table> {
 }
 LOCAL_TW = <table> {
 }
 Object = <table> {
 }
 LOCAL_PT = <table> {
 }
 LibIcon = <table> {
 }
 LOCAL = <table> {
 }
 CooldownData = <table> {
 }
 PRICE_API = <table> {
 }
 SPECIALIZATION_INFO = <table> {
 }
 CONST = <table> {
 }
 CRAFTQ = Frame {
 }
 GGUI = <table> {
 }
 MEDIA = <table> {
 }
}
craftingDifficultyBP = <table> {
}
recipeData = <table> {
 supportsQualities = true
 reagentData = <table> {
 }
 specializationDataCached = false
 recipeIcon = 5545563
 supportsCraftingStats = true
 supportsCraftingspeed = true
 isBaseRecraftRecipe = false
 learned = true
 priceData = <table> {
 }
 recipeInfoCached = false
 maxQuality = 3
 concentrationCurveData = <table> {
 }
 recipeInfo = <table> {
 }
 concentrationCost = 79
 baseOperationInfo = <table> {
 }
 isAlchemicalExperimentation = false
 maxItemAmount = 3
 professionStatModifiers = <table> {
 }
 supportsMulticraft = true
 expansionID = 10
 cooldownData = <table> {
 }
 subRecipeDepth = 1
 isOldWorldRecipe = false
 parentRecipeInfo = <table> {
 }
 professionStats = <table> {
 }
 supportsSpecializations = true
 baseProfessionStats = <table> {
 }
 concentrating = false
 isEnchantingRecipe = false
 crafterData = <table> {
 }
 isCrafterInfoCached = true
 isCooking = false
 isSoulbound = false
 recipeID = 435324
 specializationData = <table> {
 }
 buffData = <table> {
 }
 minItemAmount = 2
 categoryID = 1995
 baseItemAmount = 2.500000
 isRecraft = false
 resultData = <table> {
 }
 hasQualityReagents = true
 isQuestRecipe = fal
commented

its an subrecipe optimization issue due to a lot of calculations within the same frame
current solution is to disable it in the scan options

I will take on the topic of making it more performant in the future