Threading Issue [1.6.8]
by Anonymous user, 1240272763|%e %b %Y
With the attached config, enhsim crashes (the program, not the gui) whenever I try to simulate or calculate EP with more than 3 threads, but not always.
4 causes a crash, but 5 does not; 6 through 9 do as well, but 10 threads do not.
It also appeared as though my dps would steadily drop down as I added more threads. Possibly a variable being accessed by multiple threads at the same time.
This is with enhsim 1.6.8, and I triple-checked to make sure the gui was pointing to the proper executable.
simulation_time 25000
simulation_time_combatlog 300
combat_length 6
report_count 80
threads 1
min_lag 0
max_lag 0
simulate_mana 1
ep_precision 2
ep_base_stat ap
ep_ap 200
ep_crit_rating 30
ep_hit_rating 30
ep_expertise 4
ep_haste_rating 30
ep_armor_penetration_rating 30
ep_spellpower 150
ep_dps 7.5
ep_mana 250
ep_spirit 150
ep_mp5 20
mh_auto_attack 1
oh_auto_attack 1
wait_ss_with_wf_cd 0.00
cast_ll_only_if_wf_on_cd 0
bloodlust_casters 1
sync_bloodlust_with_trinkets 1
cast_lvb_only_if_ed_left 15.0
cast_lvb_only_if_fsdots_left 4
cast_lvb_only_if_fs_active 1
cast_fs_only_if_dots_left 0
cast_ls_only_if_charges_left 0
cast_sr_only_if_mana_left 700
use_mana_potion_if_mana_left 3000
rotation_priority_count 9
rotation_priority1 SW
rotation_priority2 SR
rotation_priority3 MW5_LB
rotation_priority4 ES_SS
rotation_priority5 SS
rotation_priority6 MT
rotation_priority7 ES
rotation_priority8 LL
rotation_priority9 LS
miss 8.00
dodge 6.50
glancing 24.00
armor 10645
spell_miss 17.00
nature_resistance 0
fire_resistance 0
frost_resistance 0
arcane_resistance 0
shadow_resistance 0
armor_debuff_major 20.0/20.0
armor_debuff_minor 5.0/5.0
physical_vulnerability_debuff 4.0/4.0
melee_haste_buff 20.0/20.0
melee_crit_chance_buff 5.0/5.0
attack_power_buff_flat 688/688
attack_power_buff_multiplier 0/99.7
spell_haste_buff 5.0/5.0
spell_crit_chance_buff 5.0/5.0
spell_crit_chance_debuff 5.0/5.0
spell_damage_debuff 13.0/13.0
spellpower_buff 280/280
spell_hit_chance_debuff 3.0/3.0
haste_buff 3.0/3.0
percentage_damage_increase 3.0/3.0
crit_chance_debuff 3.0/3.0
stat_multiplier 10.0/10.0
stat_add_buff 52/52
agi_and_strength_buff 178/178
intellect_buff 60/60
replenishment 1
water_shield 0
mana_spring_totem 1
blessing_of_wisdom 0
judgement_of_wisdom 1
flask_elixir flask_of_endless_rage
guardian_elixir -
potion potion_of_speed
food fish_feast
###############################################################################
### Everything in the section below can be replaced by information obtained ###
### from your paper doll stats or exported by the ShockAndAwe addon ###
###############################################################################
race draenei
mh_speed 2.6
oh_speed 2.5
mh_dps 171.3
oh_dps 156.6
mh_crit 33.5
oh_crit 33.5
mh_hit 10.46
oh_hit 10.46
mh_expertise_rating 141
oh_expertise_rating 141
ap 3969
melee_haste 4.92
armor_penetration 5.52
str 131
agi 812
int 525
spi 155
spellpower 1190
spell_crit 26.19
spell_hit 13.08
spell_haste 3.78
max_mana 11991
mp5 0
mh_imbue windfury
oh_imbue flametongue
mh_enchant berserking
oh_enchant berserking
mh_weapon -
oh_weapon -
trinket1 mirror_of_truth
trinket2 grim_toll
totem stonebreakers_totem
set_bonus1 naxx_melee_4
set_bonus2 -
set_bonus3 -
metagem chaotic_skyflare_diamond
gloves_enchant -
cloak_enchant -
glyph_major1 stormstrike
glyph_major2 flametongue_weapon
glyph_major3 windfury_weapon
glyph_minor1 -
glyph_minor2 -
glyph_minor3 -
ancestral_knowledge 3/5
improved_shields 3/3
mental_dexterity 3/3
shamanistic_focus 1/1
flurry 5/5
elemental_weapons 3/3
unleashed_rage 3/3
weapon_mastery 3/3
dual_wield_specialization 3/3
mental_quickness 3/3
improved_stormstrike 0/2
static_shock 3/3
maelstrom_weapon 5/5
convection 0/5
concussion 5/5
call_of_flame 3/3
elemental_devastation 3/3
reverberation 0/5
elemental_focus 1/1
elemental_fury 5/5
call_of_thunder 0/1
unrelenting_storm 0/3
elemental_precision 0/3
lightning_mastery 0/5
elemental_oath 0/2
lightning_overload 0/5
lava_flows 0/3
storm_earth_and_fire 0/3
shamanism 0/5
I'm sorry, I couldn't reproduce any of the problems. I can't get the sim to crash and DPS seems to stay on the same level, no matter how many threads.
One possibility is, that the problem is with your computer. Try to stress/torture test your CPU to check it. You can use, for example Prime95. Leave it to torture test for at least the same time it takes to calculate EP values. Make sure you are using all the cores. If you get errors, your computer is the probable cause for this bug. Beware, IF there actually is something wrong with your CPU eg. overheating, torture testing might just brake it completely. Then again, so might any CPU heavy application (EnhSim is one).
While I don't think the issue is with my hardware, I did go ahead and run Prime95 through all its torture tests for 2 hours each. No issues, no overheating, no crashing.
I saw that enhsim 1.6.9 was released, so I went ahead and downloaded that, pointed to the enhsim 1.6.9 executable and ran. It didn't crash on 4 threads, but ended up hanging around 80% through simulation. Crashing existed on 7+ threads.
So I decided to check if this issue was existing with previous versions. I downloaded 1.6.6, loaded the gui and got an error "misc item not found". Clicked okay, ran with 4 threads. Completed, no crash, abysmal (read: lower than expected) dps.
I then reloaded in 1.6.9, gave me the error "glove enchant not found, cloak enchant not found". ran with 4 threads, crashed as previously seen, no change here.
So while I suppose there is still a possibility that the issue lies with my hardware/OS environment, I do not get crashes with any previous (I went as far back as 1.5.9) versions, so it leads me to believe that there is some issue. I will try some more fiddling, using the default config/new config and see what I can accomplish.
It looks like fiddling was successful.
Both the default config (config.txt) and a new, clean config of my character's stats still causes 1.6.9 to crash with 4 or more threads.
I enabled compatibility mode for enhsim.exe (Windows XP, Service Pack 2) just for kicks.
…And now it runs just fine with any number of threads…
This could be an isolated issue (Windows Vista Ultimate x64, SP1) with all the latest windows updates, or there could be something else that is causing it, but compatibility mode fixed my problem.
Post preview:
Close preview