Uncaught TypeError: Cannot read property 'start' of undefined - at turnMethods.destroy

Summary:
Tried to access the inventory screen and kept scrolling with the scroll wheel. Then it said a trader approaches, I then tried to click the message and received this error.

Steps to reproduce:

  1. Scroll through inventory screen
  2. Click trader notification
  3. Receive error

Expected Results:
To see what the trader had for me while in my inventory screen

Actual Results:
received this error message

develop-2797 (x64)
Uncaught TypeError: Cannot read property 'start' of undefined
TypeError: Cannot read property 'start' of undefined
    at turnMethods.destroy (http://radiant/stonehearth/ui/root/js/libs/turn.js:398:53)
    at dec (http://radiant/stonehearth/ui/root/js/libs/turn.js:3012:29)
    at $.extend.turn (http://radiant/stonehearth/ui/root/js/libs/turn.js:3265:12)
    at App.StonehearthTownView.App.View.extend.willDestroyElement (http://radiant/stonehearth/ui/game/town/town.js:194:23)
    at apply (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19673:32)
    at superWrapper [as willDestroyElement] (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19247:15)
    at EmberObject.extend.trigger (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:40891:25)
    at apply (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19675:27)
    at superWrapper [as trigger] (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19247:15)
    at EmberRenderer.Renderer.willDestroyElement (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:39592:32)"

also this one

develop-2797 (x64)
Uncaught Error: cannot call methods on stonehearthItemPalette prior to initialization; attempted to call method 'updateItems'
Error: cannot call methods on stonehearthItemPalette prior to initialization; attempted to call method 'updateItems'
    at Function.jQuery.extend.error (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:516:9)
    at HTMLDivElement.<anonymous> (http://radiant/stonehearth/ui/root/js/libs/jquery-ui-1.10.3.js:487:15)
    at Function.jQuery.extend.each (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:657:23)
    at jQuery.fn.jQuery.each (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:266:17)
    at $.fn.(anonymous function) [as stonehearthItemPalette] (http://radiant/stonehearth/ui/root/js/libs/jquery-ui-1.10.3.js:483:9)
    at Object.<anonymous> (http://radiant/stonehearth/ui/game/town/town.js:176:42)
    at fire (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:3048:30)
    at Object.self.fireWith [as notifyWith] (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:3160:7)
    at Object.deferred.(anonymous function) [as notify] (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:3249:34)
    at Object.<anonymous> (http://radiant/radiant/js/radiant/trace.js:173:39)

Attachments:

Version Number and Mods in use:
alpha 14 unstable 2797

System Information:
Geforce 980 ti
Amd fx 8 core 4.0
16gb ram
Windows 8

Paging @yang, don’t think I have seen these before…

Summary:
Attempting to close the Town Overview window results in a UI error and requires the UI to be refreshed.
Steps to reproduce:

  1. Open the Town Overview window via the Town Info button.
  2. Perform any action that would close the Town Overview window (actions tested: click the X in the upper right corner of the window, click the Town Info button again, press the i key again, attempt to open the Citizen menu)

Expected Results:
The Town Overview closes.

Actual Results:
The following UI error is generated and the Town Overview window will not close, and the UI becomes unresponsive; you must refresh the UI to continue playing.

develop-2797 (x64)
Uncaught TypeError: Cannot read property 'start' of undefined
TypeError: Cannot read property 'start' of undefined
    at turnMethods.destroy (http://radiant/stonehearth/ui/root/js/libs/turn.js:398:53)
    at dec (http://radiant/stonehearth/ui/root/js/libs/turn.js:3012:29)
    at $.extend.turn (http://radiant/stonehearth/ui/root/js/libs/turn.js:3265:12)
    at App.StonehearthTownView.App.View.extend.willDestroyElement (http://radiant/stonehearth/ui/game/town/town.js:194:23)
    at apply (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19673:32)
    at superWrapper [as willDestroyElement] (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19247:15)
    at EmberObject.extend.trigger (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:40891:25)
    at apply (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19675:27)
    at superWrapper [as trigger] (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19247:15)
    at EmberRenderer.Renderer.willDestroyElement (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:39592:32)

Notes:
I initially thought this was due to creating a new game, but this appears to be simply closing the Town Info via any action.

Attachments:

Version Number and Mods in use: develop-2797 (x64)

System Information: Windows 10 Pro | Intel i5-3317U | 4GB system memory | Intel HD Graphics 4000

1 Like

Hey there @Gamgee, welcome to the Discourse! Thanks for the detailed report. I merged your post here as @Feashrind beat you in reporting it first :wink:.

1 Like

Thanks, I didn’t realize this was the same error. After further testing, this is far simple than I thought, and I’ve updated my bug report to reflect that.

1 Like

No worries, that’s what us mods are here for!

1 Like

Upon opening the “town Info” Page I got this Error

develop-2797 (x64)
Uncaught TypeError: Cannot read property 'start' of undefined
TypeError: Cannot read property 'start' of undefined
    at turnMethods.destroy (http://radiant/stonehearth/ui/root/js/libs/turn.js:398:53)
    at dec (http://radiant/stonehearth/ui/root/js/libs/turn.js:3012:29)
    at $.extend.turn (http://radiant/stonehearth/ui/root/js/libs/turn.js:3265:12)
    at App.StonehearthTownView.App.View.extend.willDestroyElement (http://radiant/stonehearth/ui/game/town/town.js:194:23)
    at apply (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19673:32)
    at superWrapper [as willDestroyElement] (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19247:15)
    at EmberObject.extend.trigger (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:40891:25)
    at apply (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19675:27)
    at superWrapper [as trigger] (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19247:15)
    at EmberRenderer.Renderer.willDestroyElement (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:39592:32)

Ui Reset fixes and allows continued play. When Problem happens No Control over UI or any other Controls. "F5 still working as intended"
hope this helps and Thank you for the fun game

Hey there @Almithor, welcome to the Discourse! Thanks for the report. Will ping @yshan to see this UI error, glad a simple UI reset worked!