ElvUI Enhanced Again (DF)

ElvUI Enhanced Again (DF)

1M Downloads

minimaplocation.lua:23 indexes a nil value

MagisterGollan opened this issue · 6 comments

commented

Describe the bug
At least whenever a warrior jumps down from Skyhold, a nil value reference exception is generated.

To Reproduce
As a warrior in Skyhold, jump down to Dalaran or any other available location, bugsack will record the error.

Expected behavior
No error exception.

Screenshots
479x ...dOns\ElvUI_Enhanced\modules\maps\minimaplocation.lua:23: attempt to index a nil value
...dOns\ElvUI_Enhanced\modules\maps\minimaplocation.lua:23: in function <...dOns\ElvUI_Enhanced\modules\maps\minimaplocation.lua:16>

Locals:
self = EnhancedLocationPanel {
0 =
}
elapsed = 0.068000003695488
mapID = 695
(*temporary) = MapCoordinatesX {
0 =
text = {
}
template = "Transparent"
pos = 0.5905174612999
}
(*temporary) = MapCoordinatesY {
0 =
text = {
}
template = "Transparent"
pos = 0.22142517566681
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = 695
(*temporary) = "attempt to index a nil value"
inRestrictedArea = false
location = EnhancedLocationText {
0 =
text = {
}
template = "Transparent"
elapsed = 0.23300001397729
}
digits =

{
0 =
{
}
2 =
{
}
1 =
{
}
}
E =
{
GetTimeInfo = defined @ElvUI\core\math.lua:364
Bags =
{
}
Grid = defined @ElvUI\core\commands.lua:26
modules =
{
}
CancelTimer = defined @ElvUI\Libraries\AceTimer-3.0\AceTimer-3.0.lua:147
FormatMoney = defined @ElvUI\core\math.lua:423
ExitVehicleShowFrames = defined @ElvUI\core\core.lua:1120
StaticPopup_EscapePressed = defined @ElvUI\core\staticpopups.lua:545
screenwidth = 5120
MassGuildKick = defined @ElvUI\core\commands.lua:78
SetMoversPositions = defined @ElvUI\core\movers.lua:471
ScheduleTimer = defined @ElvUI\Libraries\AceTimer-3.0\AceTimer-3.0.lua:94
PriestColors =
{
}
RegisterModule = defined @ElvUI\core\core.lua:1269
SetupTheme = defined @ElvUI\core\install.lua:164
media =
{
}
SetUpAnimGroup = defined @ElvUI\core\animation.lua:11
bags =
{
}
data =
{
}
EnableBlizzardAddOns = defined @ElvUI\core\commands.lua:210
UIScale = defined @ElvUI\core\pixelperfect.lua:50
db =
{
}
FramesOverlap = defined @ElvUI\core\math.lua:125
SetEnabledState = defined @ElvUI\Libraries\AceAddon-3.0\AceAddon-3.0.lua:455
Hook = defined @ElvUI\Libraries\AceHook-3.0\AceHook-3.0.lua:274
Options =
{
}
Layout =
{
}
tDeleteItem = defined @ElvUI\core\animation.lua:290
LoadCommands = defined @ElvUI\core\commands.lua:220
UnregisterEventForObject = defined @ElvUI\core\core.lua:1218
SendPluginVersionCheck = defined @ElvUI\Libraries\LibElvUIPlugin-1.0\LibElvUIPlugin-1.0.lua:145
HiddenFrame = {
}
NewModule = defined @ElvUI\Libraries\AceAddon-3.0\AceAddon-3.0.lua:266
diffGetRight = 0
UIFrameFade = defined @ElvUI\core\animation.lua:229
MinimapWidth = 237
StaticPopup_IsLastDisplayedFrame = defined @ElvUI\core\staticpopups.lua:606
Truncate = defined @ElvUI\core\math.lua:106
UpdateBackdropColors = defined @ElvUI\core\core.lua:464
TimeThreshold = 3
RemoveTableDuplicates = defined @ElvUI\core\core.lua:687
name = "ElvUI"
WorldMap =
{
}
MinimapHeight = 237
Disable = defined @ElvUI\Libraries\AceAddon-3.0\AceAddon-3.0.lua:345
DF =
{
}
SlideOut = defined @ElvUI\core\animation.lua:174
isMacClient = true
Print = defined @ElvUI\core\core.lua:178
Install = defined @ElvUI\core\install.lua:799
UnregisterObjectForVehicleLock = defined @ElvUI\core\core.lua:1151
LockedCVars =
{
}
TimeFormats =
{
}
RGBToHex = defined @ElvUI\core\math.lua:111
RequestBGInfo = defined @ElvUI\core\core.lua:375

Version (please complete the following information):

  • Version ElvUI 10.78
  • Version Elvui_Enhanced 3.3.0-beta6

Additional context
Add any other context about the problem here.

commented

Thanks for the reports. The checks I build work on the premise that restriction of cords only happen on zone changes. Maybe that's not always the case.

could you confirm for me if your zone text changes when the error occurs?

commented
commented

I am also getting this but under different conditions.
I am seeing it when out at the Darkmoon Faire, walking out to the wrecked ship south west of the docks at the very southern part of the Faire (near 44.4, 100.0 standing at these coordinates the error does not occur but if you move south west a few feet it begins to occur).

commented

For me it is not during a zone change and happens without the "zone name" changing on the minimap.
Darkmoon Faire area - Zone name shows "The Great Sea" 44.38, 99.96 - no errors.
Move south west 1 step and the coords no longer update and error begins spamming.
I also just noticed on the full size map the coords show as "- - -" and my position is off the map.

Took a few screenshots and a pastebin of the full error from bugsack if it helps.
https://imgur.com/a/svRa9QT
https://pastebin.com/2yMa0g6b

commented

@neonod Thanks for the example. That makes sense and i've got a clear idea on how to tackles this.
@MagisterGollan In your case it's a bit strange, since on zone change the addon checks if we are allowed to ask for cords. Anyway, my new approach will probably solve this as well, as it will be much more robust.

commented

Just pushed version 3.3.0-beta7 to curse, should fix this. Please let me know!