# Project hangs when run

**URL:** <https://forum.xod.io/t/project-hangs-when-run/116>\
**Category:** Uncategorized\
**Created:** [October 4, 2017, 12:53am UTC](https://forum.xod.io/t/project-hangs-when-run/116 "2017-10-04T00:53:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![awgrover](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@awgrover](https://forum.xod.io/u/awgrover)\
**Post date:** [October 4, 2017, 12:53am UTC](https://forum.xod.io/t/project-hangs-when-run/116/1 "2017-10-04T00:53:46Z")

</div>

I built a project that didn’t seem very complex. But, it did odd things while running.

I rebuilt it, piece by piece, running it each time. It worked fine till one point.

How do you want me to report it? I have the xod project, my libraries, generated arduino code, and console-log with XOD\_DEBUG turned on.

 ![updown-debug](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/d520563299f10cb139c11b3ac922946cb55e4bd6.png)

It’s the last “timestamp” (on the select) that breaks it.

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [October 4, 2017, 7:56am UTC](https://forum.xod.io/t/project-hangs-when-run/116/2 "2017-10-04T07:56:40Z")

</div>

You could zip your whole workspace and share the archive. I can try to reproduce the problem.

---

<div class="post-metadata">

**Author:** ![awgrover](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@awgrover](https://forum.xod.io/u/awgrover)\
**Post date:** [October 7, 2017, 4:10pm UTC](https://forum.xod.io/t/project-hangs-when-run/116/3 "2017-10-07T16:10:26Z")

</div>

workspace: [https://drive.google.com/open?id=0BzBraBSAq7Y2VHJ6R0dzcXZOeVE](https://drive.google.com/open?id=0BzBraBSAq7Y2VHJ6R0dzcXZOeVE)  
project: play1, patch updown-debug/  
xod 0.13.0 and 0.14.0 have problems.

Steps

- open the updown-debug patch
- upload only that patch (deploy upload)
- with xod 0.14.0 the arduino will send a random selection of the log messages. Under 0.13.0, the arduino will send nothing, apparently locked up. Under 0.13.0, enabling XOD\_DEBUG gives some trace output then stops.
- Removing the deepest “timestamp” node lets it run under 0.13.0.
- Created several test projects, e.g. “log-debug”, under 0.14.0 to test whether it is console-logging, but things ran fine. “ts-debug” does hang, after adding enough “timestamp” nodes.
- I suspect string catenation.

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [October 9, 2017, 12:25pm UTC](https://forum.xod.io/t/project-hangs-when-run/116/4 "2017-10-09T12:25:18Z")

</div>

Thanks for the scenario, @awgrover. Yeah, seems like the string implementation has bugs. More specifically the implementation of `Chunk` ring buffer.

We’re going to simplify the lists, make them more straightforward and heap-free.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [October 13, 2017, 2:44pm UTC](https://forum.xod.io/t/project-hangs-when-run/116/5 "2017-10-13T14:44:07Z")

</div>

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