robertjanetzko/LegendsBrowser2

"runtime error: invalid memory address or nil pointer dereference"

Closed this issue · 0 comments

TC01 commented

I thought I'd see how well Legends Browser 2 works with the XML exports from 50.08. Things mostly seem to work! However I noticed on my main world that the history sections of character, site, entity, etc. pages usually fails to render with this message. e.g.:

Stirfrogs

tower
template: site.html:11:23: executing "content" at : error calling history: runtime error: invalid memory address or nil pointer dereference

The same messages get printed to the terminal:

template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: entity.html:86:63: executing "content" at <history .>: error calling history: runtime error: invalid memory address or nil pointer dereference
template: entity.html:172:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: hf.html:159:26: executing "content" at <events .>: error calling events: runtime error: invalid memory address or nil pointer dereference
template: site.html:11:23: executing "content" at <history .Id>: error calling history: runtime error: invalid memory address or nil pointer dereference

I thought maybe this was being caused by the absence of the extra data from dfhack, but I tried another save and couldn't reproduce the error. Maybe it's to do with the size of the legends export?

In case it's helpful, I've attached the legends XML that caused the issue for me. (Github wouldn't let me upload an xzip archive directly and a gzip archive was just too large, so sorry for the double compression). Let me know if I can provide any other information to help track this down.