# Error when opening shop dialog

**URL:** <https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834>\
**Category:** Previous Build Reports\
**Created:** [June 5, 2015, 12:48am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834 "2015-06-05T00:48:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telarin](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Telarin](https://discourse.stonehearth.net/u/Telarin)\
**Post date:** [June 5, 2015, 12:48am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/1 "2015-06-05T00:48:36Z")

</div>

A notification that a food trader had arrived popped up. When I clicked on it, an error window popped up.

[![](https://i.imgur.com/8tDjqV3.jpg) ](https://i.imgur.com/8tDjqV3.jpg)

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [June 5, 2015, 1:03am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/2 "2015-06-05T01:03:36Z")

</div>

@SteveAdamo @Relyss need to embed a screenshot.

---

<div class="post-metadata">

**Author:** ![Tuhalu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/tuhalu/32/44358_2.png) [@Tuhalu](https://discourse.stonehearth.net/u/Tuhalu)\
**Post date:** [June 9, 2015, 4:54am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/3 "2015-06-09T04:54:39Z")

</div>

First time it’s happened to me, but I had a caravan turn up and when I clicked the icon to show his store, I got an error. This resulted in the store window being empty and most elements on the screen freezing (I could still click through the toolbar in the bottom middle, but that was about it). Using F5 fixed the problem.

This was another situation where I was playing in 2x speed.

[stonehearth.log](https://discourse.stonehearth.net/uploads/short-url/867DowgM6ak2nc7XwiTaNlD6d31.log) (40.7 KB)  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/stonehearth/original/3X/3/a/3a246d7f7a2d3091679e0f934592ed89aac64161.png)

---

<div class="post-metadata">

**Author:** ![yshan](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yshan/32/18457_2.png) [@yshan](https://discourse.stonehearth.net/u/yshan)\
**Post date:** [June 9, 2015, 11:27pm UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/4 "2015-06-09T23:27:21Z")

</div>

Hi @Telarin and @Tuhalu  
I’m looking into this right now. I’ve been trying to reproduce it, but I haven’t been able to get it yet. I’ve got a few questions to ask as I try to narrow it down.  
Do you remember anything else from when the error occurred? Eg. did you click on the trade icon as soon as it showed up or did you wait a little? Also, did the error happen on the shore window showing up or as the store window was closing? Were there any other UI errors that happened before the shop error (even UI errors that happened much earlier in the game)? And finally, have you seen this bug in the latest release?

Thank you for reporting this!  
-Yang

---

<div class="post-metadata">

**Author:** ![Tuhalu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/tuhalu/32/44358_2.png) [@Tuhalu](https://discourse.stonehearth.net/u/Tuhalu)\
**Post date:** [June 10, 2015, 12:33am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/5 "2015-06-10T00:33:43Z")

</div>

I’m afraid I can’t add to much to my original post.

I can’t remember for sure how quickly I clicked the message, but I’m pretty sure I didn’t need to open up the event window to access it.

The error happened as soon as I clicked through to the store window.

I don’t remember any other error messages popping up previously. I was trying to make some interesting shaped buildings to see what broke, but they were doing fine.

I have not seen this bug in the latest release, but this is the only time I remember personally seeing it at all.

---

<div class="post-metadata">

**Author:** ![yshan](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yshan/32/18457_2.png) [@yshan](https://discourse.stonehearth.net/u/yshan)\
**Post date:** [June 10, 2015, 12:47am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/6 "2015-06-10T00:47:30Z")

</div>

I think I’ve got at least one way to get this to happen.  
Do you remember if you opened any dialogs through the bulletin list window? (the window you get when you click the yellow !)  
If you get the little notification alert for the shop, but then you open the dialog through the list of bulletins (from clicking ! button), the notification alert is still there. Then, if you click the notification alert, you’ll get the error. I’m fixing that one now. Let me know if you run into another way to get this to happen.

Thanks!  
-Yang

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [June 10, 2015, 12:56am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/7 "2015-06-10T00:56:25Z")

</div>

> [@yshan](#):
>
> If you get the little notification alert for the shop, but then you open the dialog through the list of bulletins (from clicking ! button), the notification alert is still there. Then, if you click the notification alert, you’ll get the error.

i had totally forgot about that one! it must have just slipped my mind when i mentally noted **not** to repeat those steps 😝

P.S. i like your profile pick, @yshan 😄

---

<div class="post-metadata">

**Author:** ![yshan](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yshan/32/18457_2.png) [@yshan](https://discourse.stonehearth.net/u/yshan)\
**Post date:** [June 10, 2015, 12:59am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/8 "2015-06-10T00:59:27Z")

</div>

> [@8BitCrab](#):
>
> P.S. i like your profile pick, @yshan

Thank you! It’s my dog, Patches 🙂

---

<div class="post-metadata">

**Author:** ![Tuhalu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/tuhalu/32/44358_2.png) [@Tuhalu](https://discourse.stonehearth.net/u/Tuhalu)\
**Post date:** [June 10, 2015, 1:04am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/9 "2015-06-10T01:04:17Z")

</div>

I’m pretty sure it didn’t happen that way for me. I clicked the notification alert and it errored out like that. After I tried everything else, I pressed F5 to reload the UI and then used the bulletin list to load the store window. Could I even use the bulletin list if I’d already used it and then clicked the alert?

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [June 10, 2015, 1:06am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/10 "2015-06-10T01:06:34Z")

</div>

> [@Tuhalu](#):
>
> Could I even use the bulletin list if I’d already used it and then clicked the alert?

yes, as the “alert” doesnt disappear until you exit the shop by clicking the X in the corner

---

<div class="post-metadata">

**Author:** ![yshan](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yshan/32/18457_2.png) [@yshan](https://discourse.stonehearth.net/u/yshan)\
**Post date:** [June 10, 2015, 1:14am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/11 "2015-06-10T01:14:38Z")

</div>

Hmmmm there’s probably other ways to get it to happen. My fix prevents the game from trying to show the same bulletin twice, which produces the error you posted. Hopefully that will catch all these other cases of dialog errors too. But there’s always a chance I didn’t fix all the ways it can happen, so let me know if you see this again after my fix is released.  
Thanks again for helping me with this issue.  
-Yang

---

<div class="post-metadata">

**Author:** ![Tuhalu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/tuhalu/32/44358_2.png) [@Tuhalu](https://discourse.stonehearth.net/u/Tuhalu)\
**Post date:** [June 10, 2015, 1:17am UTC](https://discourse.stonehearth.net/t/error-when-opening-shop-dialog/12834/12 "2015-06-10T01:17:47Z")

</div>

No worries. It’s possible that I got the bug in the way described. Normally I don’t have the bulletin dialog open until I fail to click a notification, but I was concentrating more on the process of building. So I could well just be misremembering things. Anyway, a bug was squished, so it’s all good 😄
