[A16] UI error when clicking workshop too fast

Summary:

A UI error is thrown when clicking the workshop button too many times and/or too fast. Two or three errors will come up. This will crash the UI needing it to be refreshed.

Steps to reproduce:

  1. Select any crafter hearthling.
  2. In rapid succession click 3 or 4 times on their workshop button
  3. Errors will display.

Expected Results:

Workshop window should display.

Actual Results:

Error messages display.

Notes:

The crafter does not have to be doing a crafting related task.

Here’s the error:

develop-2972 (x64)
Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'destroy’
Error: cannot call methods on sortable prior to initialization; attempted to call method 'destroy’
at Function.jQuery.extend.error (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:516:9)
at HTMLDivElement. (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 sortable] (http://radiant/stonehearth/ui/root/js/libs/jquery-ui-1.10.3.js:483:9)
at App.StonehearthTeamCrafterView.App.View.extend.willDestroyElement (http://radiant/stonehearth/ui/game/show_workshop/show_team_workshop.js:179:39)
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)

Attachments:

Version Number and Mods in use:
A16 b2972.
mods: better_stockpiles, debugtools, custom UI change for town military strength, and my own mod adding a ring accessory for my workers.

System Information:

Potato lappy. i5 2.4Ghz, 8GB ram, Win7 64bit.

1 Like

Thanks for the bug report!

A fix will be in the next build.

1 Like