# RobotState error, lag on UI

**URL:** <https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490>\
**Category:** URCap Development\
**Tags:** daemon, ursim\
**Created:** [November 5, 2019, 10:29am UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490 "2019-11-05T10:29:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon4739170](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon4739170](https://forum.universal-robots.com/u/anon4739170)\
**Post date:** [November 5, 2019, 10:29am UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490/1 "2019-11-05T10:29:01Z")

</div>

Hello everyone,

these days I am struggling an error and I do not know how to deal with it:

(pressing CTRL+ALT+F9)

```
               -ERROR - RobotState messages are queued up: 3 {thread: RobotState - PostMan , loggerClass: com.ur.monitor.RobotState$PostMan}

```

And every now and then (may be hours or minutes), I get the same message (and sometimes the number also changes)

I am developing a URCap that uses a Daemon to update variables and buttons states on Java side, but this error also appeared with the URCap **uninstalled**.

On the other hand, I do not know if it is related, but my URCap (an HMI) gets stuck and the robot crashes after some time working nicely (and then I thought that the reason of the ERROR was this, but I am afraid not). In my main program I am waiting for an input signal to continue (this wait for the input signal could be in my case hours) before making some calculations and movements. I am also using in Java side some uiTimers to update the visibility of some buttons/labels and three instances of the daemon (XmlRpcDaemonInterface) to update variables. This seemed to be working very well, so I want to think that the problem is not on this.

Any advice?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![tal](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@tal](https://forum.universal-robots.com/u/tal)\
**Post date:** [November 15, 2019, 10:48am UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490/2 "2019-11-15T10:48:25Z")

</div>

HI,

I am facing a similar issue where Polyscope freezes while performing a task as its waits for a return value from daemon file. Program or robot does not crashes, it just UI of polyscope get stuck till the function is performed and value is returned back to java class from daemon.

---

<div class="post-metadata">

**Author:** ![anon4739170](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon4739170](https://forum.universal-robots.com/u/anon4739170)\
**Post date:** [November 15, 2019, 11:59am UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490/3 "2019-11-15T11:59:59Z")

</div>

Hi @tal,

Have you found a solution then?

Or I should check that the robot is not waiting for the value from the daemon file?

---

<div class="post-metadata">

**Author:** ![tal](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@tal](https://forum.universal-robots.com/u/tal)\
**Post date:** [November 20, 2019, 1:31pm UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490/4 "2019-11-20T13:31:08Z")

</div>

Hi @anon4739170

I couldn’t find any solution. I tried running daemon file in the Linux terminal and call the python function through Script programming and then there is no lag in the Polyscope despite waiting for the return value. When I call the same function through java class in the URCap then there is a lag.

---

<div class="post-metadata">

**Author:** ![roman.reiner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/roman.reiner/32/1294_2.png) [@roman.reiner](https://forum.universal-robots.com/u/roman.reiner)\
**Post date:** [December 6, 2019, 3:04pm UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490/5 "2019-12-06T15:04:55Z")

</div>

@anon4739170

> [@URSim 5.0 Error - Post Man Error](https://forum.universal-robots.com/t/ursim-5-0-error-post-man-error/2162):
>
> Getting this error when running the latest starter package with the new URSim 5.0 offline simulator. Causes the UI to go slow and then unresponsive.

---

<div class="post-metadata">

**Author:** ![roman.reiner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/roman.reiner/32/1294_2.png) [@roman.reiner](https://forum.universal-robots.com/u/roman.reiner)\
**Post date:** [December 6, 2019, 3:07pm UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490/6 "2019-12-06T15:07:44Z")

</div>

Also when you get this error, click on the terminal running the simulator and allow it to catch up. Increasing VirtualMachine’s RAM will decrease the chance of this error occurring.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/system/32/1_2.png) [@system](https://forum.universal-robots.com/u/system)\
**Post date:** [January 19, 2021, 4:22pm UTC](https://forum.universal-robots.com/t/robotstate-error-lag-on-ui/5490/7 "2021-01-19T16:22:53Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
